diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-23 16:50:02 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-26 20:38:30 +0200 |
commit | 116b235a0b86276aea2fc9021c056744977a1527 (patch) | |
tree | c502ba17efda24a0ceb1bc978aa9e62b81592b78 /tests/ref/vsynth/vsynth_lena-dnxhd_1080i | |
parent | 1bf30a1beb7527887c9b466d07765d20fa3b5412 (diff) | |
download | ffmpeg-116b235a0b86276aea2fc9021c056744977a1527.tar.gz |
avcodec/magicyuv: Don't waste stack space
Now that the HuffEntries are no longer sorted by the MagicYUV decoder,
their symbols are trivial: The symbol of the element with index i is i.
They can therefore be removed. Furthermore, despite the length of the
codes being in the range 1..32 bits, the actual value of the codes is
<= 4096 (for 12 bit content). The reason for this is that the longer
codes are on the left side of the tree, so that the higher bits of
these codes are simply zero. By using an uint16_t for the codes and
removing the symbols entry, the size of each HuffEntry is decreased from
eight to four, saving 16KB of stack space.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'tests/ref/vsynth/vsynth_lena-dnxhd_1080i')
0 files changed, 0 insertions, 0 deletions