]> git.sesse.net Git - ffmpeg/commit
avcodec/tscc2: Reduce the size of the tables used to initialize VLCs
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 29 Oct 2020 15:13:03 +0000 (16:13 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 8 Dec 2020 16:51:44 +0000 (17:51 +0100)
commitd2e55e3aa1a1c204dc93c09018779265ac017971
treeaa2f127aaa292f867f9d807429bea2a27bed360e
parentf55da066ec82da220b729bd7bc5a9a836baeb68d
avcodec/tscc2: Reduce the size of the tables used to initialize VLCs

After permuting both the codes, lengths and symbols tables so that
the codes tables are ordered from left to right in the tree, the codes
tables can be easily computed from the lengths tables at runtime and
therefore omitted. This saves about 2KB from the binary.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/tscc2.c
libavcodec/tscc2data.h