diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-30 02:27:15 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-12-08 17:51:45 +0100 |
commit | 6c8e85c66074cdd687c0c63754c15911e46abc9b (patch) | |
tree | 7856d944d860b57f62d03278e043fc88c40c23a8 /libavformat/rdt.h | |
parent | e55ade2c01472ededea03257e93e2e073d320a2e (diff) | |
download | ffmpeg-6c8e85c66074cdd687c0c63754c15911e46abc9b.tar.gz |
avcodec/mpc8: Reduce the size of some VLCs
Several of the quantisation VLCs come in pairs and up until now the
number of bits used for each VLC was set to the same value for both VLCs
in such a pair even when one of the two required only a lower number.
This is a waste given that the get_vlc2() call is compatible with these
two VLCs using a different number of bits (it uses vlc->bits).
Given that the code lengths are descending it is easily possible to know
the length of the longest code for a given VLC: It is the length of the
first one. With this information one can easily use the least amount of
bits.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/rdt.h')
0 files changed, 0 insertions, 0 deletions