ac3enc: do not right-shift fixed-point coefficients in the final MDCT stage.

This increases the accuracy of coefficients, leading to improved quality.
Rescaling of the coefficients to full 25-bit accuracy is done rather than
offsetting the exponent values. This requires coefficient scaling to be done
before determining the rematrixing strategy. Also, the rematrixing strategy
calculation must use 64-bit math to prevent overflow due to the higher
precision coefficients.
This commit is contained in:
Justin
2011-03-11 13:03:26 -05:00
committed by Justin Ruggles
parent 6e7cf13b6b
commit 323e6fead0
7 changed files with 65 additions and 39 deletions

View File

@@ -1,2 +1,2 @@
07bd593823ebd721b3a32ef298bdfc20 *./tests/data/acodec/ac3.rm
b3a8f0a8809a58b2ece90744f06fff96 *./tests/data/acodec/ac3.rm
98751 ./tests/data/acodec/ac3.rm