FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Variables
msmpeg4data.c File Reference

MSMPEG4 data tables. More...

#include "msmpeg4data.h"

Go to the source code of this file.

Variables

uint32_t ff_v2_dc_lum_table [512][2]
 
uint32_t ff_v2_dc_chroma_table [512][2]
 
uint8_t ff_static_rl_table_store [NB_RL_TABLES][2][2 *MAX_RUN+MAX_LEVEL+3]
 
VLC ff_msmp4_mb_i_vlc
 
VLC ff_msmp4_dc_luma_vlc [2]
 
VLC ff_msmp4_dc_chroma_vlc [2]
 
const uint16_t ff_msmp4_mb_i_table [64][2]
 
const uint32_t ff_table_mb_non_intra [128][2]
 
const uint32_t ff_table0_dc_lum [120][2]
 
const uint32_t ff_table0_dc_chroma [120][2]
 
const uint32_t ff_table1_dc_lum [120][2]
 
const uint32_t ff_table1_dc_chroma [120][2]
 
static const uint16_t table0_vlc [133][2]
 
static const int8_t table0_level [132]
 
static const int8_t table0_run [132]
 
static const uint16_t table1_vlc [149][2]
 
static const int8_t table1_level [148]
 
static const int8_t table1_run [148]
 
static const uint16_t table2_vlc [186][2]
 
static const int8_t table2_level [185]
 
static const int8_t table2_run [185]
 
static const uint16_t table4_vlc [169][2]
 
static const int8_t table4_level [168]
 
static const int8_t table4_run [168]
 
const uint16_t ff_inter_vlc [103][2]
 
const int8_t ff_inter_level [102]
 
const int8_t ff_inter_run [102]
 
const uint16_t ff_mpeg4_intra_vlc [103][2]
 
const int8_t ff_mpeg4_intra_level [102]
 
const int8_t ff_mpeg4_intra_run [102]
 
RLTable ff_rl_table [NB_RL_TABLES]
 
static const uint16_t table0_mv_code [1100]
 
static const uint8_t table0_mv_bits [1100]
 
static const uint8_t table0_mvx [1099]
 
static const uint8_t table0_mvy [1099]
 
static const uint16_t table1_mv_code [1100]
 
static const uint8_t table1_mv_bits [1100]
 
static const uint8_t table1_mvx [1099]
 
static const uint8_t table1_mvy [1099]
 
MVTable ff_mv_tables [2]
 
const uint8_t ff_v2_mb_type [8][2]
 
const uint8_t ff_v2_intra_cbpc [4][2]
 
const uint8_t ff_wmv1_y_dc_scale_table [32]
 
const uint8_t ff_wmv1_c_dc_scale_table [32]
 
const uint8_t ff_old_ff_y_dc_scale_table [32]
 
const uint8_t ff_wmv1_scantable [WMV1_SCANTABLE_COUNT][64]
 
const uint8_t ff_table_inter_intra [4][2]
 
static const uint32_t table_mb_non_intra2 [128][2]
 
static const uint32_t table_mb_non_intra3 [128][2]
 
static const uint32_t table_mb_non_intra4 [128][2]
 
const uint32_t(*const
[WMV2_INTER_CBP_TABLE_COUNT
ff_wmv2_inter_table )[2]
 
const uint8_t ff_wmv2_scantableA [64]
 
const uint8_t ff_wmv2_scantableB [64]
 

Detailed Description

MSMPEG4 data tables.

Definition in file msmpeg4data.c.

Variable Documentation

uint32_t ff_v2_dc_lum_table[512][2]
uint32_t ff_v2_dc_chroma_table[512][2]
uint8_t ff_static_rl_table_store[NB_RL_TABLES][2][2 *MAX_RUN+MAX_LEVEL+3]

Definition at line 34 of file msmpeg4data.c.

Referenced by ff_msmpeg4_decode_init(), and ff_msmpeg4_encode_init().

VLC ff_msmp4_mb_i_vlc
VLC ff_msmp4_dc_luma_vlc[2]
VLC ff_msmp4_dc_chroma_vlc[2]
const uint16_t ff_msmp4_mb_i_table[64][2]
Initial value:
= {
{ 0x1, 1 },{ 0x17, 6 },{ 0x9, 5 },{ 0x5, 5 },
{ 0x6, 5 },{ 0x47, 9 },{ 0x20, 7 },{ 0x10, 7 },
{ 0x2, 5 },{ 0x7c, 9 },{ 0x3a, 7 },{ 0x1d, 7 },
{ 0x2, 6 },{ 0xec, 9 },{ 0x77, 8 },{ 0x0, 8 },
{ 0x3, 5 },{ 0xb7, 9 },{ 0x2c, 7 },{ 0x13, 7 },
{ 0x1, 6 },{ 0x168, 10 },{ 0x46, 8 },{ 0x3f, 8 },
{ 0x1e, 6 },{ 0x712, 13 },{ 0xb5, 9 },{ 0x42, 8 },
{ 0x22, 7 },{ 0x1c5, 11 },{ 0x11e, 10 },{ 0x87, 9 },
{ 0x6, 4 },{ 0x3, 9 },{ 0x1e, 7 },{ 0x1c, 6 },
{ 0x12, 7 },{ 0x388, 12 },{ 0x44, 9 },{ 0x70, 9 },
{ 0x1f, 6 },{ 0x23e, 11 },{ 0x39, 8 },{ 0x8e, 9 },
{ 0x1, 7 },{ 0x1c6, 11 },{ 0xb6, 9 },{ 0x45, 9 },
{ 0x14, 6 },{ 0x23f, 11 },{ 0x7d, 9 },{ 0x18, 9 },
{ 0x7, 7 },{ 0x1c7, 11 },{ 0x86, 9 },{ 0x19, 9 },
{ 0x15, 6 },{ 0x1db, 10 },{ 0x2, 9 },{ 0x46, 9 },
{ 0xd, 8 },{ 0x713, 13 },{ 0x1da, 10 },{ 0x169, 10 },
}

Definition at line 41 of file msmpeg4data.c.

Referenced by ff_msmpeg4_decode_init(), ff_msmpeg4_encode_mb(), and ff_wmv2_encode_mb().

const uint32_t ff_table_mb_non_intra[128][2]

Definition at line 61 of file msmpeg4data.c.

Referenced by ff_msmpeg4_encode_mb().

const uint32_t ff_table0_dc_lum[120][2]

Definition at line 98 of file msmpeg4data.c.

Referenced by ff_msmpeg4_decode_init(), and msmpeg4_encode_dc().

const uint32_t ff_table0_dc_chroma[120][2]

Definition at line 131 of file msmpeg4data.c.

Referenced by ff_msmpeg4_decode_init(), and msmpeg4_encode_dc().

const uint32_t ff_table1_dc_lum[120][2]

Definition at line 166 of file msmpeg4data.c.

Referenced by ff_msmpeg4_decode_init(), and msmpeg4_encode_dc().

const uint32_t ff_table1_dc_chroma[120][2]

Definition at line 199 of file msmpeg4data.c.

Referenced by ff_msmpeg4_decode_init(), and msmpeg4_encode_dc().

const uint16_t table0_vlc[133][2]
static

Definition at line 234 of file msmpeg4data.c.

const int8_t table0_level[132]
static
Initial value:
= {
1, 2, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, 13, 14, 15, 16,
1, 2, 3, 4, 5, 6, 7, 8,
9, 10, 11, 1, 2, 3, 4, 5,
6, 7, 8, 1, 2, 3, 4, 5,
6, 7, 1, 2, 3, 4, 5, 1,
2, 3, 4, 1, 2, 3, 4, 1,
2, 3, 1, 2, 3, 1, 2, 3,
1, 2, 3, 1, 2, 3, 1, 2,
3, 1, 2, 3, 1, 2, 1, 2,
1, 1, 1, 1, 1, 1, 2, 3,
4, 1, 2, 3, 4, 1, 2, 3,
1, 2, 3, 1, 2, 1, 2, 1,
2, 1, 2, 1, 2, 1, 2, 1,
2, 1, 2, 1, 2, 1, 2, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1,
}

Definition at line 271 of file msmpeg4data.c.

const int8_t table0_run[132]
static
Initial value:
= {
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 2, 2, 2, 2, 2,
2, 2, 2, 3, 3, 3, 3, 3,
3, 3, 4, 4, 4, 4, 4, 5,
5, 5, 5, 6, 6, 6, 6, 7,
7, 7, 8, 8, 8, 9, 9, 9,
10, 10, 10, 11, 11, 11, 12, 12,
12, 13, 13, 13, 14, 14, 15, 15,
16, 17, 18, 19, 20, 0, 0, 0,
0, 1, 1, 1, 1, 2, 2, 2,
3, 3, 3, 4, 4, 5, 5, 6,
6, 7, 7, 8, 8, 9, 9, 10,
10, 11, 11, 12, 12, 13, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22,
23, 24, 25, 26,
}

Definition at line 291 of file msmpeg4data.c.

const uint16_t table1_vlc[149][2]
static

Definition at line 313 of file msmpeg4data.c.

const int8_t table1_level[148]
static
Initial value:
= {
1, 2, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, 13, 14, 1, 2,
3, 4, 5, 6, 7, 8, 9, 1,
2, 3, 4, 5, 1, 2, 3, 4,
1, 2, 3, 4, 1, 2, 3, 4,
1, 2, 3, 1, 2, 3, 1, 2,
3, 1, 2, 3, 1, 2, 3, 1,
2, 3, 1, 2, 3, 1, 2, 1,
2, 1, 2, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 2, 3, 4, 5, 1, 2,
3, 4, 1, 2, 3, 1, 2, 3,
1, 2, 1, 2, 1, 2, 1, 2,
1, 2, 1, 2, 1, 2, 1, 2,
1, 2, 1, 2, 1, 2, 1, 2,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1,
}

Definition at line 354 of file msmpeg4data.c.

const int8_t table1_run[148]
static
Initial value:
= {
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 1, 1,
1, 1, 1, 1, 1, 1, 1, 2,
2, 2, 2, 2, 3, 3, 3, 3,
4, 4, 4, 4, 5, 5, 5, 5,
6, 6, 6, 7, 7, 7, 8, 8,
8, 9, 9, 9, 10, 10, 10, 11,
11, 11, 12, 12, 12, 13, 13, 14,
14, 15, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28,
29, 0, 0, 0, 0, 0, 1, 1,
1, 1, 2, 2, 2, 3, 3, 3,
4, 4, 5, 5, 6, 6, 7, 7,
8, 8, 9, 9, 10, 10, 11, 11,
12, 12, 13, 13, 14, 14, 15, 15,
16, 17, 18, 19, 20, 21, 22, 23,
24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39,
40, 41, 42, 43,
}

Definition at line 376 of file msmpeg4data.c.

const uint16_t table2_vlc[186][2]
static

Definition at line 400 of file msmpeg4data.c.

const int8_t table2_level[185]
static
Initial value:
= {
1, 2, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 1, 2, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12, 13,
14, 15, 1, 2, 3, 4, 5, 6,
7, 8, 9, 10, 11, 12, 1, 2,
3, 4, 5, 6, 7, 8, 9, 10,
11, 1, 2, 3, 4, 5, 6, 1,
2, 3, 4, 5, 1, 2, 3, 4,
1, 2, 3, 4, 1, 2, 3, 4,
1, 2, 3, 4, 1, 2, 3, 1,
2, 3, 1, 2, 3, 1, 2, 3,
1, 2, 3, 1, 2, 3, 1, 2,
1, 2, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
2, 3, 4, 5, 6, 1, 2, 3,
4, 5, 1, 2, 3, 4, 1, 2,
3, 4, 1, 2, 3, 1, 2, 1,
2, 1, 2, 1, 2, 1, 2, 1,
2, 1, 2, 1, 2, 1, 2, 1,
2, 1, 2, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1,
}

Definition at line 450 of file msmpeg4data.c.

const int8_t table2_run[185]
static
Initial value:
= {
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3,
3, 4, 4, 4, 4, 4, 4, 5,
5, 5, 5, 5, 6, 6, 6, 6,
7, 7, 7, 7, 8, 8, 8, 8,
9, 9, 9, 9, 10, 10, 10, 11,
11, 11, 12, 12, 12, 13, 13, 13,
14, 14, 14, 15, 15, 15, 16, 16,
17, 17, 18, 19, 20, 21, 22, 23,
24, 25, 26, 27, 28, 29, 30, 0,
0, 0, 0, 0, 0, 1, 1, 1,
1, 1, 2, 2, 2, 2, 3, 3,
3, 3, 4, 4, 4, 5, 5, 6,
6, 7, 7, 8, 8, 9, 9, 10,
10, 11, 11, 12, 12, 13, 13, 14,
14, 15, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28,
29, 30, 31, 32, 33, 34, 35, 36,
37,
}

Definition at line 477 of file msmpeg4data.c.

const uint16_t table4_vlc[169][2]
static

Definition at line 505 of file msmpeg4data.c.

const int8_t table4_level[168]
static
Initial value:
= {
1, 2, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 1,
2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 1, 2, 3, 4, 5, 6,
7, 8, 1, 2, 3, 4, 5, 6,
7, 1, 2, 3, 4, 5, 1, 2,
3, 4, 5, 1, 2, 3, 4, 1,
2, 3, 4, 1, 2, 3, 1, 2,
3, 1, 2, 3, 1, 2, 3, 1,
2, 1, 2, 1, 2, 1, 2, 1,
2, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 2, 3, 4, 5,
6, 7, 8, 9, 1, 2, 3, 4,
5, 1, 2, 3, 4, 1, 2, 3,
4, 1, 2, 3, 1, 2, 3, 1,
2, 3, 1, 2, 1, 2, 1, 2,
1, 2, 1, 2, 1, 2, 1, 2,
1, 2, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
}

Definition at line 551 of file msmpeg4data.c.

const int8_t table4_run[168]
static
Initial value:
= {
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 2, 2, 2, 2, 2, 2,
2, 2, 3, 3, 3, 3, 3, 3,
3, 4, 4, 4, 4, 4, 5, 5,
5, 5, 5, 6, 6, 6, 6, 7,
7, 7, 7, 8, 8, 8, 9, 9,
9, 10, 10, 10, 11, 11, 11, 12,
12, 13, 13, 14, 14, 15, 15, 16,
16, 17, 18, 19, 20, 21, 22, 23,
24, 25, 26, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 1, 1, 1,
1, 2, 2, 2, 2, 3, 3, 3,
3, 4, 4, 4, 5, 5, 5, 6,
6, 6, 7, 7, 8, 8, 9, 9,
10, 10, 11, 11, 12, 12, 13, 13,
14, 14, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28,
29, 30, 31, 32, 33, 34, 35, 36,
}

Definition at line 575 of file msmpeg4data.c.

const uint16_t ff_inter_vlc[103][2]

Definition at line 101 of file h263data.h.

const int8_t ff_inter_level[102]

Definition at line 130 of file h263data.h.

const int8_t ff_inter_run[102]

Definition at line 146 of file h263data.h.

const uint16_t ff_mpeg4_intra_vlc[103][2]

Definition at line 47 of file mpeg4data.h.

const int8_t ff_mpeg4_intra_level[102]

Definition at line 77 of file mpeg4data.h.

const int8_t ff_mpeg4_intra_run[102]

Definition at line 93 of file mpeg4data.h.

RLTable ff_rl_table[NB_RL_TABLES]
const uint16_t table0_mv_code[1100]
static

Definition at line 662 of file msmpeg4data.c.

const uint8_t table0_mv_bits[1100]
static

Definition at line 803 of file msmpeg4data.c.

const uint8_t table0_mvx[1099]
static

Definition at line 944 of file msmpeg4data.c.

const uint8_t table0_mvy[1099]
static

Definition at line 1085 of file msmpeg4data.c.

const uint16_t table1_mv_code[1100]
static

Definition at line 1227 of file msmpeg4data.c.

const uint8_t table1_mv_bits[1100]
static

Definition at line 1368 of file msmpeg4data.c.

const uint8_t table1_mvx[1099]
static

Definition at line 1509 of file msmpeg4data.c.

const uint8_t table1_mvy[1099]
static

Definition at line 1650 of file msmpeg4data.c.

MVTable ff_mv_tables[2]
const uint8_t ff_v2_mb_type[8][2]
Initial value:
= {
{1, 1}, {0 , 2}, {3 , 3}, {9 , 5},
{5, 4}, {0x21, 7}, {0x20, 7}, {0x11, 6},
}

Definition at line 1808 of file msmpeg4data.c.

Referenced by ff_msmpeg4_decode_init(), and ff_msmpeg4_encode_mb().

const uint8_t ff_v2_intra_cbpc[4][2]
Initial value:
= {
{1, 1}, {0, 3}, {1, 3}, {1, 2},
}

Definition at line 1813 of file msmpeg4data.c.

Referenced by ff_msmpeg4_decode_init(), and ff_msmpeg4_encode_mb().

const uint8_t ff_wmv1_y_dc_scale_table[32]
Initial value:
={
0, 8, 8, 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 1817 of file msmpeg4data.c.

Referenced by ff_msmpeg4_common_init().

const uint8_t ff_wmv1_c_dc_scale_table[32]
Initial value:
={
0, 8, 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,22
}

Definition at line 1821 of file msmpeg4data.c.

Referenced by ff_msmpeg4_common_init().

const uint8_t ff_old_ff_y_dc_scale_table[32]
Initial value:
={
0, 8, 8, 8, 8,10,12,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39
}

Definition at line 1826 of file msmpeg4data.c.

Referenced by ff_msmpeg4_common_init().

const uint8_t ff_wmv1_scantable[WMV1_SCANTABLE_COUNT][64]
const uint8_t ff_table_inter_intra[4][2]
Initial value:
={
{0,1} ,
{2,2} ,
{6,3} ,
{7,3}
}

Definition at line 1874 of file msmpeg4data.c.

Referenced by ff_msmpeg4_decode_init(), ff_msmpeg4_encode_mb(), and ff_wmv2_encode_mb().

const uint32_t table_mb_non_intra2[128][2]
static

Definition at line 1881 of file msmpeg4data.c.

const uint32_t table_mb_non_intra3[128][2]
static

Definition at line 1916 of file msmpeg4data.c.

const uint32_t table_mb_non_intra4[128][2]
static

Definition at line 1951 of file msmpeg4data.c.

const uint32_t(* const[WMV2_INTER_CBP_TABLE_COUNT] ff_wmv2_inter_table)[2]
const uint8_t ff_wmv2_scantableA[64]
Initial value:
={
0x00, 0x01, 0x02, 0x08, 0x03, 0x09, 0x0A, 0x10,
0x04, 0x0B, 0x11, 0x18, 0x12, 0x0C, 0x05, 0x13,
0x19, 0x0D, 0x14, 0x1A, 0x1B, 0x06, 0x15, 0x1C,
0x0E, 0x16, 0x1D, 0x07, 0x1E, 0x0F, 0x17, 0x1F,
}

Definition at line 1993 of file msmpeg4data.c.

Referenced by ff_vc1_decode_sequence_header(), ff_wmv2_common_init(), and wmv9_init().

const uint8_t ff_wmv2_scantableB[64]
Initial value:
={
0x00, 0x08, 0x01, 0x10, 0x09, 0x18, 0x11, 0x02,
0x20, 0x0A, 0x19, 0x28, 0x12, 0x30, 0x21, 0x1A,
0x38, 0x29, 0x22, 0x03, 0x31, 0x39, 0x0B, 0x2A,
0x13, 0x32, 0x1B, 0x3A, 0x23, 0x2B, 0x33, 0x3B,
}

Definition at line 2000 of file msmpeg4data.c.

Referenced by ff_vc1_decode_sequence_header(), ff_wmv2_common_init(), and wmv9_init().