FFmpeg
Data Structures | Macros | Variables
vp8data.h File Reference
#include "vp8.h"
#include "h264pred.h"

Go to the source code of this file.

Data Structures

struct  VP7MVPred
 

Macros

#define VP7_MV_PRED_COUNT   12
 

Variables

static const uint8_t vp7_pred4x4_mode []
 
static const uint8_t vp8_pred4x4_mode []
 
static const int8_t vp8_pred16x16_tree_intra [4][2]
 
static const int8_t vp8_pred16x16_tree_inter [4][2]
 
static const VP7MVPred vp7_mv_pred [VP7_MV_PRED_COUNT]
 
static const int vp7_mode_contexts [31][4]
 
static const int vp8_mode_contexts [6][4]
 
static const uint8_t vp8_mbsplits [5][16]
 
static const uint8_t vp8_mbfirstidx [4][16]
 
static const uint8_t vp8_mbsplit_count [4]
 
static const uint8_t vp8_mbsplit_prob [3]
 
static const uint8_t vp7_submv_prob [3]
 
static const uint8_t vp8_submv_prob [5][3]
 
static const uint8_t vp8_pred16x16_prob_intra [4]
 
static const uint8_t vp8_pred16x16_prob_inter [4]
 
static const int8_t vp8_pred4x4_tree [9][2]
 
static const int8_t vp8_pred8x8c_tree [3][2]
 
static const uint8_t vp8_pred8x8c_prob_intra [3]
 
static const uint8_t vp8_pred8x8c_prob_inter [3]
 
static const uint8_t vp8_pred4x4_prob_inter [9]
 
static const uint8_t vp8_pred4x4_prob_intra [10][10][9]
 
static const uint8_t vp8_coeff_band [16]
 
static const int8_t vp8_coeff_band_indexes [8][10]
 
static const uint8_t vp8_dct_cat1_prob []
 
static const uint8_t vp8_dct_cat2_prob []
 
static const uint8_t vp8_dct_cat3_prob []
 
static const uint8_t vp8_dct_cat4_prob []
 
static const uint8_t vp8_dct_cat5_prob []
 
static const uint8_t vp8_dct_cat6_prob []
 
const uint8_t *const ff_vp8_dct_cat_prob []
 
static const uint8_t vp8_token_default_probs [4][8][3][NUM_DCT_TOKENS - 1]
 
static const uint8_t vp8_token_update_probs [4][8][3][NUM_DCT_TOKENS - 1]
 
static const uint8_t vp8_dc_qlookup [VP8_MAX_QUANT+1]
 
static const uint16_t vp8_ac_qlookup [VP8_MAX_QUANT+1]
 
static const uint8_t vp8_mv_update_prob [2][19]
 
static const uint8_t vp7_mv_default_prob [2][17]
 
static const uint8_t vp8_mv_default_prob [2][19]
 
static const uint8_t vp7_feature_value_size [2][4]
 
static const int8_t vp7_feature_index_tree [4][2]
 
static const uint16_t vp7_ydc_qlookup []
 
static const uint16_t vp7_yac_qlookup []
 
static const uint16_t vp7_y2dc_qlookup []
 
static const uint16_t vp7_y2ac_qlookup []
 

Detailed Description

VP8 compatible video decoder

Definition in file vp8data.h.

Macro Definition Documentation

◆ VP7_MV_PRED_COUNT

#define VP7_MV_PRED_COUNT   12

Definition at line 68 of file vp8data.h.

Variable Documentation

◆ vp7_pred4x4_mode

const uint8_t vp7_pred4x4_mode[]
static
Initial value:

Definition at line 33 of file vp8data.h.

Referenced by decode_mb_mode().

◆ vp8_pred4x4_mode

const uint8_t vp8_pred4x4_mode[]
static
Initial value:

Definition at line 40 of file vp8data.h.

Referenced by decode_mb_mode().

◆ vp8_pred16x16_tree_intra

const int8_t vp8_pred16x16_tree_intra[4][2]
static
Initial value:
= {
{ -MODE_I4x4, 1 },
{ 2, 3 },
}

Definition at line 47 of file vp8data.h.

Referenced by decode_mb_mode().

◆ vp8_pred16x16_tree_inter

const int8_t vp8_pred16x16_tree_inter[4][2]
static
Initial value:
= {
{ -DC_PRED8x8, 1 },
{ 2, 3 },
}

Definition at line 54 of file vp8data.h.

Referenced by decode_mb_mode().

◆ vp7_mv_pred

const VP7MVPred vp7_mv_pred[VP7_MV_PRED_COUNT]
static
Initial value:
= {
{ -1, 0, 12, 8 },
{ 0, -1, 3, 8 },
{ -1, -1, 15, 2 },
{ -1, 1, 12, 2 },
{ -2, 0, 12, 2 },
{ 0, -2, 3, 2 },
{ -1, -2, 15, 1 },
{ -2, -1, 15, 1 },
{ -2, 1, 12, 1 },
{ -1, 2, 12, 1 },
{ -2, -2, 15, 1 },
{ -2, 2, 12, 1 },
}

Definition at line 69 of file vp8data.h.

Referenced by vp7_decode_mvs().

◆ vp7_mode_contexts

const int vp7_mode_contexts[31][4]
static

Definition at line 84 of file vp8data.h.

Referenced by vp7_decode_mvs().

◆ vp8_mode_contexts

const int vp8_mode_contexts[6][4]
static
Initial value:
= {
{ 7, 1, 1, 143 },
{ 14, 18, 14, 107 },
{ 135, 64, 57, 68 },
{ 60, 56, 128, 65 },
{ 159, 134, 128, 34 },
{ 234, 188, 128, 28 },
}

Definition at line 118 of file vp8data.h.

Referenced by vp8_decode_mvs().

◆ vp8_mbsplits

const uint8_t vp8_mbsplits[5][16]
static
Initial value:
= {
{ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 },
{ 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1 },
{ 0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3 },
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
}

Definition at line 127 of file vp8data.h.

Referenced by decode_splitmvs(), and get_bmv_ptr().

◆ vp8_mbfirstidx

const uint8_t vp8_mbfirstidx[4][16]
static
Initial value:
= {
{ 0, 8 },
{ 0, 2 },
{ 0, 2, 8, 10 },
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }
}

Definition at line 135 of file vp8data.h.

Referenced by decode_splitmvs().

◆ vp8_mbsplit_count

const uint8_t vp8_mbsplit_count[4]
static
Initial value:
= {
2, 2, 4, 16
}

Definition at line 142 of file vp8data.h.

Referenced by decode_splitmvs().

◆ vp8_mbsplit_prob

const uint8_t vp8_mbsplit_prob[3]
static
Initial value:
= {
110, 111, 150
}

Definition at line 145 of file vp8data.h.

Referenced by decode_splitmvs().

◆ vp7_submv_prob

const uint8_t vp7_submv_prob[3]
static
Initial value:
= {
180, 162, 25
}

Definition at line 149 of file vp8data.h.

Referenced by get_submv_prob().

◆ vp8_submv_prob

const uint8_t vp8_submv_prob[5][3]
static
Initial value:
= {
{ 147, 136, 18 },
{ 106, 145, 1 },
{ 179, 121, 1 },
{ 223, 1, 34 },
{ 208, 1, 1 }
}

Definition at line 153 of file vp8data.h.

Referenced by get_submv_prob().

◆ vp8_pred16x16_prob_intra

const uint8_t vp8_pred16x16_prob_intra[4]
static
Initial value:
= {
145, 156, 163, 128
}

Definition at line 161 of file vp8data.h.

Referenced by decode_mb_mode().

◆ vp8_pred16x16_prob_inter

const uint8_t vp8_pred16x16_prob_inter[4]
static
Initial value:
= {
112, 86, 140, 37
}

Definition at line 164 of file vp8data.h.

Referenced by vp7_decode_frame_header(), and vp8_decode_frame_header().

◆ vp8_pred4x4_tree

const int8_t vp8_pred4x4_tree[9][2]
static
Initial value:
= {
{ -DC_PRED, 1 },
{ -TM_VP8_PRED, 2 },
{ -VERT_PRED, 3 },
{ 4, 6 },
{ -HOR_PRED, 5 },
{ -VERT_LEFT_PRED, 8 },
}

Definition at line 168 of file vp8data.h.

Referenced by decode_intra4x4_modes().

◆ vp8_pred8x8c_tree

const int8_t vp8_pred8x8c_tree[3][2]
static
Initial value:
= {
{ -DC_PRED8x8, 1 },
{ -VERT_PRED8x8, 2 },
}

Definition at line 180 of file vp8data.h.

Referenced by decode_mb_mode().

◆ vp8_pred8x8c_prob_intra

const uint8_t vp8_pred8x8c_prob_intra[3]
static
Initial value:
= {
142, 114, 183
}

Definition at line 186 of file vp8data.h.

Referenced by decode_mb_mode().

◆ vp8_pred8x8c_prob_inter

const uint8_t vp8_pred8x8c_prob_inter[3]
static
Initial value:
= {
162, 101, 204
}

Definition at line 189 of file vp8data.h.

Referenced by vp7_decode_frame_header(), and vp8_decode_frame_header().

◆ vp8_pred4x4_prob_inter

const uint8_t vp8_pred4x4_prob_inter[9]
static
Initial value:
= {
120, 90, 79, 133, 87, 85, 80, 111, 151
}

Definition at line 192 of file vp8data.h.

Referenced by decode_intra4x4_modes().

◆ vp8_pred4x4_prob_intra

const uint8_t vp8_pred4x4_prob_intra[10][10][9]
static

Definition at line 196 of file vp8data.h.

Referenced by decode_intra4x4_modes().

◆ vp8_coeff_band

const uint8_t vp8_coeff_band[16]
static
Initial value:
= {
0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7
}

Definition at line 319 of file vp8data.h.

Referenced by vp78_reset_probability_tables().

◆ vp8_coeff_band_indexes

const int8_t vp8_coeff_band_indexes[8][10]
static
Initial value:
= {
{ 0, -1 },
{ 1, -1 },
{ 2, -1 },
{ 3, -1 },
{ 5, -1 },
{ 6, -1 },
{ 4, 7, 8, 9, 10, 11, 12, 13, 14, -1 },
{ 15, -1 }
}

Definition at line 325 of file vp8data.h.

Referenced by vp78_update_probability_tables().

◆ vp8_dct_cat1_prob

const uint8_t vp8_dct_cat1_prob[]
static
Initial value:
= {
159, 0
}

Definition at line 336 of file vp8data.h.

Referenced by decode_block_coeffs_internal().

◆ vp8_dct_cat2_prob

const uint8_t vp8_dct_cat2_prob[]
static
Initial value:
= {
165, 145, 0
}

Definition at line 339 of file vp8data.h.

Referenced by decode_block_coeffs_internal().

◆ vp8_dct_cat3_prob

const uint8_t vp8_dct_cat3_prob[]
static
Initial value:
= {
173, 148, 140, 0
}

Definition at line 342 of file vp8data.h.

◆ vp8_dct_cat4_prob

const uint8_t vp8_dct_cat4_prob[]
static
Initial value:
= {
176, 155, 140, 135, 0
}

Definition at line 345 of file vp8data.h.

◆ vp8_dct_cat5_prob

const uint8_t vp8_dct_cat5_prob[]
static
Initial value:
= {
180, 157, 141, 134, 130, 0
}

Definition at line 348 of file vp8data.h.

◆ vp8_dct_cat6_prob

const uint8_t vp8_dct_cat6_prob[]
static
Initial value:
= {
254, 254, 243, 230, 196, 177, 153, 140, 133, 130, 129, 0
}

Definition at line 351 of file vp8data.h.

◆ ff_vp8_dct_cat_prob

const uint8_t* const ff_vp8_dct_cat_prob[]
Initial value:

Definition at line 356 of file vp8data.h.

Referenced by decode_block_coeffs_internal().

◆ vp8_token_default_probs

const uint8_t vp8_token_default_probs[4][8][3][NUM_DCT_TOKENS - 1]
static

Definition at line 363 of file vp8data.h.

Referenced by vp78_reset_probability_tables().

◆ vp8_token_update_probs

const uint8_t vp8_token_update_probs[4][8][3][NUM_DCT_TOKENS - 1]
static

Definition at line 534 of file vp8data.h.

Referenced by vp78_update_probability_tables().

◆ vp8_dc_qlookup

const uint8_t vp8_dc_qlookup[VP8_MAX_QUANT+1]
static
Initial value:
= {
4, 5, 6, 7, 8, 9, 10, 10, 11, 12, 13, 14, 15, 16, 17, 17,
18, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 25, 25, 26, 27, 28,
29, 30, 31, 32, 33, 34, 35, 36, 37, 37, 38, 39, 40, 41, 42, 43,
44, 45, 46, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58,
59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
91, 93, 95, 96, 98, 100, 101, 102, 104, 106, 108, 110, 112, 114, 116, 118,
122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 143, 145, 148, 151, 154, 157,
}

Definition at line 705 of file vp8data.h.

Referenced by vp8_get_quants().

◆ vp8_ac_qlookup

const uint16_t vp8_ac_qlookup[VP8_MAX_QUANT+1]
static
Initial value:
= {
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, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
52, 53, 54, 55, 56, 57, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76,
78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108,
110, 112, 114, 116, 119, 122, 125, 128, 131, 134, 137, 140, 143, 146, 149, 152,
155, 158, 161, 164, 167, 170, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209,
213, 217, 221, 225, 229, 234, 239, 245, 249, 254, 259, 264, 269, 274, 279, 284,
}

Definition at line 716 of file vp8data.h.

Referenced by vp8_get_quants().

◆ vp8_mv_update_prob

const uint8_t vp8_mv_update_prob[2][19]
static
Initial value:
= {
{ 237,
246,
253, 253, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 250, 250, 252, 254, 254 },
{ 231,
243,
245, 253, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 251, 251, 254, 254, 254 }
}

Definition at line 727 of file vp8data.h.

Referenced by vp78_update_pred16x16_pred8x8_mvc_probabilities().

◆ vp7_mv_default_prob

const uint8_t vp7_mv_default_prob[2][17]
static
Initial value:
= {
{ 162,
128,
225, 146, 172, 147, 214, 39, 156,
247, 210, 135, 68, 138, 220, 239, 246 },
{ 164,
128,
204, 170, 119, 235, 140, 230, 228,
244, 184, 201, 44, 173, 221, 239, 253 }
}

Definition at line 738 of file vp8data.h.

Referenced by vp7_decode_frame_header().

◆ vp8_mv_default_prob

const uint8_t vp8_mv_default_prob[2][19]
static
Initial value:
= {
{ 162,
128,
225, 146, 172, 147, 214, 39, 156,
128, 129, 132, 75, 145, 178, 206, 239, 254, 254 },
{ 164,
128,
204, 170, 119, 235, 140, 230, 228,
128, 130, 130, 74, 148, 180, 203, 236, 254, 254 }
}

Definition at line 749 of file vp8data.h.

Referenced by vp8_decode_frame_header().

◆ vp7_feature_value_size

const uint8_t vp7_feature_value_size[2][4]
static
Initial value:
= {
{ 7, 6, 0, 8 },
{ 7, 6, 0, 5 },
}

Definition at line 760 of file vp8data.h.

Referenced by vp7_decode_frame_header().

◆ vp7_feature_index_tree

const int8_t vp7_feature_index_tree[4][2]
static
Initial value:
=
{
{ 1, 2 },
{ -0, -1 },
{ -2, -3 },
}

Definition at line 765 of file vp8data.h.

Referenced by decode_mb_mode().

◆ vp7_ydc_qlookup

const uint16_t vp7_ydc_qlookup[]
static
Initial value:
= {
4, 4, 5, 6, 6, 7, 8, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 33, 34, 35, 36, 36, 37, 38, 39, 39, 40, 41,
41, 42, 43, 43, 44, 45, 45, 46, 47, 48, 48, 49, 50, 51, 52,
53, 53, 54, 56, 57, 58, 59, 60, 62, 63, 65, 66, 68, 70, 72,
74, 76, 79, 81, 84, 87, 90, 93, 96, 100, 104, 108, 112, 116, 121,
126, 131, 136, 142, 148, 154, 160, 167, 174, 182, 189, 198, 206, 215, 224,
234, 244, 254, 265, 277, 288, 301, 313, 327, 340, 355, 370, 385, 401, 417,
434, 452, 470, 489, 509, 529, 550, 572,
}

Definition at line 772 of file vp8data.h.

Referenced by vp7_get_quants().

◆ vp7_yac_qlookup

const uint16_t vp7_yac_qlookup[]
static
Initial value:
= {
4, 4, 5, 5, 6, 6, 7, 8, 9, 10, 11, 12, 13, 15,
16, 17, 19, 20, 22, 23, 25, 26, 28, 29, 31, 32, 34, 35,
37, 38, 40, 41, 42, 44, 45, 46, 48, 49, 50, 51, 53, 54,
55, 56, 57, 58, 59, 61, 62, 63, 64, 65, 67, 68, 69, 70,
72, 73, 75, 76, 78, 80, 82, 84, 86, 88, 91, 93, 96, 99,
102, 105, 109, 112, 116, 121, 125, 130, 135, 140, 146, 152, 158, 165,
172, 180, 188, 196, 205, 214, 224, 234, 245, 256, 268, 281, 294, 308,
322, 337, 353, 369, 386, 404, 423, 443, 463, 484, 506, 529, 553, 578,
604, 631, 659, 688, 718, 749, 781, 814, 849, 885, 922, 960, 1000, 1041,
1083, 1127,
}

Definition at line 784 of file vp8data.h.

Referenced by vp7_get_quants().

◆ vp7_y2dc_qlookup

const uint16_t vp7_y2dc_qlookup[]
static
Initial value:
= {
7, 9, 11, 13, 15, 17, 19, 21, 23, 26, 28, 30, 33, 35,
37, 39, 42, 44, 46, 48, 51, 53, 55, 57, 59, 61, 63, 65,
67, 69, 70, 72, 74, 75, 77, 78, 80, 81, 83, 84, 85, 87,
88, 89, 90, 92, 93, 94, 95, 96, 97, 99, 100, 101, 102, 104,
105, 106, 108, 109, 111, 113, 114, 116, 118, 120, 123, 125, 128, 131,
134, 137, 140, 144, 148, 152, 156, 161, 166, 171, 176, 182, 188, 195,
202, 209, 217, 225, 234, 243, 253, 263, 274, 285, 297, 309, 322, 336,
350, 365, 381, 397, 414, 432, 450, 470, 490, 511, 533, 556, 579, 604,
630, 656, 684, 713, 742, 773, 805, 838, 873, 908, 945, 983, 1022, 1063,
1105, 1148,
}

Definition at line 797 of file vp8data.h.

Referenced by vp7_get_quants().

◆ vp7_y2ac_qlookup

const uint16_t vp7_y2ac_qlookup[]
static
Initial value:
= {
7, 9, 11, 13, 16, 18, 21, 24, 26, 29, 32, 35,
38, 41, 43, 46, 49, 52, 55, 58, 61, 64, 66, 69,
72, 74, 77, 79, 82, 84, 86, 88, 91, 93, 95, 97,
98, 100, 102, 104, 105, 107, 109, 110, 112, 113, 115, 116,
117, 119, 120, 122, 123, 125, 127, 128, 130, 132, 134, 136,
138, 141, 143, 146, 149, 152, 155, 158, 162, 166, 171, 175,
180, 185, 191, 197, 204, 210, 218, 226, 234, 243, 252, 262,
273, 284, 295, 308, 321, 335, 350, 365, 381, 398, 416, 435,
455, 476, 497, 520, 544, 569, 595, 622, 650, 680, 711, 743,
776, 811, 848, 885, 925, 965, 1008, 1052, 1097, 1144, 1193, 1244,
1297, 1351, 1407, 1466, 1526, 1588, 1652, 1719,
}

Definition at line 810 of file vp8data.h.

Referenced by vp7_get_quants().

HOR_PRED8x8
#define HOR_PRED8x8
Definition: h264pred.h:69
vp8_dct_cat6_prob
static const uint8_t vp8_dct_cat6_prob[]
Definition: vp8data.h:351
DC_PRED8x8
#define DC_PRED8x8
Definition: h264pred.h:68
TM_VP8_PRED
@ TM_VP8_PRED
Definition: vp9.h:55
DC_PRED
@ DC_PRED
Definition: vp9.h:48
VERT_LEFT_PRED
@ VERT_LEFT_PRED
Definition: vp9.h:53
VERT_PRED
@ VERT_PRED
Definition: vp9.h:46
DIAG_DOWN_RIGHT_PRED
@ DIAG_DOWN_RIGHT_PRED
Definition: vp9.h:50
HOR_PRED
@ HOR_PRED
Definition: vp9.h:47
VERT_PRED8x8
#define VERT_PRED8x8
Definition: h264pred.h:70
vp8_dct_cat4_prob
static const uint8_t vp8_dct_cat4_prob[]
Definition: vp8data.h:345
VERT_RIGHT_PRED
@ VERT_RIGHT_PRED
Definition: vp9.h:51
PLANE_PRED8x8
#define PLANE_PRED8x8
Definition: h264pred.h:71
MODE_I4x4
#define MODE_I4x4
Definition: vp8.h:60
HOR_UP_PRED
@ HOR_UP_PRED
Definition: vp9.h:54
HOR_DOWN_PRED
@ HOR_DOWN_PRED
Definition: vp9.h:52
vp8_dct_cat5_prob
static const uint8_t vp8_dct_cat5_prob[]
Definition: vp8data.h:348
DIAG_DOWN_LEFT_PRED
@ DIAG_DOWN_LEFT_PRED
Definition: vp9.h:49
vp8_dct_cat3_prob
static const uint8_t vp8_dct_cat3_prob[]
Definition: vp8data.h:342