eac3enc: use frame exponent strategy when applicable.
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 13 Jul 2011 16:20:29 +0000 (12:20 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Tue, 19 Jul 2011 18:15:00 +0000 (14:15 -0400)
commit08a747afb98c11da48b89339c2f1c5fdc56ced7e
tree15266498fd82587fc6540fcc60333c242d317175
parent31b69928e5fd3d40dda4091ae7db340c582113af
eac3enc: use frame exponent strategy when applicable.

This checks if the set of selected exponent strategies for all blocks in a
channel are in the frame exponent strategy table, and if so, writes the
table index instead of each strategy. This saves up to 7 bits per channel per
frame, so the overall effect on quality is small.
libavcodec/Makefile
libavcodec/ac3enc.c
libavcodec/ac3enc.h
libavcodec/eac3enc.c
libavcodec/eac3enc.h