FFmpeg
Variables
vp3data.h File Reference
#include <stdint.h>
#include <stdlib.h>

Go to the source code of this file.

Variables

static const int8_t vp31_intra_y_dequant [64]
 
static const int8_t vp31_intra_c_dequant [64]
 
static const int8_t vp31_inter_dequant [64]
 
static const uint8_t vp31_dc_scale_factor [64]
 
static const uint16_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 int8_t motion_vector_table [63]
 
static const int8_t fixed_motion_vector_table [64]
 
struct {
   uint8_t   base
 
   uint8_t   bits
 
eob_run_table [7]
 
static const uint8_t zero_run_base [32]
 
static const uint8_t zero_run_get_bits [32]
 
static const uint8_t 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 int8_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 int8_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 int8_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 uint8_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 uint16_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 int8_t 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().

uint8_t base
uint8_t bits

Definition at line 202 of file vp3data.h.

Referenced by aac_sync(), ac3_compute_mantissa_size_c(), ac3_decode_transform_coeffs_ch(), adaptive_quantization(), apply_lpc(), arith2_get_consumed_bytes(), arith_get_bits(), av_base64_decode(), av_crc_init(), av_get_bits_per_pixel(), av_get_padded_bits_per_pixel(), avisynth_read_packet_video(), avpriv_copy_bits(), aw_parse_coords(), bands_dist(), binkb_get_value(), binkb_read_bundle(), bit8x8_c(), bits2qp(), buffer_size_after_time_downloaded(), build_canonical_huff(), build_huff(), build_huff10(), build_huff_tree(), build_vlc(), calc_bit_demand(), calc_rice_params(), calc_slice_sizes(), cbs_av1_read_increment(), cbs_av1_read_ns(), cbs_av1_read_uvlc(), cbs_av1_write_increment(), cbs_av1_write_ns(), cbs_av1_write_uvlc(), cbs_read_se_golomb(), cbs_read_ue_golomb(), cbs_vp9_read_increment(), cbs_vp9_read_le(), cbs_vp9_read_s(), cbs_vp9_write_increment(), cbs_vp9_write_le(), cbs_vp9_write_s(), cbs_write_se_golomb(), cbs_write_ue_golomb(), celt_bits2pulses(), celt_decode_tf_changes(), celt_enc_tf(), check_slice_end(), check_vector_fmul_window_scaled(), checkasm_check_flacdsp(), code_filter_coeffs(), code_matrix_coeffs(), codebook_trellis_rate(), compress_alpha(), count_hq_slice(), create_filtergraph(), dct_error(), dec_gain(), decode_band_numwavs(), decode_band_types(), decode_block(), decode_gainc_levels(), decode_gainc_loc_codes(), decode_gainc_npoints(), decode_i2_frame(), decode_init(), decode_line_TMPL(), decode_plane(), decode_qu_spectra(), decode_rgb_frame_TMPL(), decode_rle(), decode_spectrum_and_dequant(), decode_subframe(), decode_tones_amplitude(), decode_tones_frequency(), decode_tones_info(), decompress_2(), decompress_5(), decompress_68(), delta_mono(), delta_stereo(), dequant(), dnxhd_calc_ac_bits(), dnxhd_calc_bits_thread(), dnxhd_encode_rdo(), dnxhd_find_qscale(), dvbsub_read_2bit_string(), dvbsub_read_4bit_string(), dvbsub_read_8bit_string(), encode_block(), encode_frame(), encode_line_TMPL(), encode_mode(), encode_picture(), encode_residual_ch(), encode_rgb_frame_TMPL(), encode_thread(), estimate_acs(), estimate_alpha_plane(), estimate_dcs(), estimate_slice_plane(), extend_code(), ff_acelp_fc_pulse_per_track(), ff_cbs_read_signed(), ff_cbs_read_unsigned(), ff_cbs_write_signed(), ff_cbs_write_unsigned(), ff_celt_bitalloc(), ff_copy_pce_data(), ff_decode_10_pulses_35bits(), ff_eac3_decode_transform_coeffs_aht_ch(), ff_g723_1_scale_vector(), ff_h263_encode_motion(), ff_h264_decode_mb_cabac(), ff_huffyuv_generate_bits_table(), ff_mjpeg_decode_sof(), ff_mjpeg_encode_huffman_increment(), ff_mpeg1_encode_init(), ff_mpeg4_merge_partitions(), ff_mpv_encode_picture(), ff_opus_rc_dec_log(), ff_opus_rc_dec_uint(), ff_opus_rc_enc_end(), ff_opus_rc_enc_log(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_rv34_decode_init(), ff_sbc_calculate_bits(), ff_sbc_crc8(), fffloatscan(), fill_ltable(), fillPlane16(), find_optimal_param_exact(), find_slice_quant(), find_subframe_rice_params(), fixed_sqrt(), g2m_load_cursor(), gainc_level_mode1m(), generate_joint_tables(), get_bits_diff(), get_eob_run(), get_mvdata_interlaced(), get_qscale(), get_size_in_bits(), get_sr_golomb_shorten(), hdcd_integrate(), hScale16To19_c(), huff_build(), huff_build10(), huff_build12(), imc_decode_block(), imc_refine_bit_allocation(), init_default_huffman_tables(), init_pass2(), init_static(), init_uni_h263_rl_tab(), init_uni_mpeg4_rl_tab(), intlist_read(), is_ebml_id_valid(), ivi_create_huff_from_desc(), kempf_decode_tile(), lag_decode_prob(), ljpeg_decode_yuv_scan(), m101_decode_frame(), main(), match_colors(), metasound_read_bitstream(), mp_decode_layer2(), mpc8_dec_enum(), mpc8_decode_frame(), mpeg1_encode_motion(), mpeg4_decode_partition_a(), msmpeg4v2_encode_motion(), mss4_init_vlc(), nelly_decode_block(), number_trailing_zeroes(), opus_rc_tell_frac(), put_codebook_header(), put_subframe_samples(), put_vc2_ue_uint(), query_formats(), rate_control(), rd8x8_c(), read_and_decode_spectrum(), read_argb_line(), read_code_table(), read_colorspace_details(), read_dct_coeffs(), read_huffman_code_normal(), read_huffman_tables(), read_map(), read_quant_spectral_coeffs(), read_rgb24_component_line(), read_sbr_envelope(), read_yuv_component_line(), recurse_mono(), recurse_stereo(), reverse(), s302m_parse_frame_header(), sbc_pack_frame(), sbc_unpack_frame(), search_for_golomb(), search_for_quantizers_fast(), search_for_quantizers_twoloop(), segmentation_params(), seq_decode_op1(), set_best_code(), slice_header(), smka_decode_frame(), sort_mono(), sort_stereo(), sps_extension(), tdsc_load_cursor(), twinvq_read_bitstream(), unpack_intraframe(), vorbis_parse_setup_hdr_floors(), vp56_rac_renorm(), wmavoice_init_static_data(), wp_log2(), xan_unpack_luma(), and zero_extend().

const { ... } eob_run_table[7]
Initial value:
= {
{1, 0}, {2, 0}, {3, 0}, {4, 2}, {8, 3}, {16, 4}, {0, 12}
}

Referenced by get_eob_run().

const uint8_t 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 207 of file vp3data.h.

Referenced by get_coeff().

const uint8_t 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 214 of file vp3data.h.

Referenced by get_coeff().

const uint8_t 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 222 of file vp3data.h.

Referenced by get_coeff().

const int16_t coeff_table_token_7_8[1] = { 0 }
static

Definition at line 231 of file vp3data.h.

const int16_t coeff_table_token_9[1] = { 1 }
static

Definition at line 232 of file vp3data.h.

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

Definition at line 233 of file vp3data.h.

const int16_t coeff_table_token_11[1] = { 2 }
static

Definition at line 234 of file vp3data.h.

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

Definition at line 235 of file vp3data.h.

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

Definition at line 237 of file vp3data.h.

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

Definition at line 238 of file vp3data.h.

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

Definition at line 239 of file vp3data.h.

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

Definition at line 240 of file vp3data.h.

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

Definition at line 242 of file vp3data.h.

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

Definition at line 243 of file vp3data.h.

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

Definition at line 244 of file vp3data.h.

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

Definition at line 246 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 250 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 254 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 258 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 265 of file vp3data.h.

const int16_t coeff_table_token_22[1024]
static

Definition at line 276 of file vp3data.h.

const int16_t* const coeff_tables[32]
static

Definition at line 407 of file vp3data.h.

Referenced by get_coeff().

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

Definition at line 445 of file vp3data.h.

Referenced by vp3_decode_init().

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

Definition at line 992 of file vp3data.h.

Referenced by vp3_decode_init().

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

Definition at line 1539 of file vp3data.h.

Referenced by vp3_decode_init().

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

Definition at line 2086 of file vp3data.h.

Referenced by vp3_decode_init().

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

Definition at line 2633 of file vp3data.h.

Referenced by vp3_decode_init().