diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-05-26 15:53:25 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-05-28 12:39:28 -0400 |
commit | 6ca23db9cccac05bef9bf9c665821b396af12a0b (patch) | |
tree | a27bf20b461377d0f7e5566a205172768152a4a6 /libavcodec/x86/ac3dsp_mmx.c | |
parent | 1323828a0fbfa428d2e39a9f094039637b7fef5b (diff) | |
download | ffmpeg-6ca23db9cccac05bef9bf9c665821b396af12a0b.tar.gz |
ac3enc: modify mantissa bit counting to keep bap counts for all values of bap
instead of just 0 to 4.
This does all the actual bit counting as a final step.
Diffstat (limited to 'libavcodec/x86/ac3dsp_mmx.c')
-rw-r--r-- | libavcodec/x86/ac3dsp_mmx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/x86/ac3dsp_mmx.c b/libavcodec/x86/ac3dsp_mmx.c index 475042395c..2664736bb6 100644 --- a/libavcodec/x86/ac3dsp_mmx.c +++ b/libavcodec/x86/ac3dsp_mmx.c @@ -42,6 +42,8 @@ extern void ff_float_to_fixed24_3dnow(int32_t *dst, const float *src, unsigned i extern void ff_float_to_fixed24_sse (int32_t *dst, const float *src, unsigned int len); extern void ff_float_to_fixed24_sse2 (int32_t *dst, const float *src, unsigned int len); +extern int ff_ac3_compute_mantissa_size_sse2(uint16_t mant_cnt[6][16]); + av_cold void ff_ac3dsp_init_x86(AC3DSPContext *c, int bit_exact) { int mm_flags = av_get_cpu_flags(); @@ -69,6 +71,7 @@ av_cold void ff_ac3dsp_init_x86(AC3DSPContext *c, int bit_exact) c->ac3_exponent_min = ff_ac3_exponent_min_sse2; c->ac3_max_msb_abs_int16 = ff_ac3_max_msb_abs_int16_sse2; c->float_to_fixed24 = ff_float_to_fixed24_sse2; + c->compute_mantissa_size = ff_ac3_compute_mantissa_size_sse2; if (!(mm_flags & AV_CPU_FLAG_SSE2SLOW)) { c->ac3_lshift_int16 = ff_ac3_lshift_int16_sse2; c->ac3_rshift_int32 = ff_ac3_rshift_int32_sse2; |