FFmpeg
Variables
mpeg12data.c File Reference
#include "mpeg12data.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]
 
static const uint16_t mpeg1_vlc [113][2]
 
static const uint16_t mpeg2_vlc [113][2]
 
static const int8_t mpeg1_level [111]
 
static const int8_t mpeg1_run [111]
 
RLTable ff_rl_mpeg1
 
RLTable ff_rl_mpeg2
 
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 30 of file mpeg12data.c.

Referenced by calc_quant_matrix(), decode_init(), encode_init(), encode_picture(), ff_mpv_encode_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 41 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 52 of file mpeg12data.c.

Referenced by encode_dc(), ff_mpeg12_init_vlcs(), ff_mpeg1_encode_init(), 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 55 of file mpeg12data.c.

Referenced by encode_dc(), ff_mpeg12_init_vlcs(), ff_mpeg1_encode_init(), 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 59 of file mpeg12data.c.

Referenced by encode_dc(), ff_mpeg12_init_vlcs(), ff_mpeg1_encode_init(), 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 62 of file mpeg12data.c.

Referenced by encode_dc(), ff_mpeg12_init_vlcs(), ff_mpeg1_encode_init(), and speedhq_static_init().

◆ mpeg1_vlc

const uint16_t mpeg1_vlc[113][2]
static

Definition at line 66 of file mpeg12data.c.

◆ mpeg2_vlc

const uint16_t mpeg2_vlc[113][2]
static

Definition at line 99 of file mpeg12data.c.

◆ mpeg1_level

const int8_t mpeg1_level[111]
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, 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 132 of file mpeg12data.c.

◆ mpeg1_run

const int8_t mpeg1_run[111]
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, 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 149 of file mpeg12data.c.

◆ ff_rl_mpeg1

RLTable ff_rl_mpeg1

◆ ff_rl_mpeg2

RLTable ff_rl_mpeg2

◆ ff_mpeg12_mbAddrIncrTable

const uint8_t ff_mpeg12_mbAddrIncrTable[36][2]

Definition at line 182 of file mpeg12data.c.

Referenced by encode_mb_skip_run(), and ff_mpeg12_init_vlcs().

◆ ff_mpeg12_mbPatTable

const uint8_t ff_mpeg12_mbPatTable[64][2]

Definition at line 221 of file mpeg12data.c.

Referenced by ff_mpeg12_init_vlcs(), and mpeg1_encode_mb_internal().

◆ 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 288 of file mpeg12data.c.

Referenced by ff_mpeg12_init_vlcs(), ff_mpeg1_encode_init(), and mpeg1_encode_motion().

◆ ff_mpeg2_frame_rate_tab

const AVRational ff_mpeg2_frame_rate_tab[]

Definition at line 308 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 374 of file mpeg12data.c.

Referenced by mpeg1_encode_sequence_header(), and 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 395 of file mpeg12data.c.

Referenced by mpeg1_encode_sequence_header(), and mpeg_decode_postinit().

mpeg1_vlc
static const uint16_t mpeg1_vlc[113][2]
Definition: mpeg12data.c:66
mpeg1_level
static const int8_t mpeg1_level[111]
Definition: mpeg12data.c:132
mpeg2_vlc
static const uint16_t mpeg2_vlc[113][2]
Definition: mpeg12data.c:99
mpeg1_run
static const int8_t mpeg1_run[111]
Definition: mpeg12data.c:149