diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-11-06 10:48:55 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-12-08 17:51:47 +0100 |
commit | 802fc678b262ea5d3523169184a9ec9503bf7807 (patch) | |
tree | 2444a0e4deb047af9fcad17be9dac12a4021d76b /libavcodec/libdavs2.c | |
parent | 4cb4345f7895d1a169941df087152bf18f78a2f6 (diff) | |
download | ffmpeg-802fc678b262ea5d3523169184a9ec9503bf7807.tar.gz |
avcodec/vp3: Use symbols table for VP3 motion vectors
Expressions like array[get_vlc2()] can be optimized by using a symbols
table if the array is always the same for a given VLC. This requirement
is fulfilled for the VLC used for VP3 motion vectors. The reason it
hasn't been done before is probably that the array in this case
contained entries in the range -31..31; but this is no problem with
ff_init_vlc_from_lengths(): Just apply an offset of 31 to the symbols
before storing them in the table used to initialize VP3 motion vectors
and apply an offset of -31 when initializing the actual VLC.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/libdavs2.c')
0 files changed, 0 insertions, 0 deletions