]> git.sesse.net Git - ffmpeg/commit
avcodec/clearvideo: Avoid huge VLC length tables
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 25 Oct 2020 21:17:28 +0000 (22:17 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 8 Dec 2020 16:51:45 +0000 (17:51 +0100)
commit1d3ec27bd54ceb5108ad9f9ed430266ccc4cbc71
tree2772c6604b601071e3e8d19d3e203385eea1fc1b
parente97081a62471c41522ddb2af534ed7ce9b3a6893
avcodec/clearvideo: Avoid huge VLC length tables

After the motion vector and bias values tables have been reordered so
that the codes are ordered from left to right, it emerged that the
length of these entries are actually ascending for every table.
Therefore it is possible to encode them in a run-length style and create
the actual length tables during runtime. This commit implements this.

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