diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-12-06 12:22:40 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-12-08 17:57:15 +0100 |
commit | 4958f35a2ebc307049ff2104ffb944f5f457feb3 (patch) | |
tree | a71bf8e6ea26d5df56bcfd754d5dc44e8e8da9a2 /libavcodec/arm/ac3dsp_neon.S | |
parent | 120797e2ef0ca317daf63ad79be5f72f835e9ac2 (diff) | |
download | ffmpeg-4958f35a2ebc307049ff2104ffb944f5f457feb3.tar.gz |
dsputil: Move apply_window_int16 to ac3dsp
The (optimized) functions are used nowhere else.
Diffstat (limited to 'libavcodec/arm/ac3dsp_neon.S')
-rw-r--r-- | libavcodec/arm/ac3dsp_neon.S | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libavcodec/arm/ac3dsp_neon.S b/libavcodec/arm/ac3dsp_neon.S index 82ff8af9fb..f97b1907df 100644 --- a/libavcodec/arm/ac3dsp_neon.S +++ b/libavcodec/arm/ac3dsp_neon.S @@ -108,3 +108,26 @@ function ff_ac3_extract_exponents_neon, export=1 bgt 1b bx lr endfunc + +function ff_apply_window_int16_neon, export=1 + push {r4,lr} + add r4, r1, r3, lsl #1 + add lr, r0, r3, lsl #1 + sub r4, r4, #16 + sub lr, lr, #16 + mov r12, #-16 +1: + vld1.16 {q0}, [r1,:128]! + vld1.16 {q2}, [r2,:128]! + vld1.16 {q1}, [r4,:128], r12 + vrev64.16 q3, q2 + vqrdmulh.s16 q0, q0, q2 + vqrdmulh.s16 d2, d2, d7 + vqrdmulh.s16 d3, d3, d6 + vst1.16 {q0}, [r0,:128]! + vst1.16 {q1}, [lr,:128], r12 + subs r3, r3, #16 + bgt 1b + + pop {r4,pc} +endfunc |