FFmpeg
Variables
msmpeg4data.c File Reference
#include "h263data.h"
#include "mpeg4videodata.h"
#include "msmpeg4data.h"
#include "rl.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]
 
const uint32_t ff_table_mb_non_intra [128][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]
 
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_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_COUNTff_wmv2_inter_table )[2]
 

Detailed Description

MSMPEG4 data tables.

Definition in file msmpeg4data.c.

Variable Documentation

◆ ff_v2_dc_lum_table

uint32_t ff_v2_dc_lum_table[512][2]

◆ ff_v2_dc_chroma_table

uint32_t ff_v2_dc_chroma_table[512][2]

◆ ff_table_mb_non_intra

const uint32_t ff_table_mb_non_intra[128][2]

Definition at line 39 of file msmpeg4data.c.

Referenced by ff_msmpeg4_encode_mb().

◆ table0_vlc

const uint16_t table0_vlc[133][2]
static

Definition at line 76 of file msmpeg4data.c.

◆ table0_level

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 113 of file msmpeg4data.c.

◆ table0_run

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 133 of file msmpeg4data.c.

◆ table1_vlc

const uint16_t table1_vlc[149][2]
static

Definition at line 155 of file msmpeg4data.c.

◆ table1_level

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 196 of file msmpeg4data.c.

◆ table1_run

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 218 of file msmpeg4data.c.

◆ table2_vlc

const uint16_t table2_vlc[186][2]
static

Definition at line 242 of file msmpeg4data.c.

◆ table2_level

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 292 of file msmpeg4data.c.

◆ table2_run

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 319 of file msmpeg4data.c.

◆ table4_vlc

const uint16_t table4_vlc[169][2]
static

Definition at line 347 of file msmpeg4data.c.

◆ table4_level

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 393 of file msmpeg4data.c.

◆ table4_run

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 417 of file msmpeg4data.c.

◆ ff_rl_table

RLTable ff_rl_table[NB_RL_TABLES]

◆ table0_mv_code

const uint16_t table0_mv_code[1100]
static

Definition at line 484 of file msmpeg4data.c.

◆ table0_mv_bits

const uint8_t table0_mv_bits[1100]
static

Definition at line 625 of file msmpeg4data.c.

◆ table0_mvx

const uint8_t table0_mvx[1099]
static

Definition at line 766 of file msmpeg4data.c.

◆ table0_mvy

const uint8_t table0_mvy[1099]
static

Definition at line 907 of file msmpeg4data.c.

◆ table1_mv_code

const uint16_t table1_mv_code[1100]
static

Definition at line 1049 of file msmpeg4data.c.

◆ table1_mv_bits

const uint8_t table1_mv_bits[1100]
static

Definition at line 1190 of file msmpeg4data.c.

◆ table1_mvx

const uint8_t table1_mvx[1099]
static

Definition at line 1331 of file msmpeg4data.c.

◆ table1_mvy

const uint8_t table1_mvy[1099]
static

Definition at line 1472 of file msmpeg4data.c.

◆ ff_mv_tables

MVTable ff_mv_tables[2]

◆ ff_v2_mb_type

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 1624 of file msmpeg4data.c.

Referenced by ff_msmpeg4_encode_mb(), and msmpeg4_decode_init_static().

◆ ff_v2_intra_cbpc

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

Definition at line 1629 of file msmpeg4data.c.

Referenced by ff_msmpeg4_encode_mb(), and msmpeg4_decode_init_static().

◆ ff_wmv1_y_dc_scale_table

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 1633 of file msmpeg4data.c.

Referenced by ff_msmpeg4_common_init().

◆ ff_wmv1_c_dc_scale_table

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 1637 of file msmpeg4data.c.

Referenced by ff_msmpeg4_common_init().

◆ ff_old_ff_y_dc_scale_table

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 1642 of file msmpeg4data.c.

Referenced by ff_msmpeg4_common_init().

◆ ff_table_inter_intra

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

Definition at line 1648 of file msmpeg4data.c.

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

◆ table_mb_non_intra2

const uint32_t table_mb_non_intra2[128][2]
static

Definition at line 1655 of file msmpeg4data.c.

◆ table_mb_non_intra3

const uint32_t table_mb_non_intra3[128][2]
static

Definition at line 1690 of file msmpeg4data.c.

◆ table_mb_non_intra4

const uint32_t table_mb_non_intra4[128][2]
static

Definition at line 1725 of file msmpeg4data.c.

◆ ff_wmv2_inter_table

const uint32_t(*const[WMV2_INTER_CBP_TABLE_COUNT] ff_wmv2_inter_table)[2]
table_mb_non_intra2
static const uint32_t table_mb_non_intra2[128][2]
Definition: msmpeg4data.c:1655
table0_mvx
static const uint8_t table0_mvx[1099]
Definition: msmpeg4data.c:766
table1_mvy
static const uint8_t table1_mvy[1099]
Definition: msmpeg4data.c:1472
ff_table_mb_non_intra
const uint32_t ff_table_mb_non_intra[128][2]
Definition: msmpeg4data.c:39
table1_mv_code
static const uint16_t table1_mv_code[1100]
Definition: msmpeg4data.c:1049
table_mb_non_intra3
static const uint32_t table_mb_non_intra3[128][2]
Definition: msmpeg4data.c:1690
table1_mv_bits
static const uint8_t table1_mv_bits[1100]
Definition: msmpeg4data.c:1190
table0_mv_code
static const uint16_t table0_mv_code[1100]
Definition: msmpeg4data.c:484
table1_mvx
static const uint8_t table1_mvx[1099]
Definition: msmpeg4data.c:1331
table_mb_non_intra4
static const uint32_t table_mb_non_intra4[128][2]
Definition: msmpeg4data.c:1725
table0_mv_bits
static const uint8_t table0_mv_bits[1100]
Definition: msmpeg4data.c:625
table0_mvy
static const uint8_t table0_mvy[1099]
Definition: msmpeg4data.c:907