From d140623fc44c67e8955c56c7cf74c56c94c0f064 Mon Sep 17 00:00:00 2001 From: Juanjo Date: Mon, 18 Feb 2002 19:33:27 +0000 Subject: - H.263+ decoder support for Advanded INTRA Coding (buggy) Originally committed as revision 310 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h263data.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'libavcodec/h263data.h') diff --git a/libavcodec/h263data.h b/libavcodec/h263data.h index d41996a3bc..88e456ba26 100644 --- a/libavcodec/h263data.h +++ b/libavcodec/h263data.h @@ -125,6 +125,47 @@ static RLTable rl_inter = { inter_level, }; +/* table used for Advanced INTRA Coding, just RUN and LEVEL change */ +const INT8 inter_level_aic[102] = { + 1, 1, 1, 1, 1, 1, 1, 1, + 1, 3, 2, 1, 2, 2, 4, 5, + 6, 7, 3, 2, 3, 4, 5, 2, + 3, 4, 2, 3, 1, 2, 25, 1, + 2, 24, 8, 2, 7, 4, 6, 1, + 9, 23, 2, 3, 1, 10, 12, 11, + 18, 17, 16, 15, 14, 13, 20, 19, + 22, 21, 1, 1, 1, 1, 1, 1, + 1, 2, 1, 1, 1, 3, 1, 1, + 1, 1, 1, 1, 1, 4, 1, 1, + 1, 1, 2, 2, 6, 5, 2, 2, + 3, 7, 3, 4, 9, 8, 1, 1, + 1, 2, 2, 2, 3, 10, +}; + +const INT8 inter_run_aic[102] = { + 0, 1, 3, 5, 7, 8, 9, 10, + 11, 4, 9, 13, 0, 1, 1, 1, + 1, 1, 0, 3, 2, 3, 0, 4, + 3, 0, 5, 5, 2, 6, 0, 4, + 7, 0, 0, 8, 0, 2, 0, 12, + 0, 0, 2, 1, 6, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 14, 20, 1, 19, 2, + 3, 0, 5, 6, 4, 0, 9, 10, + 11, 12, 13, 8, 7, 0, 17, 18, + 16, 15, 2, 1, 0, 0, 4, 3, + 1, 0, 2, 1, 0, 0, 21, 22, + 23, 7, 6, 5, 3, 0, +}; + +static RLTable rl_intra_aic = { + 102, + 58, + inter_vlc, + inter_run_aic, + inter_level_aic, +}; + static const UINT16 h263_format[8][2] = { { 0, 0 }, { 128, 96 }, -- cgit v1.2.3