#include "avcodec.h"
#include "vc1.h"
#include "vc1data.h"
Go to the source code of this file.
Definition in file vc1data.c.
#define VC1_4MV_BLOCK_PATTERN_VLC_BITS 6 |
#define VC1_BFRACTION_VLC_BITS 7 |
Definition at line 72 of file vc1data.c.
Referenced by vc1_init_common(), vc1_parse_frame_header(), and vc1_parse_frame_header_adv().
#define VC1_CBPCY_P_VLC_BITS 9 |
Definition at line 85 of file vc1data.c.
Referenced by vc1_decode_b_mb(), vc1_decode_p_mb(), and vc1_init_common().
#define VC1_IMODE_VLC_BITS 4 |
#define VC1_MV_DIFF_VLC_BITS 9 |
#define VC1_NORM2_VLC_BITS 3 |
#define VC1_NORM6_VLC_BITS 9 |
#define VC1_SUBBLKPAT_VLC_BITS 6 |
#define VC1_TTBLK_VLC_BITS 5 |
#define VC1_TTMB_VLC_BITS 9 |
Definition at line 81 of file vc1data.c.
Referenced by vc1_decode_b_mb(), vc1_decode_p_mb(), and vc1_init_common().
const uint8_t ff_vc1_4mv_block_pattern_bits[4][16] |
Initial value:
{ { 5, 6, 6, 5, 5, 5, 5, 4, 5, 5, 5, 3, 5, 3, 3, 2}, { 4, 5, 5, 4, 5, 4, 5, 4, 5, 5, 4, 4, 4, 4, 4, 2}, { 4, 4, 4, 4, 4, 4, 5, 4, 4, 5, 4, 4, 4, 4, 4, 3}, { 2, 4, 4, 4, 4, 4, 5, 5, 4, 5, 4, 5, 4, 5, 5, 4} }
Definition at line 267 of file vc1data.c.
Referenced by vc1_init_common().
const uint8_t ff_vc1_4mv_block_pattern_codes[4][16] |
Initial value:
{ { 14, 58, 59, 25, 12, 26, 15, 15, 13, 24, 27, 0, 28, 1, 2, 2}, { 8, 18, 19, 4, 20, 5, 30, 11, 21, 31, 6, 12, 7, 13, 14, 0}, { 15, 6, 7, 2, 8, 3, 28, 9, 10, 29, 4, 11, 5, 12, 13, 0}, { 0, 11, 12, 4, 13, 5, 30, 16, 14, 31, 6, 17, 7, 18, 19, 10} }
Definition at line 261 of file vc1data.c.
Referenced by vc1_init_common().
Definition at line 94 of file vc1data.c.
Referenced by vc1_decode_ac_coeff(), and vc1_init_common().
const int8_t ff_vc1_adv_interlaced_4x4_zz[16] |
const int8_t ff_vc1_adv_interlaced_4x8_zz[32] |
const int8_t ff_vc1_adv_interlaced_8x4_zz[32] |
const int8_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 }
const int8_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 582 of file vc1data.c.
Referenced by vc1_decode_sequence_header().
const int8_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 574 of file vc1data.c.
Referenced by vc1_decode_sequence_header().
const uint8_t ff_vc1_bfraction_bits[23] |
Initial value:
{ 3, 3, 3, 3, 3, 3, 3, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 }
Definition at line 122 of file vc1data.c.
Referenced by vc1_init_common().
const uint8_t ff_vc1_bfraction_codes[23] |
Initial value:
{ 0, 1, 2, 3, 4, 5, 6, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127 }
Definition at line 131 of file vc1data.c.
Referenced by vc1_init_common().
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 111 of file vc1data.c.
Referenced by vc1_parse_frame_header(), and vc1_parse_frame_header_adv().
Definition at line 73 of file vc1data.c.
Referenced by vc1_init_common(), vc1_parse_frame_header(), and vc1_parse_frame_header_adv().
const uint8_t ff_vc1_cbpcy_p_bits[4][64] |
Initial value:
{ { 13, 13, 7, 13, 7, 13, 13, 12, 6, 13, 7, 12, 6, 8, 8, 8, 5, 7, 8, 12, 6, 8, 13, 12, 7, 13, 13, 12, 6, 8, 7, 7, 6, 13, 8, 12, 7, 13, 13, 12, 7, 13, 8, 12, 5, 7, 7, 7, 6, 8, 13, 12, 6, 7, 8, 8, 5, 8, 8, 6, 3, 3, 3, 2 }, { 14, 13, 8, 13, 3, 13, 8, 13, 3, 7, 8, 13, 4, 13, 13, 13, 3, 13, 13, 13, 4, 8, 13, 13, 5, 13, 13, 13, 5, 7, 8, 8, 3, 8, 14, 13, 5, 13, 13, 13, 4, 7, 13, 13, 6, 13, 13, 13, 5, 13, 8, 13, 5, 8, 8, 13, 5, 13, 8, 13, 6, 6, 13, 7 }, { 13, 8, 6, 8, 4, 8, 13, 12, 4, 9, 8, 8, 5, 8, 8, 9, 5, 9, 10, 8, 4, 8, 7, 8, 6, 8, 7, 13, 4, 8, 7, 8, 5, 7, 8, 9, 6, 13, 13, 8, 4, 6, 8, 9, 5, 7, 8, 9, 5, 9, 9, 13, 5, 7, 7, 9, 4, 7, 8, 8, 3, 5, 5, 5 }, { 9, 9, 9, 9, 2, 9, 9, 9, 2, 9, 9, 9, 9, 9, 9, 8, 3, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 8, 2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 8 } }
Definition at line 307 of file vc1data.c.
Referenced by vc1_init_common().
const uint16_t ff_vc1_cbpcy_p_codes[4][64] |
Initial value:
{ { 0, 6, 15, 13, 13, 11, 3, 13, 5, 8, 49, 10, 12, 114, 102, 119, 1, 54, 96, 8, 10, 111, 5, 15, 12, 10, 2, 12, 13, 115, 53, 63, 1, 7, 1, 7, 14, 12, 4, 14, 1, 9, 97, 11, 7, 58, 52, 62, 4, 103, 1, 9, 11, 56, 101, 118, 4, 110, 100, 30, 2, 5, 4, 3 }, { 0, 9, 1, 18, 5, 14, 237, 26, 3, 121, 3, 22, 13, 16, 6, 30, 2, 10, 1, 20, 12, 241, 5, 28, 16, 12, 3, 24, 28, 124, 239, 247, 1, 240, 1, 19, 18, 15, 4, 27, 1, 122, 2, 23, 1, 17, 7, 31, 1, 11, 2, 21, 19, 246, 238, 29, 17, 13, 236, 25, 58, 63, 8, 125 }, { 0, 201, 25, 231, 5, 221, 1, 3, 2, 414, 2, 241, 16, 225, 195, 492, 2, 412, 1, 240, 7, 224, 98, 245, 1, 220, 96, 5, 9, 230, 101, 247, 1, 102, 1, 415, 24, 3, 2, 244, 3, 54, 3, 484, 17, 114, 200, 493, 3, 413, 1, 4, 13, 113, 99, 485, 4, 111, 194, 243, 5, 29, 26, 31 }, { 0, 28, 12, 44, 3, 36, 20, 52, 2, 32, 16, 48, 8, 40, 24, 28, 1, 30, 14, 46, 6, 38, 22, 54, 3, 34, 18, 50, 10, 42, 26, 30, 1, 29, 13, 45, 5, 37, 21, 53, 2, 33, 17, 49, 9, 41, 25, 29, 1, 31, 15, 47, 7, 39, 23, 55, 4, 35, 19, 51, 11, 43, 27, 31 } }
Definition at line 280 of file vc1data.c.
Referenced by vc1_init_common().
Definition at line 86 of file vc1data.c.
Referenced by vaapi_vc1_start_frame(), vc1_init_common(), vc1_parse_frame_header(), and vc1_parse_frame_header_adv().
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, 0x1000 }
Definition at line 636 of file vc1data.c.
Referenced by vc1_decode_i_block_adv(), vc1_decode_intra_block(), and vc1_pred_dc().
const int ff_vc1_fps_dr[2] = { 1000, 1001 } |
const int ff_vc1_fps_nr[5] = { 24, 25, 30, 50, 60 } |
const uint8_t ff_vc1_imode_bits[7] |
Initial value:
{ 4, 2, 3, 2, 4, 3, 3 }
Definition at line 165 of file vc1data.c.
Referenced by vc1_init_common().
const uint8_t ff_vc1_imode_codes[7] |
Initial value:
{ 0, 2, 1, 3, 1, 2, 3 }
Definition at line 162 of file vc1data.c.
Referenced by vc1_init_common().
const uint8_t ff_vc1_mv_diff_bits[4][73] |
const uint16_t ff_vc1_mv_diff_codes[4][73] |
const uint8_t ff_vc1_mv_pmode_table[2][5] |
Initial value:
{ { MV_PMODE_1MV_HPEL_BILIN, MV_PMODE_1MV, MV_PMODE_1MV_HPEL, MV_PMODE_INTENSITY_COMP, MV_PMODE_MIXED_MV }, { MV_PMODE_1MV, MV_PMODE_MIXED_MV, MV_PMODE_1MV_HPEL, MV_PMODE_INTENSITY_COMP, MV_PMODE_1MV_HPEL_BILIN } }
Definition at line 42 of file vc1data.c.
Referenced by vc1_parse_frame_header(), and vc1_parse_frame_header_adv().
const uint8_t ff_vc1_mv_pmode_table2[2][4] |
Initial value:
{ { MV_PMODE_1MV_HPEL_BILIN, MV_PMODE_1MV, MV_PMODE_1MV_HPEL, MV_PMODE_MIXED_MV }, { MV_PMODE_1MV, MV_PMODE_MIXED_MV, MV_PMODE_1MV_HPEL, MV_PMODE_1MV_HPEL_BILIN } }
Definition at line 46 of file vc1data.c.
Referenced by vc1_parse_frame_header(), and vc1_parse_frame_header_adv().
const uint8_t ff_vc1_norm2_bits[4] |
Initial value:
{ 1, 3, 3, 2 }
Definition at line 173 of file vc1data.c.
Referenced by vc1_init_common().
const uint8_t ff_vc1_norm2_codes[4] |
Initial value:
{ 0, 4, 5, 3 }
Definition at line 170 of file vc1data.c.
Referenced by vc1_init_common().
const uint8_t ff_vc1_norm6_bits[64] |
Initial value:
{ 1, 4, 4, 8, 4, 8, 8, 10, 4, 8, 8, 10, 8, 10, 10, 13, 4, 8, 8, 10, 8, 10, 10, 13, 8, 10, 10, 13, 10, 13, 13, 9, 4, 8, 8, 10, 8, 10, 10, 13, 8, 10, 10, 13, 10, 13, 13, 9, 8, 10, 10, 13, 10, 13, 13, 9, 10, 13, 13, 9, 13, 9, 9, 6, }
Definition at line 184 of file vc1data.c.
Referenced by vc1_init_common().
const uint16_t ff_vc1_norm6_codes[64] |
Initial value:
{ 0x001, 0x002, 0x003, 0x000, 0x004, 0x001, 0x002, 0x047, 0x005, 0x003, 0x004, 0x04B, 0x005, 0x04D, 0x04E, 0x30E, 0x006, 0x006, 0x007, 0x053, 0x008, 0x055, 0x056, 0x30D, 0x009, 0x059, 0x05A, 0x30C, 0x05C, 0x30B, 0x30A, 0x037, 0x007, 0x00A, 0x00B, 0x043, 0x00C, 0x045, 0x046, 0x309, 0x00D, 0x049, 0x04A, 0x308, 0x04C, 0x307, 0x306, 0x036, 0x00E, 0x051, 0x052, 0x305, 0x054, 0x304, 0x303, 0x035, 0x058, 0x302, 0x301, 0x034, 0x300, 0x033, 0x032, 0x007, }
Definition at line 177 of file vc1data.c.
Referenced by vc1_init_common().
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 142 of file vc1data.c.
Referenced by decode_sequence_header_adv().
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 53 of file vc1data.c.
Referenced by vc1_parse_frame_header(), and vc1_parse_frame_header_adv().
const int8_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 566 of file vc1data.c.
Referenced by vc1_decode_p_block().
const uint8_t ff_vc1_subblkpat_bits[3][15] |
Initial value:
{ { 5, 5, 5, 5, 5, 6, 4, 5, 6, 5, 4, 5, 4, 5, 1}, { 4, 3, 4, 4, 4, 5, 5, 4, 5, 4, 5, 4, 5, 5, 2}, { 3, 3, 4, 3, 4, 5, 5, 3, 5, 4, 5, 4, 5, 5, 4} }
Definition at line 474 of file vc1data.c.
Referenced by vc1_init_common().
const uint8_t ff_vc1_subblkpat_codes[3][15] |
Initial value:
{ { 14, 12, 7, 11, 9, 26, 2, 10, 27, 8, 0, 6, 1, 15, 1}, { 14, 0, 8, 15, 10, 4, 23, 13, 5, 9, 25, 3, 24, 22, 1}, { 5, 6, 2, 2, 8, 0, 28, 3, 1, 3, 29, 1, 19, 18, 15} }
Definition at line 469 of file vc1data.c.
Referenced by vc1_init_common().
const uint8_t ff_vc1_ttblk_bits[3][8] |
Initial value:
{ { 2, 2, 2, 3, 5, 5, 5, 5}, { 2, 3, 3, 3, 3, 3, 4, 4}, { 2, 3, 3, 3, 3, 3, 4, 4} }
Definition at line 462 of file vc1data.c.
Referenced by vc1_init_common().
const uint8_t ff_vc1_ttblk_codes[3][8] |
Initial value:
{ { 0, 1, 3, 5, 16, 17, 18, 19}, { 3, 0, 1, 2, 3, 5, 8, 9}, { 1, 0, 1, 4, 6, 7, 10, 11} }
Definition at line 457 of file vc1data.c.
Referenced by vc1_init_common().
const int ff_vc1_ttblk_to_tt[3][8] |
Initial value:
{ { TT_8X4, TT_4X8, TT_8X8, TT_4X4, TT_8X4_TOP, TT_8X4_BOTTOM, TT_4X8_RIGHT, TT_4X8_LEFT }, { TT_8X8, TT_4X8_RIGHT, TT_4X8_LEFT, TT_4X4, TT_8X4, TT_4X8, TT_8X4_BOTTOM, TT_8X4_TOP }, { TT_8X8, TT_4X8, TT_4X4, TT_8X4_BOTTOM, TT_4X8_RIGHT, TT_4X8_LEFT, TT_8X4, TT_8X4_TOP } }
Definition at line 33 of file vc1data.c.
Referenced by vc1_decode_p_block().
const int ff_vc1_ttfrm_to_tt[4] = { TT_8X8, TT_8X4, TT_4X8, TT_4X4 } |
Definition at line 39 of file vc1data.c.
Referenced by vc1_parse_frame_header(), and vc1_parse_frame_header_adv().
const uint8_t ff_vc1_ttmb_bits[3][16] |
Initial value:
{ { 2, 6, 7, 2, 5, 5, 2, 3, 5, 10, 9, 9, 12, 12, 11, 9 }, { 3, 4, 4, 4, 4, 4, 3, 3, 2, 7, 7, 6, 6, 8, 7, 8 }, { 3, 3, 4, 5, 3, 3, 4, 4, 2, 10, 8, 6, 11, 9, 7, 11 } }
Definition at line 426 of file vc1data.c.
Referenced by vc1_init_common().
const uint16_t ff_vc1_ttmb_codes[3][16] |
Initial value:
{ { 0x0003, 0x002E, 0x005F, 0x0000, 0x0016, 0x0015, 0x0001, 0x0004, 0x0014, 0x02F1, 0x0179, 0x017B, 0x0BC0, 0x0BC1, 0x05E1, 0x017A }, { 0x0006, 0x0006, 0x0003, 0x0007, 0x000F, 0x000E, 0x0000, 0x0002, 0x0002, 0x0014, 0x0011, 0x000B, 0x0009, 0x0021, 0x0015, 0x0020 }, { 0x0006, 0x0000, 0x000E, 0x0005, 0x0002, 0x0003, 0x0003, 0x000F, 0x0002, 0x0081, 0x0021, 0x0009, 0x0101, 0x0041, 0x0011, 0x0100 } }
Definition at line 396 of file vc1data.c.
Referenced by vc1_init_common().
Definition at line 82 of file vc1data.c.
Referenced by vc1_decode_b_mb(), vc1_decode_p_mb(), and vc1_init_common().
const uint8_t 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 274 of file vc1data.c.
Referenced by common_init().