Age | Commit message (Collapse) | Author |
|
The rematrixing strategy reuse flags are not reset between frames, so they
need to be initialized for all blocks, not just block 0.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 5b54d4b376fbd2c291b8a6dba7d425e28f654bcf)
|
|
This is to match the value in every (E-)AC-3 file from commercial sources.
It has a negligible effect on audio quality.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 50d7140441b61809ad4ba4ea7b4ad8fe77bc6888)
|
|
Done to keep ABI compatible. Otherwise this is just silly
|
|
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit dda3f0ef48aa5c3b03566b60b6bf63211e1fe579)
|
|
This patch changes the exponent difference threshold in the exponent
strategy decision function of the AC-3 encoder. I tested lowering in
increments of 100. From 1000 down to 500 generally increased in quality
with each step, but 400 was generally much worse.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit c3beafa0f14fd81ab43083f61872cbd5426647cf)
|
|
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 4c57cde942b3d28074d0bb06e2ca200bc1098f22)
|
|
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 3b924294ea0ab891cf28fb30f26962a7960f7f37)
|
|
Originally committed as revision 26359 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
43% faster in function encode_exponents().
Originally committed as revision 26358 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
simplify and speed up encode_exponents().
8% faster in function.
Originally committed as revision 26357 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
exponent strategies for a single channel to compute_exp_strategy_ch().
This allows for removal of the temporary pointer arrays.
Originally committed as revision 26356 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
code.
Originally committed as revision 26355 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26354 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26353 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
channel first, then by block.
Originally committed as revision 26352 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
This will allow for faster and simpler processing of all blocks at once.
Originally committed as revision 26351 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
This improves the audio quality significantly for stereo source with both the
fixed-point and floating-point AC-3 encoders.
Update acodec-ac3_fixed and seek-ac3_rm test references.
Originally committed as revision 26271 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
instead of doing it separately in 2 different functions.
This makes float AC-3 encoding approx. 3-7% faster overall.
Also, the coefficient conversion can now be easily SIMD-optimized.
Originally committed as revision 26232 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
accessing of structs and arrays inside the loop.
Approx. 30% faster in function extract_exponents().
Originally committed as revision 26226 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26210 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Fixed-point AC-3 encoder renamed to ac3_fixed.
Regression test acodec-ac3 renamed to acodec-ac3_fixed.
Regression test lavf-rm changed to use ac3_fixed encoder.
Originally committed as revision 26209 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26206 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
maximum value of 1023.
This speeds up overall encoding depending on the content and bitrate.
The most improvement is with high bitrates and/or low complexity content.
Originally committed as revision 26181 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
instead of 64. This will change output in some cases, but it happens to not
affect the AC-3 regression tests.
Originally committed as revision 26180 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
This one was missed in r26174.
Originally committed as revision 26179 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
fixed-point and floating-point AC-3 encoders.
Originally committed as revision 26174 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26173 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
instead of using the ff_ac3_window[] table directly.
Originally committed as revision 26172 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26171 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26170 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26169 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
This gives slightly better quality in PEAQ tests.
Code 3 gives a dBpb value of 2816 = -132dB (128 psd units = -6dB), which
corresponds to 22 bits. Since the exponents have an offset applied, the
16-bit source looks like 24-bit source to the bit allocation routine.
So using dBpb code=3 is a closer match to the exponent range.
Regression test refs updated for acodec-ac3, lavf-rm, and seek-ac3_rm.
Originally committed as revision 26144 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26084 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
This is optional for encoders, but it's a good idea and has minimal impact
on performance.
This will change the output for some files, but it happens not to affect the
regression tests.
Originally committed as revision 26083 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26082 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26081 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26072 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
This avoids a 16-bit overflow in mdct512() due to a -32768 value in costab.
References updated for acodec-ac3, lavf-rm, and seek-ac3_rm tests.
Thanks to Måns Rullgård for finding the bug.
Originally committed as revision 26071 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Fixes AC-3 encoding on OpenBSD 4.8 x86_32 and hopefully other similar
configurations.
Originally committed as revision 26070 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
20% faster output_frame_end().
Originally committed as revision 26069 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
This allows encoding with lower bitrates by decreasing exponent bits first,
then decreasing bandwidth if the user did not specify a specific cutoff
frequency.
Originally committed as revision 26050 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26049 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26048 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26046 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26045 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26044 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Approx. 20% faster in function bit_alloc_masking().
Originally committed as revision 26042 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 26041 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
We can do this because exponents are the only bit allocation parameters which
change from block-to-block currently.
Approx. 57% faster in function bit_alloc().
Approx. 25% faster overall encoding.
Originally committed as revision 26040 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
allocation for each block.
24% faster in function bit_alloc(). Approx. 10% faster overall encoding.
Originally committed as revision 26039 to svn://svn.ffmpeg.org/ffmpeg/trunk
|