]> git.sesse.net Git - ffmpeg/commit
avcodec/clearvideo: Improve handling of VLC escape values
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 17 Nov 2020 07:46:53 +0000 (08:46 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 8 Dec 2020 16:51:45 +0000 (17:51 +0100)
commitef9652bab2921126a88111cebfbd645050a5e373
tree6525bd82130f23992b62704e406bfb1730f1a244
parent1d3ec27bd54ceb5108ad9f9ed430266ccc4cbc71
avcodec/clearvideo: Improve handling of VLC escape values

Both the motion vector as well as the bias VLCs have an escape code;
for the motion vectors, this value depended on the specific VLC table,
whereas all the bias VLCs used the same value; the escape value has not
been inlined in the latter case.

But for both kinds of VLCs there are lots of values that are unused for
all the VLCs of each kind and each of these can be used as common escape
value, thus allowing to inline the escape value. This commit implements
this.

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