FFmpeg
Variables
vc1data.c File Reference
#include "vc1.h"
#include "vc1data.h"
#include "vlc.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. More...
 
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. More...
 
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]
 
VC-1 VLC tables
Todo:
TODO move this into the context
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]
 
const int16_t ff_vc1_bfraction_lut [23]
 
const AVRational ff_vc1_pixel_aspect [16]
 
const uint8_t ff_wmv3_dc_scale_table [32]
 
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]
 

Detailed Description

VC-1 tables.

Definition in file vc1data.c.

Variable Documentation

◆ ff_vc1_ttblk_to_tt

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().

◆ ff_vc1_ttfrm_to_tt

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().

◆ ff_vc1_mv_pmode_table

const uint8_t ff_vc1_mv_pmode_table[2][5]

◆ ff_vc1_mv_pmode_table2

const uint8_t ff_vc1_mv_pmode_table2[2][4]

◆ ff_vc1_mbmode_intfrp

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

Definition at line 53 of file vc1data.c.

Referenced by vc1_decode_b_mb_intfr(), and vc1_decode_p_mb_intfr().

◆ ff_vc1_fps_nr

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().

◆ ff_vc1_fps_dr

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

Definition at line 88 of file vc1data.c.

Referenced by decode_sequence_header_adv().

◆ ff_vc1_pquant_table

const uint8_t ff_vc1_pquant_table[3][32]
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().

◆ ff_vc1_imode_vlc

VLC ff_vc1_imode_vlc

Definition at line 105 of file vc1data.c.

Referenced by bitplane_decoding(), and vc1_init_static().

◆ ff_vc1_norm2_vlc

VLC ff_vc1_norm2_vlc

Definition at line 106 of file vc1data.c.

Referenced by bitplane_decoding(), and vc1_init_static().

◆ ff_vc1_norm6_vlc

VLC ff_vc1_norm6_vlc

Definition at line 107 of file vc1data.c.

Referenced by bitplane_decoding(), and vc1_init_static().

◆ ff_vc1_ttmb_vlc

VLC ff_vc1_ttmb_vlc[3]

◆ ff_vc1_mv_diff_vlc

VLC ff_vc1_mv_diff_vlc[4]

Definition at line 110 of file vc1data.c.

Referenced by vc1_init_static().

◆ ff_vc1_cbpcy_p_vlc

VLC ff_vc1_cbpcy_p_vlc[4]

◆ ff_vc1_icbpcy_vlc

VLC ff_vc1_icbpcy_vlc[8]

Definition at line 112 of file vc1data.c.

Referenced by ff_vc1_parse_frame_header_adv(), and vc1_init_static().

◆ ff_vc1_4mv_block_pattern_vlc

VLC ff_vc1_4mv_block_pattern_vlc[4]

Definition at line 113 of file vc1data.c.

Referenced by ff_vc1_parse_frame_header_adv(), and vc1_init_static().

◆ ff_vc1_2mv_block_pattern_vlc

VLC ff_vc1_2mv_block_pattern_vlc[4]

Definition at line 114 of file vc1data.c.

Referenced by ff_vc1_parse_frame_header_adv(), and vc1_init_static().

◆ ff_vc1_ttblk_vlc

VLC ff_vc1_ttblk_vlc[3]

Definition at line 115 of file vc1data.c.

Referenced by vc1_decode_p_block(), and vc1_init_static().

◆ ff_vc1_subblkpat_vlc

VLC ff_vc1_subblkpat_vlc[3]

Definition at line 116 of file vc1data.c.

Referenced by vc1_decode_p_block(), and vc1_init_static().

◆ ff_vc1_intfr_4mv_mbmode_vlc

VLC ff_vc1_intfr_4mv_mbmode_vlc[4]

Definition at line 117 of file vc1data.c.

Referenced by ff_vc1_parse_frame_header_adv(), and vc1_init_static().

◆ ff_vc1_intfr_non4mv_mbmode_vlc

VLC ff_vc1_intfr_non4mv_mbmode_vlc[4]

Definition at line 118 of file vc1data.c.

Referenced by ff_vc1_parse_frame_header_adv(), and vc1_init_static().

◆ ff_vc1_if_mmv_mbmode_vlc

VLC ff_vc1_if_mmv_mbmode_vlc[8]

Definition at line 119 of file vc1data.c.

Referenced by ff_vc1_parse_frame_header_adv(), and vc1_init_static().

◆ ff_vc1_if_1mv_mbmode_vlc

VLC ff_vc1_if_1mv_mbmode_vlc[8]

Definition at line 120 of file vc1data.c.

Referenced by ff_vc1_parse_frame_header_adv(), and vc1_init_static().

◆ ff_vc1_1ref_mvdata_vlc

VLC ff_vc1_1ref_mvdata_vlc[4]

Definition at line 121 of file vc1data.c.

Referenced by ff_vc1_parse_frame_header_adv(), and vc1_init_static().

◆ ff_vc1_2ref_mvdata_vlc

VLC ff_vc1_2ref_mvdata_vlc[8]

Definition at line 122 of file vc1data.c.

Referenced by ff_vc1_parse_frame_header_adv(), and vc1_init_static().

◆ ff_vc1_ac_coeff_table

VLC ff_vc1_ac_coeff_table[8]

Definition at line 124 of file vc1data.c.

Referenced by vc1_decode_ac_coeff(), and vc1_init_static().

◆ ff_vc1_bfraction_lut

const int16_t ff_vc1_bfraction_lut[23]
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 142 of file vc1data.c.

Referenced by read_bfraction().

◆ ff_vc1_pixel_aspect

const AVRational ff_vc1_pixel_aspect[16]
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 154 of file vc1data.c.

Referenced by decode_sequence_header_adv().

◆ ff_wmv3_dc_scale_table

const uint8_t ff_wmv3_dc_scale_table[32]
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 173 of file vc1data.c.

Referenced by ff_vc1_decode_init().

◆ ff_vc1_simple_progressive_4x4_zz

const uint8_t ff_vc1_simple_progressive_4x4_zz[16]
Initial value:
= {
0, 8, 16, 1,
9, 24, 17, 2,
10, 18, 25, 3,
11, 26, 19, 27
}

Definition at line 182 of file vc1data.c.

Referenced by vc1_decode_p_block().

◆ ff_vc1_adv_progressive_8x4_zz

const uint8_t ff_vc1_adv_progressive_8x4_zz[32]
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 189 of file vc1data.c.

Referenced by ff_vc1_decode_sequence_header().

◆ ff_vc1_adv_progressive_4x8_zz

const uint8_t ff_vc1_adv_progressive_4x8_zz[32]
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 196 of file vc1data.c.

Referenced by ff_vc1_decode_sequence_header().

◆ ff_vc1_adv_interlaced_8x8_zz

const uint8_t ff_vc1_adv_interlaced_8x8_zz[64]
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 207 of file vc1data.c.

Referenced by ff_vc1_init_transposed_scantables().

◆ ff_vc1_adv_interlaced_8x4_zz

const uint8_t ff_vc1_adv_interlaced_8x4_zz[32]
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 218 of file vc1data.c.

Referenced by vc1_decode_p_block().

◆ ff_vc1_adv_interlaced_4x8_zz

const uint8_t ff_vc1_adv_interlaced_4x8_zz[32]
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 225 of file vc1data.c.

Referenced by vc1_decode_p_block().

◆ ff_vc1_adv_interlaced_4x4_zz

const uint8_t ff_vc1_adv_interlaced_4x4_zz[16]
Initial value:
= {
0, 8, 16, 24,
1, 9, 17, 2,
25, 10, 18, 3,
26, 11, 19, 27
}

Definition at line 236 of file vc1data.c.

Referenced by vc1_decode_p_block().

◆ ff_vc1_dqscale

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, 0x1041
}

Definition at line 245 of file vc1data.c.

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

◆ ff_vc1_field_mvpred_scales

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 257 of file vc1data.c.

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

◆ ff_vc1_b_field_mvpred_scales

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 281 of file vc1data.c.

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

TT_8X4_BOTTOM
@ TT_8X4_BOTTOM
Definition: vc1.h:113
TT_8X4_TOP
@ TT_8X4_TOP
Definition: vc1.h:114
MV_PMODE_1MV_HPEL_BILIN
@ MV_PMODE_1MV_HPEL_BILIN
Definition: vc1.h:79
MV_PMODE_INTENSITY_COMP
@ MV_PMODE_INTENSITY_COMP
Definition: vc1.h:83
TT_8X4
@ TT_8X4
Definition: vc1.h:115
TT_4X8_LEFT
@ TT_4X8_LEFT
Definition: vc1.h:117
MV_PMODE_MIXED_MV
@ MV_PMODE_MIXED_MV
Definition: vc1.h:82
MV_PMODE_1MV_HPEL
@ MV_PMODE_1MV_HPEL
Definition: vc1.h:81
TT_4X8
@ TT_4X8
Definition: vc1.h:118
TT_8X8
@ TT_8X8
Definition: vc1.h:112
TT_4X8_RIGHT
@ TT_4X8_RIGHT
Definition: vc1.h:116
MV_PMODE_1MV
@ MV_PMODE_1MV
Definition: vc1.h:80
TT_4X4
@ TT_4X4
Definition: vc1.h:119