diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-31 17:33:28 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-12-08 17:51:46 +0100 |
commit | 682b0e42e4a09d2d745293385a557fb5f316cb95 (patch) | |
tree | a07134bf3ba509822af055bcdaaa2ce269bfb117 /libavutil/bprint.c | |
parent | f782dd316a3f23f6d4f77f5c2d2d1e0c0879ba00 (diff) | |
download | ffmpeg-682b0e42e4a09d2d745293385a557fb5f316cb95.tar.gz |
avcodec/qdm2: Make tables used to initialize VLCs smaller
After permuting the codes, symbols and lengths tables used to initialize
the VLCs so that the codes are ordered from left to right in the Huffman
tree, the codes become redundant as they can be easily computed from the
lengths at runtime (or at compile time with --enable-hardcoded-tables);
in this case one has to use explicit symbol tables, but all the symbols
used here fit into an uint8_t, whereas some codes needed uint16_t.
Furthermore, the codes had holes because the range of the symbols was not
contiguous; these have also been removed.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavutil/bprint.c')
0 files changed, 0 insertions, 0 deletions