]> git.sesse.net Git - ffmpeg/commit
avcodec/qdm2: Make tables used to initialize VLCs smaller
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 31 Oct 2020 16:33:28 +0000 (17:33 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 8 Dec 2020 16:51:46 +0000 (17:51 +0100)
commit682b0e42e4a09d2d745293385a557fb5f316cb95
treea07134bf3ba509822af055bcdaaa2ce269bfb117
parentf782dd316a3f23f6d4f77f5c2d2d1e0c0879ba00
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>
libavcodec/qdm2_tablegen.h
libavcodec/qdm2data.h