FFmpeg
Variables
mpeg12data.c File Reference
#include "mpeg12data.h"
#include "mpeg12vlc.h"

Go to the source code of this file.

Variables

const uint16_t ff_mpeg1_default_intra_matrix [256]
 
const uint16_t ff_mpeg1_default_non_intra_matrix [64]
 
const uint16_t ff_mpeg12_vlc_dc_lum_code [12]
 
const unsigned char ff_mpeg12_vlc_dc_lum_bits [12]
 
const uint16_t ff_mpeg12_vlc_dc_chroma_code [12]
 
const unsigned char ff_mpeg12_vlc_dc_chroma_bits [12]
 
const uint16_t ff_mpeg1_vlc_table [MPEG12_RL_NB_ELEMS+2][2]
 
const uint16_t ff_mpeg2_vlc_table [MPEG12_RL_NB_ELEMS+2][2]
 
const int8_t ff_mpeg12_level [MPEG12_RL_NB_ELEMS]
 
const int8_t ff_mpeg12_run [MPEG12_RL_NB_ELEMS]
 
const uint8_t ff_mpeg12_mbAddrIncrTable [36][2]
 
const uint8_t ff_mpeg12_mbPatTable [64][2]
 
const uint8_t ff_mpeg12_mbMotionVectorTable [17][2]
 
const AVRational ff_mpeg2_frame_rate_tab []
 
const float ff_mpeg1_aspect [16]
 
const AVRational ff_mpeg2_aspect [16]
 

Detailed Description

MPEG-1/2 tables.

Definition in file mpeg12data.c.

Variable Documentation

◆ ff_mpeg1_default_intra_matrix

const uint16_t ff_mpeg1_default_intra_matrix[256]
Initial value:
= {
8, 16, 19, 22, 26, 27, 29, 34,
16, 16, 22, 24, 27, 29, 34, 37,
19, 22, 26, 27, 29, 34, 34, 38,
22, 22, 26, 27, 29, 34, 37, 40,
22, 26, 27, 29, 32, 35, 40, 48,
26, 27, 29, 32, 35, 40, 48, 58,
26, 27, 29, 34, 38, 46, 56, 69,
27, 29, 35, 38, 46, 56, 69, 83
}

Definition at line 31 of file mpeg12data.c.

Referenced by calc_quant_matrix(), decode_init(), encode_init(), encode_picture(), ff_mpv_encode_init(), ipu_decode_init(), mpeg1_decode_sequence(), tqi_calculate_qtable(), and vcr2_init_sequence().

◆ ff_mpeg1_default_non_intra_matrix

const uint16_t ff_mpeg1_default_non_intra_matrix[64]
Initial value:
= {
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16,
}

Definition at line 42 of file mpeg12data.c.

Referenced by ff_mpv_encode_init(), mpeg1_decode_sequence(), and vcr2_init_sequence().

◆ ff_mpeg12_vlc_dc_lum_code

const uint16_t ff_mpeg12_vlc_dc_lum_code[12]
Initial value:
= {
0x4, 0x0, 0x1, 0x5, 0x6, 0xe, 0x1e, 0x3e, 0x7e, 0xfe, 0x1fe, 0x1ff,
}

Definition at line 53 of file mpeg12data.c.

Referenced by mpeg12_init_vlcs(), and speedhq_static_init().

◆ ff_mpeg12_vlc_dc_lum_bits

const unsigned char ff_mpeg12_vlc_dc_lum_bits[12]
Initial value:
= {
3, 2, 2, 3, 3, 4, 5, 6, 7, 8, 9, 9,
}

Definition at line 56 of file mpeg12data.c.

Referenced by encode_dc(), mpeg12_init_vlcs(), speedhq_init_static_data(), and speedhq_static_init().

◆ ff_mpeg12_vlc_dc_chroma_code

const uint16_t ff_mpeg12_vlc_dc_chroma_code[12]
Initial value:
= {
0x0, 0x1, 0x2, 0x6, 0xe, 0x1e, 0x3e, 0x7e, 0xfe, 0x1fe, 0x3fe, 0x3ff,
}

Definition at line 60 of file mpeg12data.c.

Referenced by mpeg12_init_vlcs(), and speedhq_static_init().

◆ ff_mpeg12_vlc_dc_chroma_bits

const unsigned char ff_mpeg12_vlc_dc_chroma_bits[12]
Initial value:
= {
2, 2, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10,
}

Definition at line 63 of file mpeg12data.c.

Referenced by encode_dc(), mpeg12_init_vlcs(), speedhq_init_static_data(), and speedhq_static_init().

◆ ff_mpeg1_vlc_table

const uint16_t ff_mpeg1_vlc_table[MPEG12_RL_NB_ELEMS+2][2]

Definition at line 67 of file mpeg12data.c.

Referenced by mpeg12_init_vlcs().

◆ ff_mpeg2_vlc_table

const uint16_t ff_mpeg2_vlc_table[MPEG12_RL_NB_ELEMS+2][2]

Definition at line 100 of file mpeg12data.c.

Referenced by mpeg12_init_vlcs().

◆ ff_mpeg12_level

const int8_t ff_mpeg12_level[MPEG12_RL_NB_ELEMS]
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, 24,
25, 26, 27, 28, 29, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, 40,
1, 2, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 1, 2, 3, 4, 5, 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, 2, 1, 2,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1,
}

Definition at line 133 of file mpeg12data.c.

Referenced by mpeg12_init_vlcs().

◆ ff_mpeg12_run

const int8_t ff_mpeg12_run[MPEG12_RL_NB_ELEMS]
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, 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, 1,
1, 1, 2, 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, 15, 16, 16,
17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31,
}

Definition at line 150 of file mpeg12data.c.

Referenced by mpeg12_init_vlcs().

◆ ff_mpeg12_mbAddrIncrTable

const uint8_t ff_mpeg12_mbAddrIncrTable[36][2]

Definition at line 167 of file mpeg12data.c.

Referenced by mpeg12_init_vlcs().

◆ ff_mpeg12_mbPatTable

const uint8_t ff_mpeg12_mbPatTable[64][2]

Definition at line 206 of file mpeg12data.c.

Referenced by mpeg12_init_vlcs().

◆ ff_mpeg12_mbMotionVectorTable

const uint8_t ff_mpeg12_mbMotionVectorTable[17][2]
Initial value:
= {
{ 0x1, 1 },
{ 0x1, 2 },
{ 0x1, 3 },
{ 0x1, 4 },
{ 0x3, 6 },
{ 0x5, 7 },
{ 0x4, 7 },
{ 0x3, 7 },
{ 0xb, 9 },
{ 0xa, 9 },
{ 0x9, 9 },
{ 0x11, 10 },
{ 0x10, 10 },
{ 0xf, 10 },
{ 0xe, 10 },
{ 0xd, 10 },
{ 0xc, 10 },
}

Definition at line 273 of file mpeg12data.c.

Referenced by mpeg12_init_vlcs().

◆ ff_mpeg2_frame_rate_tab

const AVRational ff_mpeg2_frame_rate_tab[]

Definition at line 293 of file mpeg12data.c.

◆ ff_mpeg1_aspect

const float ff_mpeg1_aspect[16]
Initial value:
={
0.0000,
1.0000,
0.6735,
0.7031,
0.7615,
0.8055,
0.8437,
0.8935,
0.9157,
0.9815,
1.0255,
1.0695,
1.0950,
1.1575,
1.2015,
}

Definition at line 359 of file mpeg12data.c.

Referenced by mpeg_decode_postinit().

◆ ff_mpeg2_aspect

const AVRational ff_mpeg2_aspect[16]
Initial value:
={
{0,1},
{1,1},
{4,3},
{16,9},
{221,100},
{0,1},
{0,1},
{0,1},
{0,1},
{0,1},
{0,1},
{0,1},
{0,1},
{0,1},
{0,1},
{0,1},
}

Definition at line 380 of file mpeg12data.c.

Referenced by mpeg_decode_postinit().