libavcodec/vc1data.c File Reference

VC-1 tables. More...

#include "avcodec.h"
#include "vc1.h"
#include "vc1data.h"

Go to the source code of this file.

Variables

const int ff_vc1_ttblk_to_tt [3][8]
 Table for conversion between TTBLK and TTMB.
const int ff_vc1_ttfrm_to_tt [4] = { TT_8X8, TT_8X4, TT_4X8, TT_4X4 }
const uint8_t ff_vc1_mv_pmode_table [2][5]
 MV P mode - the 5th element is only used for mode 1.
const uint8_t ff_vc1_mv_pmode_table2 [2][4]
const uint8_t ff_vc1_mbmode_intfrp [2][15][4]
const int ff_vc1_fps_nr [7] = { 24, 25, 30, 50, 60, 48, 72 }
const int ff_vc1_fps_dr [2] = { 1000, 1001 }
const uint8_t ff_vc1_pquant_table [3][32]
const int16_t ff_vc1_bfraction_lut [23]
const uint8_t ff_vc1_bfraction_bits [23]
const uint8_t ff_vc1_bfraction_codes [23]
const AVRational ff_vc1_pixel_aspect [16]
const uint8_t ff_vc1_imode_codes [7]
const uint8_t ff_vc1_imode_bits [7]
const uint8_t ff_vc1_norm2_codes [4]
const uint8_t ff_vc1_norm2_bits [4]
const uint16_t ff_vc1_norm6_codes [64]
const uint8_t ff_vc1_norm6_bits [64]
const uint8_t ff_vc1_4mv_block_pattern_codes [4][16]
const uint8_t ff_vc1_4mv_block_pattern_bits [4][16]
const uint8_t ff_vc1_2mv_block_pattern_codes [4][4]
const uint8_t ff_vc1_2mv_block_pattern_bits [4][4]
const uint16_t ff_vc1_intfr_4mv_mbmode_codes [4][15]
const uint8_t ff_vc1_intfr_4mv_mbmode_bits [4][15]
const uint8_t ff_vc1_intfr_non4mv_mbmode_codes [4][9]
const uint8_t ff_vc1_intfr_non4mv_mbmode_bits [4][9]
const uint8_t ff_vc1_if_mmv_mbmode_codes [8][8]
const uint8_t ff_vc1_if_mmv_mbmode_bits [8][8]
const uint8_t ff_vc1_if_1mv_mbmode_codes [8][6]
const uint8_t ff_vc1_if_1mv_mbmode_bits [8][6]
const uint32_t ff_vc1_1ref_mvdata_codes [4][72]
const uint8_t ff_vc1_1ref_mvdata_bits [4][72]
const uint32_t ff_vc1_2ref_mvdata_codes [8][126]
const uint8_t ff_vc1_2ref_mvdata_bits [8][126]
const uint8_t ff_wmv3_dc_scale_table [32]
const uint16_t ff_vc1_cbpcy_p_codes [4][64]
const uint8_t ff_vc1_cbpcy_p_bits [4][64]
const uint16_t ff_vc1_icbpcy_p_codes [8][63]
const uint8_t ff_vc1_icbpcy_p_bits [8][63]
const uint16_t ff_vc1_ttmb_codes [3][16]
const uint8_t ff_vc1_ttmb_bits [3][16]
const uint8_t ff_vc1_ttblk_codes [3][8]
const uint8_t ff_vc1_ttblk_bits [3][8]
const uint8_t ff_vc1_subblkpat_codes [3][15]
const uint8_t ff_vc1_subblkpat_bits [3][15]
const uint16_t ff_vc1_mv_diff_codes [4][73]
const uint8_t ff_vc1_mv_diff_bits [4][73]
const uint8_t ff_vc1_simple_progressive_4x4_zz [16]
const uint8_t ff_vc1_adv_progressive_8x4_zz [32]
const uint8_t ff_vc1_adv_progressive_4x8_zz [32]
const uint8_t ff_vc1_adv_interlaced_8x8_zz [64]
const uint8_t ff_vc1_adv_interlaced_8x4_zz [32]
const uint8_t ff_vc1_adv_interlaced_4x8_zz [32]
const uint8_t ff_vc1_adv_interlaced_4x4_zz [16]
const int32_t ff_vc1_dqscale [63]
const uint16_t ff_vc1_field_mvpred_scales [2][7][4]
const uint16_t ff_vc1_b_field_mvpred_scales [7][4]
const int ff_vc1_ac_sizes [AC_MODES]

VC-1 VLC tables and defines

Todo:
TODO move this into the context


#define VC1_BFRACTION_VLC_BITS   7
#define VC1_IMODE_VLC_BITS   4
#define VC1_NORM2_VLC_BITS   3
#define VC1_NORM6_VLC_BITS   9
#define VC1_TTMB_VLC_BITS   9
#define VC1_MV_DIFF_VLC_BITS   9
#define VC1_CBPCY_P_VLC_BITS   9
#define VC1_ICBPCY_VLC_BITS   9
#define VC1_4MV_BLOCK_PATTERN_VLC_BITS   6
#define VC1_2MV_BLOCK_PATTERN_VLC_BITS   3
#define VC1_TTBLK_VLC_BITS   5
#define VC1_SUBBLKPAT_VLC_BITS   6
#define VC1_INTFR_4MV_MBMODE_VLC_BITS   9
#define VC1_INTFR_NON4MV_MBMODE_VLC_BITS   6
#define VC1_IF_MMV_MBMODE_VLC_BITS   5
#define VC1_IF_1MV_MBMODE_VLC_BITS   5
#define VC1_1REF_MVDATA_VLC_BITS   9
#define VC1_2REF_MVDATA_VLC_BITS   9
#define VC1_IF_MBMODE_VLC_BITS   5
VLC ff_vc1_bfraction_vlc
VLC ff_vc1_imode_vlc
VLC ff_vc1_norm2_vlc
VLC ff_vc1_norm6_vlc
VLC ff_vc1_ttmb_vlc [3]
VLC ff_vc1_mv_diff_vlc [4]
VLC ff_vc1_cbpcy_p_vlc [4]
VLC ff_vc1_icbpcy_vlc [8]
VLC ff_vc1_4mv_block_pattern_vlc [4]
VLC ff_vc1_2mv_block_pattern_vlc [4]
VLC ff_vc1_ttblk_vlc [3]
VLC ff_vc1_subblkpat_vlc [3]
VLC ff_vc1_intfr_4mv_mbmode_vlc [4]
VLC ff_vc1_intfr_non4mv_mbmode_vlc [4]
VLC ff_vc1_if_mmv_mbmode_vlc [8]
VLC ff_vc1_if_1mv_mbmode_vlc [8]
VLC ff_vc1_1ref_mvdata_vlc [4]
VLC ff_vc1_2ref_mvdata_vlc [8]
VLC ff_vc1_ac_coeff_table [8]


Detailed Description

VC-1 tables.

Definition in file vc1data.c.


Define Documentation

#define VC1_1REF_MVDATA_VLC_BITS   9

Definition at line 138 of file vc1data.c.

Referenced by ff_vc1_init_common(), and get_mvdata_interlaced().

#define VC1_2MV_BLOCK_PATTERN_VLC_BITS   3

Definition at line 124 of file vc1data.c.

Referenced by ff_vc1_init_common(), and vc1_decode_p_mb_intfr().

#define VC1_2REF_MVDATA_VLC_BITS   9

Definition at line 140 of file vc1data.c.

Referenced by ff_vc1_init_common(), and get_mvdata_interlaced().

#define VC1_4MV_BLOCK_PATTERN_VLC_BITS   6

#define VC1_BFRACTION_VLC_BITS   7

#define VC1_CBPCY_P_VLC_BITS   9

#define VC1_ICBPCY_VLC_BITS   9

Definition at line 120 of file vc1data.c.

Referenced by ff_vc1_init_common(), vc1_decode_b_mb_intfi(), and vc1_decode_p_mb_intfi().

#define VC1_IF_1MV_MBMODE_VLC_BITS   5

Definition at line 136 of file vc1data.c.

Referenced by ff_vc1_init_common().

#define VC1_IF_MBMODE_VLC_BITS   5

Definition at line 145 of file vc1data.c.

Referenced by vc1_decode_b_mb_intfi(), and vc1_decode_p_mb_intfi().

#define VC1_IF_MMV_MBMODE_VLC_BITS   5

Definition at line 134 of file vc1data.c.

Referenced by ff_vc1_init_common().

#define VC1_IMODE_VLC_BITS   4

Definition at line 107 of file vc1data.c.

Referenced by bitplane_decoding(), and ff_vc1_init_common().

#define VC1_INTFR_4MV_MBMODE_VLC_BITS   9

Definition at line 130 of file vc1data.c.

Referenced by ff_vc1_init_common(), and vc1_decode_p_mb_intfr().

#define VC1_INTFR_NON4MV_MBMODE_VLC_BITS   6

Definition at line 132 of file vc1data.c.

Referenced by ff_vc1_init_common(), and vc1_decode_p_mb_intfr().

#define VC1_MV_DIFF_VLC_BITS   9

Definition at line 116 of file vc1data.c.

Referenced by ff_vc1_init_common().

#define VC1_NORM2_VLC_BITS   3

Definition at line 109 of file vc1data.c.

Referenced by bitplane_decoding(), and ff_vc1_init_common().

#define VC1_NORM6_VLC_BITS   9

Definition at line 111 of file vc1data.c.

Referenced by bitplane_decoding(), and ff_vc1_init_common().

#define VC1_SUBBLKPAT_VLC_BITS   6

Definition at line 128 of file vc1data.c.

Referenced by ff_vc1_init_common(), and vc1_decode_p_block().

#define VC1_TTBLK_VLC_BITS   5

Definition at line 126 of file vc1data.c.

Referenced by ff_vc1_init_common(), and vc1_decode_p_block().

#define VC1_TTMB_VLC_BITS   9


Variable Documentation

Initial value:

 {
  {
     3,  4,  5,  5,  5,  6,  7,  7,  2,  4,  5,  5,  6,  7,  8,  9,  9,  4,
     6,  6,  6,  6,  7,  8,  9,  9,  6,  8,  7,  7,  7,  7,  8,  8,  9,  6,
     8,  8,  8,  8,  8,  9,  9,  9,  7, 10, 10,  8,  8,  9,  9,  9,  8,  9,
    13, 12, 11, 10, 10, 10,  9,  9,  9, 17, 17, 16, 16, 16, 16, 16, 16, 16
  },
  {
     3,  3,  4,  5,  5,  7,  8, 10,  3,  4,  5,  5,  6,  7,  9, 10, 12,  4,
     6,  6,  5,  6,  6,  8,  9, 11,  4,  7,  7,  7,  7,  8,  9,  9, 13,  5,
     8,  9,  8,  8,  9, 10, 10, 14,  7,  9,  9,  9, 10, 10, 11, 12, 14,  8,
    12, 11, 11, 12, 13, 11, 14, 16, 15, 20, 20, 19, 19, 19, 19, 19, 19, 19
  },
  {
     3,  4,  4,  4,  5,  6,  8,  9,  2,  4,  5,  5,  5,  6,  7,  8,  8,  4,
     7,  7,  6,  6,  7,  8,  8,  9,  5, 10,  9,  8,  9,  9, 11, 10, 11,  7,
     9,  9, 10, 10, 11, 12, 11, 12,  8, 11, 11, 11, 11, 11, 12, 13, 15,  9,
    12, 10, 11, 12, 12, 15, 13, 15, 13, 19, 19, 18, 18, 18, 18, 18, 18, 18
  },
  {
     4,  4,  4,  4,  5,  5,  7,  7,  3,  5,  6,  6,  6,  7,  7,  8,  8,  4,
     6,  6,  6,  6,  7,  8,  8,  8,  4,  7,  6,  6,  6,  7,  8,  9,  9,  5,
     7,  7,  6,  6,  7,  8,  9,  9,  6,  8,  8,  8,  8,  8,  8,  9, 10,  7,
     8,  8,  9,  9,  9,  8,  9,  9,  9, 14, 14, 13, 13, 13, 13, 13, 13, 13
  }
}

Definition at line 390 of file vc1data.c.

Referenced by ff_vc1_init_common().

const uint32_t ff_vc1_1ref_mvdata_codes[4][72]

Definition at line 343 of file vc1data.c.

Referenced by ff_vc1_init_common().

Definition at line 139 of file vc1data.c.

Referenced by ff_vc1_init_common(), and ff_vc1_parse_frame_header_adv().

Initial value:

 {
    { 2, 2, 2, 2 }, { 1, 2, 3, 3 }, { 3, 2, 3, 1 }, { 1, 3, 3, 2 }
}

Definition at line 262 of file vc1data.c.

Referenced by ff_vc1_init_common().

Initial value:

 {
    { 2, 1, 0, 3 }, { 1, 0, 2, 3 }, { 2, 0, 3, 1 }, { 1, 3, 2, 0 }
}

Definition at line 258 of file vc1data.c.

Referenced by ff_vc1_init_common().

Definition at line 125 of file vc1data.c.

Referenced by ff_vc1_init_common(), and ff_vc1_parse_frame_header_adv().

Definition at line 565 of file vc1data.c.

Referenced by ff_vc1_init_common().

const uint32_t ff_vc1_2ref_mvdata_codes[8][126]

Definition at line 418 of file vc1data.c.

Referenced by ff_vc1_init_common().

Definition at line 141 of file vc1data.c.

Referenced by ff_vc1_init_common(), and ff_vc1_parse_frame_header_adv().

Initial value:

 {
    { 5, 6, 6, 5, 5, 5, 5, 4, 5, 5, 5, 3, 5, 3, 3, 2 },
    { 4, 5, 5, 4, 5, 4, 5, 4, 5, 5, 4, 4, 4, 4, 4, 2 },
    { 4, 4, 4, 4, 4, 4, 5, 4, 4, 5, 4, 4, 4, 4, 4, 3 },
    { 2, 4, 4, 4, 4, 4, 5, 5, 4, 5, 4, 5, 4, 5, 5, 4 }
}

Definition at line 250 of file vc1data.c.

Referenced by ff_vc1_init_common().

Initial value:

 {
    { 14, 58, 59, 25, 12, 26, 15, 15, 13, 24, 27,  0, 28,  1,  2,  2 },
    {  8, 18, 19,  4, 20,  5, 30, 11, 21, 31,  6, 12,  7, 13, 14,  0 },
    { 15,  6,  7,  2,  8,  3, 28,  9, 10, 29,  4, 11,  5, 12, 13,  0 },
    {  0, 11, 12,  4, 13,  5, 30, 16, 14, 31,  6, 17,  7, 18, 19, 10 }
}

Definition at line 244 of file vc1data.c.

Referenced by ff_vc1_init_common().

Definition at line 123 of file vc1data.c.

Referenced by ff_vc1_init_common(), and ff_vc1_parse_frame_header_adv().

Definition at line 143 of file vc1data.c.

Referenced by ff_vc1_init_common(), and vc1_decode_ac_coeff().

const int ff_vc1_ac_sizes[AC_MODES]

Initial value:

 {
    186, 169, 133, 149, 103, 103, 163, 175
}

Definition at line 1133 of file vc1data.c.

Referenced by ff_vc1_init_common(), and vc1_decode_ac_coeff().

Initial value:

 { 
     0,     8,    16,    24,
     1,     9,    17,     2,
    25,    10,    18,     3,
    26,    11,    19,    27
}

Definition at line 1076 of file vc1data.c.

Referenced by vc1_decode_p_block().

Initial value:

 { 
     0,     1,     2,     8,
    16,     9,    24,    17,
    10,     3,    32,    40,
    48,    56,    25,    18,
    33,    26,    41,    34,
    49,    57,    11,    42,
    19,    50,    27,    58,
    35,    43,    51,    59
}

Definition at line 1065 of file vc1data.c.

Referenced by vc1_decode_p_block().

Initial value:

 { 
     0,     8,    16,    24,     1,     9,     2,    17,
    25,    10,     3,    18,    26,     4,    11,    19,
    12,     5,    13,    20,    27,     6,    21,    28,
    14,    22,    29,     7,    30,    15,    23,    31
}

Definition at line 1058 of file vc1data.c.

Referenced by vc1_decode_p_block().

Initial value:

 { 
     0,     8,     1,    16,    24,     9,     2,    32,
    40,    48,    56,    17,    10,     3,    25,    18,
    11,     4,    33,    41,    49,    57,    26,    34,
    42,    50,    58,    19,    12,     5,    27,    20,
    13,     6,    35,    28,    21,    14,     7,    15,
    22,    29,    36,    43,    51,    59,    60,    52,
    44,    37,    30,    23,    31,    38,    45,    53,
    61,    62,    54,    46,    39,    47,    55,    63
}

Definition at line 1047 of file vc1data.c.

Referenced by ff_vc1_init_transposed_scantables().

Initial value:

 { 
     0,     1,     8,     2,
     9,    16,    17,    24,
    10,    32,    25,    18,
    40,     3,    33,    26,
    48,    11,    56,    41,
    34,    49,    57,    42,
    19,    50,    27,    58,
    35,    43,    51,    59
}

Definition at line 1036 of file vc1data.c.

Referenced by ff_vc1_decode_sequence_header().

Initial value:

 { 
     0,     8,     1,    16,     2,     9,    10,     3,
    24,    17,     4,    11,    18,    12,     5,    19,
    25,    13,    20,    26,    27,     6,    21,    28,
    14,    22,    29,     7,    30,    15,    23,    31
}

Definition at line 1029 of file vc1data.c.

Referenced by ff_vc1_decode_sequence_header().

const uint16_t ff_vc1_b_field_mvpred_scales[7][4]

Initial value:

 {
    
    
    { 171,    205,    219,    228 },   
    { 384,    320,    299,    288 },   
    { 230,    239,    244,    246 },   
    {  43,     51,     55,     57 },   
    {  11,     13,     14,     14 },   
    {  26,     17,     12,     10 },   
    {   7,      4,      3,      3 }    
}

Definition at line 1121 of file vc1data.c.

Referenced by scaleforopp_x(), scaleforopp_y(), and scaleforsame().

Initial value:

 {
    3, 3, 3, 3,
    3, 3, 3,
    7, 7, 7, 7,
    7, 7, 7, 7,
    7, 7, 7, 7,
    7, 7,
    7, 7
}

Definition at line 174 of file vc1data.c.

Referenced by ff_vc1_init_common().

Initial value:

 {
      0,   1,   2,   3,
      4,   5,   6,
    112, 113, 114, 115,
    116, 117, 118, 119,
    120, 121, 122, 123,
    124, 125,
    126, 127
}

Definition at line 183 of file vc1data.c.

Referenced by ff_vc1_init_common().

Initial value:

 {
    128 ,  85 , 170 ,  64 ,
    192 ,  51 , 102 ,
    153 , 204 ,  43 , 215 ,
     37 ,  74 , 111 , 148 ,
    185 , 222 ,  32 ,  96 ,
    160 , 224 ,
    -1 , 0 
}

Definition at line 163 of file vc1data.c.

Referenced by ff_vc1_parse_frame_header(), and ff_vc1_parse_frame_header_adv().

Initial value:

 {
  {
    13,  13,   7,  13,   7,  13,  13,  12,   6,  13,   7,  12,   6,   8,   8,   8,
     5,   7,   8,  12,   6,   8,  13,  12,   7,  13,  13,  12,   6,   8,   7,   7,
     6,  13,   8,  12,   7,  13,  13,  12,   7,  13,   8,  12,   5,   7,   7,   7,
     6,   8,  13,  12,   6,   7,   8,   8,   5,   8,   8,   6,   3,   3,   3,   2
  },
  {
    14,  13,   8,  13,   3,  13,   8,  13,   3,   7,   8,  13,   4,  13,  13,  13,
     3,  13,  13,  13,   4,   8,  13,  13,   5,  13,  13,  13,   5,   7,   8,   8,
     3,   8,  14,  13,   5,  13,  13,  13,   4,   7,  13,  13,   6,  13,  13,  13,
     5,  13,   8,  13,   5,   8,   8,  13,   5,  13,   8,  13,   6,   6,  13,   7
  },
  {
    13,   8,   6,   8,   4,   8,  13,  12,   4,   9,   8,   8,   5,   8,   8,   9,
     5,   9,  10,   8,   4,   8,   7,   8,   6,   8,   7,  13,   4,   8,   7,   8,
     5,   7,   8,   9,   6,  13,  13,   8,   4,   6,   8,   9,   5,   7,   8,   9,
     5,   9,   9,  13,   5,   7,   7,   9,   4,   7,   8,   8,   3,   5,   5,   5
  },
  {
     9,   9,   9,   9,   2,   9,   9,   9,   2,   9,   9,   9,   9,   9,   9,   8,
     3,   9,   9,   9,   9,   9,   9,   9,   9,   9,   9,   9,   9,   9,   9,   8,
     2,   9,   9,   9,   9,   9,   9,   9,   9,   9,   9,   9,   9,   9,   9,   8,
     9,   9,   9,   9,   9,   9,   9,   9,   9,   9,   9,   9,   9,   9,   9,   8
  }
}

Definition at line 682 of file vc1data.c.

Referenced by ff_vc1_init_common().

const uint16_t ff_vc1_cbpcy_p_codes[4][64]

Initial value:

 {
  {
      0,   6,  15,  13,  13,  11,   3,  13,   5,   8,  49,  10,  12, 114, 102, 119,
      1,  54,  96,   8,  10, 111,   5,  15,  12,  10,   2,  12,  13, 115,  53,  63,
      1,   7,   1,   7,  14,  12,   4,  14,   1,   9,  97,  11,   7,  58,  52,  62,
      4, 103,   1,   9,  11,  56, 101, 118,   4, 110, 100,  30,   2,   5,   4,   3
  },
  {
      0,   9,   1,  18,   5,  14, 237,  26,   3, 121,   3,  22,  13,  16,   6,  30,
      2,  10,   1,  20,  12, 241,   5,  28,  16,  12,   3,  24,  28, 124, 239, 247,
      1, 240,   1,  19,  18,  15,   4,  27,   1, 122,   2,  23,   1,  17,   7,  31,
      1,  11,   2,  21,  19, 246, 238,  29,  17,  13, 236,  25,  58,  63,   8, 125
  },
  {
      0, 201,  25, 231,   5, 221,   1,   3,   2, 414,   2, 241,  16, 225, 195, 492,
      2, 412,   1, 240,   7, 224,  98, 245,   1, 220,  96,   5,   9, 230, 101, 247,
      1, 102,   1, 415,  24,   3,   2, 244,   3,  54,   3, 484,  17, 114, 200, 493,
      3, 413,   1,   4,  13, 113,  99, 485,   4, 111, 194, 243,   5,  29,  26,  31
  },
  {
      0,  28,  12,  44,   3,  36,  20,  52,   2,  32,  16,  48,   8,  40,  24,  28,
      1,  30,  14,  46,   6,  38,  22,  54,   3,  34,  18,  50,  10,  42,  26,  30,
      1,  29,  13,  45,   5,  37,  21,  53,   2,  33,  17,  49,   9,  41,  25,  29,
      1,  31,  15,  47,   7,  39,  23,  55,   4,  35,  19,  51,  11,  43,  27,  31
   }
}

Definition at line 655 of file vc1data.c.

Referenced by ff_vc1_init_common().

const int32_t ff_vc1_dqscale[63]

Initial value:

 {
    0x40000, 0x20000, 0x15555, 0x10000, 0xCCCD, 0xAAAB, 0x9249, 0x8000,
     0x71C7,  0x6666,  0x5D17,  0x5555, 0x4EC5, 0x4925, 0x4444, 0x4000,
     0x3C3C,  0x38E4,  0x35E5,  0x3333, 0x30C3, 0x2E8C, 0x2C86, 0x2AAB,
     0x28F6,  0x2762,  0x25ED,  0x2492, 0x234F, 0x2222, 0x2108, 0x2000,
     0x1F08,  0x1E1E,  0x1D42,  0x1C72, 0x1BAD, 0x1AF3, 0x1A42, 0x199A,
     0x18FA,  0x1862,  0x17D0,  0x1746, 0x16C1, 0x1643, 0x15CA, 0x1555,
     0x14E6,  0x147B,  0x1414,  0x13B1, 0x1352, 0x12F7, 0x129E, 0x1249,
     0x11F7,  0x11A8,  0x115B,  0x1111, 0x10C9, 0x1084, 0x1000
}

Definition at line 1085 of file vc1data.c.

Referenced by vc1_decode_i_block_adv(), vc1_decode_intra_block(), and vc1_pred_dc().

const uint16_t ff_vc1_field_mvpred_scales[2][7][4]

Initial value:

 {


  { 
    { 128,    192,    213,    224 },   
    { 512,    341,    307,    293 },   
    { 219,    236,    242,    245 },   
    {  32,     48,     53,     56 },   
    {   8,     12,     13,     14 },   
    {  37,     20,     14,     11 },   
    {  10,      5,      4,      3 }    
  },
  { 
    { 128,     64,     43,     32 },   
    { 512,   1024,   1536,   2048 },   
    { 219,    204,    200,    198 },   
    {  32,     16,     11,      8 },   
    {   8,      4,      3,      2 },   
    {  37,     52,     56,     58 },   
    {  10,     13,     14,     15 }    
  }
}

Definition at line 1097 of file vc1data.c.

Referenced by scaleforopp(), scaleforsame_x(), and scaleforsame_y().

const int ff_vc1_fps_dr[2] = { 1000, 1001 }

Definition at line 88 of file vc1data.c.

Referenced by decode_sequence_header_adv().

const int ff_vc1_fps_nr[7] = { 24, 25, 30, 50, 60, 48, 72 }

Definition at line 87 of file vc1data.c.

Referenced by decode_sequence_header_adv().

Definition at line 793 of file vc1data.c.

Referenced by ff_vc1_init_common().

const uint16_t ff_vc1_icbpcy_p_codes[8][63]

Definition at line 710 of file vc1data.c.

Referenced by ff_vc1_init_common().

Definition at line 121 of file vc1data.c.

Referenced by ff_vc1_init_common(), and ff_vc1_parse_frame_header_adv().

Initial value:

 {
    { 5, 5, 1, 3, 2, 4 },
    { 5, 5, 1, 2, 3, 4 },
    { 5, 5, 2, 1, 4, 3 },
    { 5, 5, 2, 4, 1, 3 },
    { 4, 4, 2, 3, 2, 2 },
    { 4, 4, 3, 2, 2, 2 },
    { 5, 5, 3, 4, 1, 2 },
    { 5, 5, 4, 3, 2, 1 }
}

Definition at line 329 of file vc1data.c.

Referenced by ff_vc1_init_common().

Initial value:

 {
    {  0,  1,  1,  1,  1,  1 },
    {  0,  1,  1,  1,  1,  1 },
    { 16, 17,  3,  0,  9,  5 },
    { 20, 21,  3, 11,  0,  4 },
    {  4,  5,  2,  3,  3,  0 },
    {  4,  5,  3,  2,  0,  3 },
    {  0,  1,  1,  1,  1,  1 },
    { 16, 17,  9,  5,  3,  0 }
}

Definition at line 319 of file vc1data.c.

Referenced by ff_vc1_init_common().

Definition at line 137 of file vc1data.c.

Referenced by ff_vc1_init_common(), and ff_vc1_parse_frame_header_adv().

Initial value:

 {
    { 6, 6, 2, 3, 2, 4, 5, 2 },
    { 5, 5, 3, 3, 3, 2, 4, 2 },
    { 6, 6, 4, 3, 2, 2, 5, 2 },
    { 6, 6, 4, 3, 3, 3, 5, 1 },
    { 6, 6, 5, 4, 4, 2, 4, 1 },
    { 6, 6, 5, 3, 3, 1, 4, 3 },
    { 5, 5, 3, 3, 2, 2, 4, 3 },
    { 6, 6, 1, 3, 3, 5, 3, 4 }
}

Definition at line 308 of file vc1data.c.

Referenced by ff_vc1_init_common().

Initial value:

 {
    { 16, 17,  3,  3,  0,  5,  9,  2 },
    {  8,  9,  3,  6,  7,  0,  5,  2 },
    { 16, 17,  5,  3,  0,  3,  9,  2 },
    { 56, 57, 15,  4,  5,  6, 29,  0 },
    { 52, 53, 27, 14, 15,  2, 12,  0 },
    { 56, 57, 29,  5,  6,  0, 15,  4 },
    { 16, 17,  6,  7,  0,  1,  9,  5 },
    { 56, 57,  0,  5,  6, 29,  4, 15 }
}

Definition at line 298 of file vc1data.c.

Referenced by ff_vc1_init_common().

Definition at line 135 of file vc1data.c.

Referenced by ff_vc1_init_common(), and ff_vc1_parse_frame_header_adv().

Initial value:

 {
    4, 2, 3, 2, 4, 3, 3
}

Definition at line 217 of file vc1data.c.

Referenced by ff_vc1_init_common().

Initial value:

 {
    0, 2, 1, 3, 1, 2, 3
}

Definition at line 214 of file vc1data.c.

Referenced by ff_vc1_init_common().

Definition at line 108 of file vc1data.c.

Referenced by bitplane_decoding(), and ff_vc1_init_common().

Initial value:

 {
    { 5, 5, 2, 6, 6, 4, 2, 2, 7,  8, 8,  7,  5, 7,  5 },
    { 3, 6, 3, 3, 5, 3, 3, 3, 4,  6, 6,  4,  5, 7,  7 },
    { 4, 3, 5, 5, 7, 4, 2, 5, 5,  5, 7,  5,  2, 6,  5 },
    { 4, 9, 1, 3, 9, 5, 6, 2, 8, 12, 8, 10, 11, 9, 12 }
}

Definition at line 274 of file vc1data.c.

Referenced by ff_vc1_init_common().

const uint16_t ff_vc1_intfr_4mv_mbmode_codes[4][15]

Initial value:

 {
    { 22,  17,  0, 47,  32, 10,  1,  3, 67,  133, 132,  92,  19,  93,   18 },
    {  3,  45,  0,  7,  23,  6,  1,  2, 10,   39,  44,   8,  18,  77,   76 },
    { 15,   6, 28,  9,  41,  6,  2, 15, 14,    8,  40,  29,   0,  21,   11 },
    {  7, 198,  1,  2, 193, 13, 25,  0, 97, 1599,  98, 398, 798, 192, 1598 }
}

Definition at line 267 of file vc1data.c.

Referenced by ff_vc1_init_common().

Definition at line 131 of file vc1data.c.

Referenced by ff_vc1_init_common(), and ff_vc1_parse_frame_header_adv().

Initial value:

 {
    {  4,  5,  2,  5,  5,  4,  2,  2,  5 },
    {  3,  4,  6,  2,  3,  2,  3,  5,  6 },
    {  2,  2,  4,  5,  6,  4,  2,  4,  6 },
    {  4,  8,  1,  3,  7,  5,  6,  2,  8 }
}

Definition at line 289 of file vc1data.c.

Referenced by ff_vc1_init_common().

Initial value:

 {
    {  9, 22,  0, 17, 16, 10,  1,  3, 23 },
    {  7,  0,  5,  2,  1,  1,  6,  3,  4 },
    {  1,  0, 10, 23, 44,  8,  3,  9, 45 },
    {  7, 97,  1,  2, 49, 13, 25,  0, 96 }
}

Definition at line 282 of file vc1data.c.

Referenced by ff_vc1_init_common().

Definition at line 133 of file vc1data.c.

Referenced by ff_vc1_init_common(), and ff_vc1_parse_frame_header_adv().

const uint8_t ff_vc1_mbmode_intfrp[2][15][4]

Definition at line 53 of file vc1data.c.

Referenced by vc1_decode_p_mb_intfr().

Definition at line 987 of file vc1data.c.

Referenced by ff_vc1_init_common().

const uint16_t ff_vc1_mv_diff_codes[4][73]

Definition at line 937 of file vc1data.c.

Referenced by ff_vc1_init_common().

Definition at line 117 of file vc1data.c.

Referenced by ff_vc1_init_common().

Initial value:

 {
    1, 3, 3, 2
}

Definition at line 225 of file vc1data.c.

Referenced by ff_vc1_init_common().

Initial value:

 {
    0, 4, 5, 3
}

Definition at line 222 of file vc1data.c.

Referenced by ff_vc1_init_common().

Definition at line 110 of file vc1data.c.

Referenced by bitplane_decoding(), and ff_vc1_init_common().

Initial value:

 {
    1,  4,  4,  8,  4,  8,  8, 10,  4,  8,  8, 10,  8, 10, 10, 13,
    4,  8,  8, 10,  8, 10, 10, 13,  8, 10, 10, 13, 10, 13, 13,  9,
    4,  8,  8, 10,  8, 10, 10, 13,  8, 10, 10, 13, 10, 13, 13,  9,
    8, 10, 10, 13, 10, 13, 13,  9, 10, 13, 13,  9, 13,  9,  9,  6,
}

Definition at line 236 of file vc1data.c.

Referenced by ff_vc1_init_common().

const uint16_t ff_vc1_norm6_codes[64]

Initial value:

 {
    0x001, 0x002, 0x003, 0x000, 0x004, 0x001, 0x002, 0x047, 0x005, 0x003, 0x004, 0x04B, 0x005, 0x04D, 0x04E, 0x30E,
    0x006, 0x006, 0x007, 0x053, 0x008, 0x055, 0x056, 0x30D, 0x009, 0x059, 0x05A, 0x30C, 0x05C, 0x30B, 0x30A, 0x037,
    0x007, 0x00A, 0x00B, 0x043, 0x00C, 0x045, 0x046, 0x309, 0x00D, 0x049, 0x04A, 0x308, 0x04C, 0x307, 0x306, 0x036,
    0x00E, 0x051, 0x052, 0x305, 0x054, 0x304, 0x303, 0x035, 0x058, 0x302, 0x301, 0x034, 0x300, 0x033, 0x032, 0x007,
}

Definition at line 229 of file vc1data.c.

Referenced by ff_vc1_init_common().

Definition at line 112 of file vc1data.c.

Referenced by bitplane_decoding(), and ff_vc1_init_common().

Initial value:

 {
    {   0,  1 },
    {   1,  1 },
    {  12, 11 },
    {  10, 11 },
    {  16, 11 },
    {  40, 33 },
    {  24, 11 },
    {  20, 11 },
    {  32, 11 },
    {  80, 33 },
    {  18, 11 },
    {  15, 11 },
    {  64, 33 },
    { 160, 99 },
    {   0,  1 },
    {   0,  1 }
}

Definition at line 194 of file vc1data.c.

Referenced by decode_sequence_header_adv().

Initial value:

 {
    
    {  0,  1,  2,  3,  4,  5,  6,  7,  8,  6,  7,  8,  9, 10, 11, 12,
      13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 29, 31 },
    
    {  0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15,
      16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 },
    
    {  0,  1,  1,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13,
      14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 29, 31 }
}

Definition at line 89 of file vc1data.c.

Referenced by ff_vc1_parse_frame_header(), and ff_vc1_parse_frame_header_adv().

Initial value:

 {
     0,     8,    16,     1,
     9,    24,    17,     2,
    10,    18,    25,     3,
    11,    26,    19,    27
}

Definition at line 1022 of file vc1data.c.

Referenced by vc1_decode_p_block().

Initial value:

 {
    {  5,  5,  5,  5,  5,  6,  4,  5,  6,  5,  4,  5,  4,  5,  1},
    {  4,  3,  4,  4,  4,  5,  5,  4,  5,  4,  5,  4,  5,  5,  2},
    {  3,  3,  4,  3,  4,  5,  5,  3,  5,  4,  5,  4,  5,  5,  4}
}

Definition at line 930 of file vc1data.c.

Referenced by ff_vc1_init_common().

Initial value:

 {
    { 14, 12,  7, 11,  9, 26,  2, 10, 27,  8,  0,  6,  1, 15,  1 },
    { 14,  0,  8, 15, 10,  4, 23, 13,  5,  9, 25,  3, 24, 22,  1 },
    {  5,  6,  2,  2,  8,  0, 28,  3,  1,  3, 29,  1, 19, 18, 15 }
}

Definition at line 925 of file vc1data.c.

Referenced by ff_vc1_init_common().

Definition at line 129 of file vc1data.c.

Referenced by ff_vc1_init_common(), and vc1_decode_p_block().

Initial value:

 {
    {  2,  2,  2,  3,  5,  5,  5,  5 },
    {  2,  3,  3,  3,  3,  3,  4,  4 },
    {  2,  3,  3,  3,  3,  3,  4,  4 }
}

Definition at line 918 of file vc1data.c.

Referenced by ff_vc1_init_common().

Initial value:

 {
    {  0,  1,  3,  5, 16, 17, 18, 19 },
    {  3,  0,  1,  2,  3,  5,  8,  9 },
    {  1,  0,  1,  4,  6,  7, 10, 11 }
}

Definition at line 913 of file vc1data.c.

Referenced by ff_vc1_init_common().

const int ff_vc1_ttblk_to_tt[3][8]

Initial value:

Table for conversion between TTBLK and TTMB.

Definition at line 34 of file vc1data.c.

Referenced by vc1_decode_p_block().

Definition at line 127 of file vc1data.c.

Referenced by ff_vc1_init_common(), and vc1_decode_p_block().

const int ff_vc1_ttfrm_to_tt[4] = { TT_8X8, TT_8X4, TT_4X8, TT_4X4 }

Definition at line 40 of file vc1data.c.

Referenced by ff_vc1_parse_frame_header(), and ff_vc1_parse_frame_header_adv().

const uint8_t ff_vc1_ttmb_bits[3][16]

Initial value:

 {
  {
     2,
     6,  7,  2,
     5,  5,  2,
     3,  5,
    10,  9,  9,
    12, 12, 11,
     9
  },
  {
    3,
    4, 4, 4,
    4, 4, 3,
    3, 2,
    7, 7, 6,
    6, 8, 7,
    8
  },
  {
     3,
     3, 4, 5,
     3, 3, 4,
     4, 2,
    10, 8, 6,
    11, 9, 7,
    11
  }
}

Definition at line 882 of file vc1data.c.

Referenced by ff_vc1_init_common().

const uint16_t ff_vc1_ttmb_codes[3][16]

Initial value:

 {
  {
    0x0003,
    0x002E, 0x005F, 0x0000,
    0x0016, 0x0015, 0x0001,
    0x0004, 0x0014,
    0x02F1, 0x0179, 0x017B,
    0x0BC0, 0x0BC1, 0x05E1,
    0x017A
  },
  {
    0x0006,
    0x0006, 0x0003, 0x0007,
    0x000F, 0x000E, 0x0000,
    0x0002, 0x0002,
    0x0014, 0x0011, 0x000B,
    0x0009, 0x0021, 0x0015,
    0x0020
  },
  {
    0x0006,
    0x0000, 0x000E, 0x0005,
    0x0002, 0x0003, 0x0003,
    0x000F, 0x0002,
    0x0081, 0x0021, 0x0009,
    0x0101, 0x0041, 0x0011,
    0x0100
  }
}

Definition at line 852 of file vc1data.c.

Referenced by ff_vc1_init_common().

Initial value:

 {
     0,  2,  4,  8,  8,  8,  9,  9, 10, 10, 11, 11, 12, 12, 13, 13,
    14, 14, 15, 15, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21
}

Definition at line 648 of file vc1data.c.

Referenced by ff_msmpeg4_common_init().


Generated on Fri Oct 26 02:50:08 2012 for FFmpeg by  doxygen 1.5.8