aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dca.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-25 15:35:00 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-08 17:51:45 +0100
commit200e8e80aa3405d811023547b6b116f6400e37ac (patch)
treeb3eb53a32ba0dac75d7be8bb75cf157acd768b52 /libavcodec/dca.c
parentb0094be719652948650e724cdb828ec63b95569f (diff)
downloadffmpeg-200e8e80aa3405d811023547b6b116f6400e37ac.tar.gz
avcodec/imc: Make Huffman tables smaller
The IMC decoder uses Huffman tables which are created at runtime from length tables of type uint8_t and code tables of type uint16_t together with an implicit symbols table (i.e. symbol[i] == i). This commit changes this: All three tables are subjected to the same permutation to order the codes from left to right in the tree; afterwards the codes can be omitted because they are easily computable at runtime from the lengths, whereas the symbols need to be explicitly coded now. But said symbols fit into an uint8_t, so one saves space. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/dca.c')
0 files changed, 0 insertions, 0 deletions