diff options
author | Mans Rullgard <mans@mansr.com> | 2011-03-12 23:16:06 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-03-24 16:30:54 +0000 |
commit | 245c78313fac79d3336f139fbca88c8d799f866a (patch) | |
tree | ba39582f0e7f2291eef5ce9db761f616d8ecd383 /libavcodec/arm/ac3dsp_init_arm.c | |
parent | f4855a904e4d3a12822739cda149262f98e8723a (diff) | |
download | ffmpeg-245c78313fac79d3336f139fbca88c8d799f866a.tar.gz |
ac3enc: NEON optimised shift functions
Diffstat (limited to 'libavcodec/arm/ac3dsp_init_arm.c')
-rw-r--r-- | libavcodec/arm/ac3dsp_init_arm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/arm/ac3dsp_init_arm.c b/libavcodec/arm/ac3dsp_init_arm.c index a0fc97799c..6874546c7c 100644 --- a/libavcodec/arm/ac3dsp_init_arm.c +++ b/libavcodec/arm/ac3dsp_init_arm.c @@ -25,11 +25,15 @@ void ff_ac3_exponent_min_neon(uint8_t *exp, int num_reuse_blocks, int nb_coefs); int ff_ac3_max_msb_abs_int16_neon(const int16_t *src, int len); +void ff_ac3_lshift_int16_neon(int16_t *src, unsigned len, unsigned shift); +void ff_ac3_rshift_int32_neon(int32_t *src, unsigned len, unsigned shift); av_cold void ff_ac3dsp_init_arm(AC3DSPContext *c, int bit_exact) { if (HAVE_NEON) { c->ac3_exponent_min = ff_ac3_exponent_min_neon; c->ac3_max_msb_abs_int16 = ff_ac3_max_msb_abs_int16_neon; + c->ac3_lshift_int16 = ff_ac3_lshift_int16_neon; + c->ac3_rshift_int32 = ff_ac3_rshift_int32_neon; } } |