diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-28 09:12:08 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-12-08 17:51:45 +0100 |
commit | daf8b10eeb9c789cad5c2c263493249950c6f55f (patch) | |
tree | 0ed263eb134f2871968bbc569c58bbba27c36dd7 /libswresample/version.h | |
parent | df3269f5f74ff8ab976d00927a55a2940cc2255f (diff) | |
download | ffmpeg-daf8b10eeb9c789cad5c2c263493249950c6f55f.tar.gz |
avcodec/rv10: Use symbol table more effectively
The RealVideo 1.0 decoder uses VLCs to parse DC coefficients. But the
values returned from get_vlc2() are not directly used; instead
-(val - 128) (which is in the range -127..128) is. This transformation
is unnecessary as it can effectively be done when initializing the VLC
by modifying the symbols table used. There is just one minor
complication: The chroma table is incomplete and in order to distinguish
an error from get_vlc2() (due to an invalid code) the ordinary return
range is modified to 0..255. This is possible because the only caller of
this function is (on success) only interested in the return value modulo
256.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libswresample/version.h')
0 files changed, 0 insertions, 0 deletions