FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Variables
vp3data.h File Reference
#include <stdint.h>
#include <stdlib.h>

Go to the source code of this file.

Variables

static const int16_t vp31_intra_y_dequant [64]
 
static const int16_t vp31_intra_c_dequant [64]
 
static const int16_t vp31_inter_dequant [64]
 
static const int16_t vp31_dc_scale_factor [64]
 
static const uint32_t vp31_ac_scale_factor [64]
 
static const uint8_t vp31_filter_limit_values [64]
 
static const uint16_t superblock_run_length_vlc_table [34][2]
 
static const uint16_t fragment_run_length_vlc_table [30][2]
 
static const uint8_t mode_code_vlc_table [8][2]
 
static const uint8_t motion_vector_vlc_table [63][2]
 
static const int motion_vector_table [63]
 
static const int8_t fixed_motion_vector_table [64]
 
static const int eob_run_base [7]
 
static const int eob_run_get_bits [7]
 
static const int zero_run_base [32]
 
static const int zero_run_get_bits [32]
 
static const int coeff_get_bits [32]
 
static const int16_t coeff_table_token_7_8 [1] = { 0 }
 
static const int16_t coeff_table_token_9 [1] = { 1 }
 
static const int16_t coeff_table_token_10 [1] = { -1 }
 
static const int16_t coeff_table_token_11 [1] = { 2 }
 
static const int16_t coeff_table_token_12 [1] = { -2 }
 
static const int16_t coeff_table_token_13 [2] = { 3, -3 }
 
static const int16_t coeff_table_token_14 [2] = { 4, -4 }
 
static const int16_t coeff_table_token_15 [2] = { 5, -5 }
 
static const int16_t coeff_table_token_16 [2] = { 6, -6 }
 
static const int16_t coeff_table_token_23_24_25_26_27_28_29 [2] = { 1, -1 }
 
static const int16_t coeff_table_token_30 [4] = { 2, 3, -2, -3 }
 
static const int16_t coeff_table_token_31 [4] = { 2, 3, -2, -3 }
 
static const int16_t coeff_table_token_17 [4]
 
static const int16_t coeff_table_token_18 [8]
 
static const int16_t coeff_table_token_19 [16]
 
static const int16_t coeff_table_token_20 [32]
 
static const int16_t coeff_table_token_21 [64]
 
static const int16_t coeff_table_token_22 [1024]
 
static const int16_t *const coeff_tables [32]
 
static const uint16_t dc_bias [16][32][2]
 
static const uint16_t ac_bias_0 [16][32][2]
 
static const uint16_t ac_bias_1 [16][32][2]
 
static const uint16_t ac_bias_2 [16][32][2]
 
static const uint16_t ac_bias_3 [16][32][2]
 

Variable Documentation

const int16_t vp31_intra_y_dequant[64]
static
Initial value:
=
{ 16, 11, 10, 16, 24, 40, 51, 61,
12, 12, 14, 19, 26, 58, 60, 55,
14, 13, 16, 24, 40, 57, 69, 56,
14, 17, 22, 29, 51, 87, 80, 62,
18, 22, 37, 58, 68, 109, 103, 77,
24, 35, 55, 64, 81, 104, 113, 92,
49, 64, 78, 87, 103, 121, 120, 101,
72, 92, 95, 98, 112, 100, 103, 99
}

Definition at line 29 of file vp3data.h.

Referenced by vp3_decode_init().

const int16_t vp31_intra_c_dequant[64]
static
Initial value:
=
{ 17, 18, 24, 47, 99, 99, 99, 99,
18, 21, 26, 66, 99, 99, 99, 99,
24, 26, 56, 99, 99, 99, 99, 99,
47, 66, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99
}

Definition at line 42 of file vp3data.h.

Referenced by vp3_decode_init().

const int16_t vp31_inter_dequant[64]
static
Initial value:
=
{ 16, 16, 16, 20, 24, 28, 32, 40,
16, 16, 20, 24, 28, 32, 40, 48,
16, 20, 24, 28, 32, 40, 48, 64,
20, 24, 28, 32, 40, 48, 64, 64,
24, 28, 32, 40, 48, 64, 64, 64,
28, 32, 40, 48, 64, 64, 64, 96,
32, 40, 48, 64, 64, 64, 96, 128,
40, 48, 64, 64, 64, 96, 128, 128
}

Definition at line 54 of file vp3data.h.

Referenced by vp3_decode_init().

const int16_t vp31_dc_scale_factor[64]
static
Initial value:
=
{ 220, 200, 190, 180, 170, 170, 160, 160,
150, 150, 140, 140, 130, 130, 120, 120,
110, 110, 100, 100, 90, 90, 90, 80,
80, 80, 70, 70, 70, 60, 60, 60,
60, 50, 50, 50, 50, 40, 40, 40,
40, 40, 30, 30, 30, 30, 30, 30,
30, 20, 20, 20, 20, 20, 20, 20,
20, 10, 10, 10, 10, 10, 10, 10
}

Definition at line 65 of file vp3data.h.

Referenced by vp3_decode_init().

const uint32_t vp31_ac_scale_factor[64]
static
Initial value:
=
{ 500, 450, 400, 370, 340, 310, 285, 265,
245, 225, 210, 195, 185, 180, 170, 160,
150, 145, 135, 130, 125, 115, 110, 107,
100, 96, 93, 89, 85, 82, 75, 74,
70, 68, 64, 60, 57, 56, 52, 50,
49, 45, 44, 43, 40, 38, 37, 35,
33, 32, 30, 29, 28, 25, 24, 22,
21, 19, 18, 17, 15, 13, 12, 10
}

Definition at line 76 of file vp3data.h.

Referenced by vp3_decode_init().

const uint8_t vp31_filter_limit_values[64]
static
Initial value:
=
{ 30, 25, 20, 20, 15, 15, 14, 14,
13, 13, 12, 12, 11, 11, 10, 10,
9, 9, 8, 8, 7, 7, 7, 7,
6, 6, 6, 6, 5, 5, 5, 5,
4, 4, 4, 4, 3, 3, 3, 3,
2, 2, 2, 2, 2, 2, 2, 2,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0
}

Definition at line 87 of file vp3data.h.

Referenced by vp3_decode_init().

const uint16_t superblock_run_length_vlc_table[34][2]
static
Initial value:
= {
{ 0, 1 },
{ 4, 3 }, { 5, 3 },
{ 0xC, 4 }, { 0xD, 4 },
{ 0x38, 6 }, { 0x39, 6 }, { 0x3A, 6 }, { 0x3B, 6 },
{ 0xF0, 8 }, { 0xF1, 8 }, { 0xF2, 8 }, { 0xF3, 8 },
{ 0xF4, 8 }, { 0xF5, 8 }, { 0xF6, 8 }, { 0xF7, 8 },
{ 0x3E0, 10 }, { 0x3E1, 10 }, { 0x3E2, 10 }, { 0x3E3, 10 },
{ 0x3E4, 10 }, { 0x3E5, 10 }, { 0x3E6, 10 }, { 0x3E7, 10 },
{ 0x3E8, 10 }, { 0x3E9, 10 }, { 0x3EA, 10 }, { 0x3EB, 10 },
{ 0x3EC, 10 }, { 0x3ED, 10 }, { 0x3EE, 10 }, { 0x3EF, 10 },
{ 0x3F, 6 }
}

Definition at line 98 of file vp3data.h.

Referenced by vp3_decode_init().

const uint16_t fragment_run_length_vlc_table[30][2]
static
Initial value:
= {
{ 0x0, 2 }, { 0x1, 2 },
{ 0x4, 3 }, { 0x5, 3 },
{ 0xC, 4 }, { 0xD, 4 },
{ 0x38, 6 }, { 0x39, 6 },
{ 0x3A, 6 }, { 0x3B, 6 },
{ 0x78, 7 }, { 0x79, 7 },
{ 0x7A, 7 }, { 0x7B, 7 },
{ 0x1F0, 9 }, { 0x1F1, 9 }, { 0x1F2, 9 }, { 0x1F3, 9 },
{ 0x1F4, 9 }, { 0x1F5, 9 }, { 0x1F6, 9 }, { 0x1F7, 9 },
{ 0x1F8, 9 }, { 0x1F9, 9 }, { 0x1FA, 9 }, { 0x1FB, 9 },
{ 0x1FC, 9 }, { 0x1FD, 9 }, { 0x1FE, 9 }, { 0x1FF, 9 }
}

Definition at line 119 of file vp3data.h.

Referenced by vp3_decode_init().

const uint8_t mode_code_vlc_table[8][2]
static
Initial value:
= {
{ 0, 1 }, { 2, 2 },
{ 6, 3 }, { 14, 4 },
{ 30, 5 }, { 62, 6 },
{ 126, 7 }, { 127, 7 }
}

Definition at line 144 of file vp3data.h.

Referenced by vp3_decode_init().

const uint8_t motion_vector_vlc_table[63][2]
static
Initial value:
= {
{ 0, 3 },
{ 1, 3 },
{ 2, 3 },
{ 6, 4 }, { 7, 4 },
{ 8, 4 }, { 9, 4 },
{ 40, 6 }, { 41, 6 }, { 42, 6 }, { 43, 6 },
{ 44, 6 }, { 45, 6 }, { 46, 6 }, { 47, 6 },
{ 96, 7 }, { 97, 7 }, { 98, 7 }, { 99, 7 },
{ 100, 7 }, { 101, 7 }, { 102, 7 }, { 103, 7 },
{ 104, 7 }, { 105, 7 }, { 106, 7 }, { 107, 7 },
{ 108, 7 }, { 109, 7 }, { 110, 7 }, { 111, 7 },
{ 0xE0, 8 }, { 0xE1, 8 }, { 0xE2, 8 }, { 0xE3, 8 },
{ 0xE4, 8 }, { 0xE5, 8 }, { 0xE6, 8 }, { 0xE7, 8 },
{ 0xE8, 8 }, { 0xE9, 8 }, { 0xEA, 8 }, { 0xEB, 8 },
{ 0xEC, 8 }, { 0xED, 8 }, { 0xEE, 8 }, { 0xEF, 8 },
{ 0xF0, 8 }, { 0xF1, 8 }, { 0xF2, 8 }, { 0xF3, 8 },
{ 0xF4, 8 }, { 0xF5, 8 }, { 0xF6, 8 }, { 0xF7, 8 },
{ 0xF8, 8 }, { 0xF9, 8 }, { 0xFA, 8 }, { 0xFB, 8 },
{ 0xFC, 8 }, { 0xFD, 8 }, { 0xFE, 8 }, { 0xFF, 8 }
}

Definition at line 151 of file vp3data.h.

Referenced by vp3_decode_init().

const int motion_vector_table[63]
static
Initial value:
= {
0, 1, -1,
2, -2,
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, -16, 17, -17, 18, -18, 19, -19, 20, -20, 21, -21, 22, -22, 23, -23,
24, -24, 25, -25, 26, -26, 27, -27, 28, -28, 29, -29, 30, -30, 31, -31
}

Definition at line 179 of file vp3data.h.

Referenced by unpack_vectors().

const int8_t fixed_motion_vector_table[64]
static
Initial value:
= {
0, 0, 1, -1, 2, -2, 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, -16, 17, -17, 18, -18, 19, -19,
20, -20, 21, -21, 22, -22, 23, -23,
24, -24, 25, -25, 26, -26, 27, -27,
28, -28, 29, -29, 30, -30, 31, -31
}

Definition at line 189 of file vp3data.h.

Referenced by unpack_vectors().

const int eob_run_base[7]
static
Initial value:
= {
1, 2, 3, 4, 8, 16, 0
}

Definition at line 201 of file vp3data.h.

Referenced by unpack_vlcs().

const int eob_run_get_bits[7]
static
Initial value:
= {
0, 0, 0, 2, 3, 4, 12
}

Definition at line 204 of file vp3data.h.

Referenced by unpack_vlcs().

const int zero_run_base[32]
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, 2, 3, 4, 5,
6, 10, 1, 2
}

Definition at line 208 of file vp3data.h.

Referenced by unpack_vlcs().

const int zero_run_get_bits[32]
static
Initial value:
= {
0, 0, 0, 0, 0, 0, 0,
3, 6,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0,
2, 3, 0, 1
}

Definition at line 215 of file vp3data.h.

Referenced by unpack_vlcs().

const int coeff_get_bits[32]
static
Initial value:
= {
0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
1, 1, 1, 1,
2, 3, 4, 5, 6, 10,
1, 1, 1, 1, 1, 1, 1,
2, 2
}

Definition at line 223 of file vp3data.h.

Referenced by unpack_vlcs().

const int16_t coeff_table_token_7_8[1] = { 0 }
static

Definition at line 232 of file vp3data.h.

const int16_t coeff_table_token_9[1] = { 1 }
static

Definition at line 233 of file vp3data.h.

const int16_t coeff_table_token_10[1] = { -1 }
static

Definition at line 234 of file vp3data.h.

const int16_t coeff_table_token_11[1] = { 2 }
static

Definition at line 235 of file vp3data.h.

const int16_t coeff_table_token_12[1] = { -2 }
static

Definition at line 236 of file vp3data.h.

const int16_t coeff_table_token_13[2] = { 3, -3 }
static

Definition at line 238 of file vp3data.h.

const int16_t coeff_table_token_14[2] = { 4, -4 }
static

Definition at line 239 of file vp3data.h.

const int16_t coeff_table_token_15[2] = { 5, -5 }
static

Definition at line 240 of file vp3data.h.

const int16_t coeff_table_token_16[2] = { 6, -6 }
static

Definition at line 241 of file vp3data.h.

const int16_t coeff_table_token_23_24_25_26_27_28_29[2] = { 1, -1 }
static

Definition at line 243 of file vp3data.h.

const int16_t coeff_table_token_30[4] = { 2, 3, -2, -3 }
static

Definition at line 244 of file vp3data.h.

const int16_t coeff_table_token_31[4] = { 2, 3, -2, -3 }
static

Definition at line 245 of file vp3data.h.

const int16_t coeff_table_token_17[4]
static
Initial value:
= {
7, 8, -7, -8
}

Definition at line 247 of file vp3data.h.

const int16_t coeff_table_token_18[8]
static
Initial value:
= {
9, 10, 11, 12, -9, -10, -11, -12
}

Definition at line 251 of file vp3data.h.

const int16_t coeff_table_token_19[16]
static
Initial value:
= {
13, 14, 15, 16, 17, 18, 19, 20, -13, -14, -15, -16, -17, -18, -19, -20
}

Definition at line 255 of file vp3data.h.

const int16_t coeff_table_token_20[32]
static
Initial value:
= {
21, 22, 23, 24, 25, 26, 27, 28,
29, 30, 31, 32, 33, 34, 35, 36,
-21, -22, -23, -24, -25, -26, -27, -28,
-29, -30, -31, -32, -33, -34, -35, -36
}

Definition at line 259 of file vp3data.h.

const int16_t coeff_table_token_21[64]
static
Initial value:
= {
37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52,
53, 54, 55, 56, 57, 58, 59, 60,
61, 62, 63, 64, 65, 66, 67, 68,
-37, -38, -39, -40, -41, -42, -43, -44,
-45, -46, -47, -48, -49, -50, -51, -52,
-53, -54, -55, -56, -57, -58, -59, -60,
-61, -62, -63, -64, -65, -66, -67, -68
}

Definition at line 266 of file vp3data.h.

const int16_t coeff_table_token_22[1024]
static

Definition at line 277 of file vp3data.h.

const int16_t* const coeff_tables[32]
static

Definition at line 408 of file vp3data.h.

Referenced by unpack_vlcs().

const uint16_t dc_bias[16][32][2]
static

Definition at line 446 of file vp3data.h.

Referenced by vp3_decode_init().

const uint16_t ac_bias_0[16][32][2]
static

Definition at line 993 of file vp3data.h.

Referenced by vp3_decode_init().

const uint16_t ac_bias_1[16][32][2]
static

Definition at line 1540 of file vp3data.h.

Referenced by vp3_decode_init().

const uint16_t ac_bias_2[16][32][2]
static

Definition at line 2087 of file vp3data.h.

Referenced by vp3_decode_init().

const uint16_t ac_bias_3[16][32][2]
static

Definition at line 2634 of file vp3data.h.

Referenced by vp3_decode_init().