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

Go to the source code of this file.

Variables

static const uint8_t vp31_intra_y_dequant [64]
 
static const uint8_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 uint8_t superblock_run_length_vlc_lens [34]
 
static const uint8_t fragment_run_length_vlc_len [30]
 
static const uint8_t mode_code_vlc_len [8]
 
static const uint8_t motion_vector_vlc_table [63][2]
 
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_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 uint8_t vp3_bias [5 *16][32][2]
 

Variable Documentation

◆ vp31_intra_y_dequant

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

◆ vp31_inter_dequant

const uint8_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 41 of file vp3data.h.

Referenced by vp3_decode_init().

◆ vp31_dc_scale_factor

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 52 of file vp3data.h.

Referenced by vp3_decode_init().

◆ vp31_ac_scale_factor

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 63 of file vp3data.h.

Referenced by vp3_decode_init().

◆ vp31_filter_limit_values

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 74 of file vp3data.h.

Referenced by vp3_decode_init().

◆ superblock_run_length_vlc_lens

const uint8_t superblock_run_length_vlc_lens[34]
static
Initial value:
= {
1, 3, 3, 4, 4, 6, 6, 6, 6, 8, 8, 8, 8, 8, 8, 8, 8, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
6,
}

Definition at line 85 of file vp3data.h.

Referenced by vp3_decode_init().

◆ fragment_run_length_vlc_len

const uint8_t fragment_run_length_vlc_len[30]
static
Initial value:
= {
2, 2, 3, 3, 4, 4, 6, 6, 6, 6, 7, 7, 7, 7, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
}

Definition at line 92 of file vp3data.h.

Referenced by vp3_decode_init().

◆ mode_code_vlc_len

const uint8_t mode_code_vlc_len[8]
static
Initial value:
= {
1, 2, 3, 4, 5, 6, 7, 7,
}

Definition at line 97 of file vp3data.h.

Referenced by vp3_decode_init().

◆ motion_vector_vlc_table

const uint8_t motion_vector_vlc_table[63][2]
static
Initial value:
= {
{ 31, 3 }, { 32, 3 }, { 30, 3 }, { 33, 4 }, { 29, 4 }, { 34, 4 },
{ 28, 4 }, { 35, 6 }, { 27, 6 }, { 36, 6 }, { 26, 6 }, { 37, 6 },
{ 25, 6 }, { 38, 6 }, { 24, 6 }, { 39, 7 }, { 23, 7 }, { 40, 7 },
{ 22, 7 }, { 41, 7 }, { 21, 7 }, { 42, 7 }, { 20, 7 }, { 43, 7 },
{ 19, 7 }, { 44, 7 }, { 18, 7 }, { 45, 7 }, { 17, 7 }, { 46, 7 },
{ 16, 7 }, { 47, 8 }, { 15, 8 }, { 48, 8 }, { 14, 8 }, { 49, 8 },
{ 13, 8 }, { 50, 8 }, { 12, 8 }, { 51, 8 }, { 11, 8 }, { 52, 8 },
{ 10, 8 }, { 53, 8 }, { 9, 8 }, { 54, 8 }, { 8, 8 }, { 55, 8 },
{ 7, 8 }, { 56, 8 }, { 6, 8 }, { 57, 8 }, { 5, 8 }, { 58, 8 },
{ 4, 8 }, { 59, 8 }, { 3, 8 }, { 60, 8 }, { 2, 8 }, { 61, 8 },
{ 1, 8 }, { 62, 8 }, { 0, 8 },
}

Definition at line 101 of file vp3data.h.

Referenced by vp3_decode_init().

◆ fixed_motion_vector_table

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 115 of file vp3data.h.

Referenced by unpack_vectors().

◆ base

uint8_t base

◆ bits

uint8_t bits

Definition at line 128 of file vp3data.h.

Referenced by aac_sync(), ac3_compute_mantissa_size_c(), ac3_decode_transform_coeffs_ch(), adaptive_quantization(), ape_read_header(), apply_lpc(), arith2_get_consumed_bytes(), arith_get_bits(), asv2_get_vlc2(), av_base64_decode(), av_crc_init(), av_get_bits_per_pixel(), av_get_padded_bits_per_pixel(), av_ripemd_init(), av_sha512_init(), av_sha_init(), avisynth_read_packet_video(), aw_parse_coords(), bands_dist(), binkb_get_value(), binkb_read_bundle(), bit8x8_c(), bits2qp(), build_canonical_huff(), build_huff(), build_huff_tree(), build_table(), 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(), cfhd_encode_frame(), check_decorrelate(), check_slice_end(), check_vector_fmul_window_scaled(), checkasm_check_flacdsp(), clear_less_significant_bits(), code_filter_coeffs(), code_matrix_coeffs(), codebook_trellis_rate(), compress_alpha(), copy_bits(), count_hq_slice(), create_filtergraph(), dct_error(), dec_gain(), decfloat(), decode_0cpy(), decode_band_numwavs(), decode_band_types(), decode_block(), decode_channel(), decode_filt_coeffs(), decode_filter(), decode_gainc_levels(), decode_gainc_loc_codes(), decode_gainc_npoints(), decode_i2_frame(), decode_init(), decode_line(), decode_mad1(), decode_mad1_24(), decode_palmapdata(), decode_plane(), decode_qu_spectra(), decode_rgb_frame(), decode_rle(), decode_spectrum_and_dequant(), decode_subframe(), decode_sym_565(), 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(), dss_sp_scale_vector(), dvbsub_read_2bit_string(), dvbsub_read_4bit_string(), dvbsub_read_8bit_string(), encode_block(), encode_frame(), encode_line(), encode_mode(), encode_picture(), encode_residual_ch(), encode_rgb_frame(), encode_thread(), estimate_acs(), estimate_alpha_plane(), estimate_dcs(), estimate_slice_plane(), extend_code(), ff_acelp_fc_pulse_per_track(), ff_adx_calculate_coeffs(), ff_cbs_read_signed(), ff_cbs_read_unsigned(), ff_cbs_trace_syntax_element(), ff_cbs_write_signed(), ff_cbs_write_unsigned(), ff_celt_bitalloc(), ff_copy_bits(), 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_hscale16to19_4_neon(), ff_hscale16to19_X4_neon(), ff_hscale16to19_X8_neon(), ff_media_type_to_sample_fmt(), ff_mjpeg_decode_sof(), ff_mjpeg_encode_huffman_close(), ff_mpeg4_merge_partitions(), ff_mpv_encode_picture(), ff_nelly_get_sample_bits(), ff_opus_rc_dec_log(), ff_opus_rc_dec_uint(), ff_opus_rc_enc_end(), ff_opus_rc_enc_log(), ff_pce_copy_bits(), ff_quantize_and_encode_band_cost(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_sbc_calculate_bits(), ff_sbc_crc8(), ff_vorbis_len2vlc(), fffloatscan(), fill_bits32(), fill_ltable(), fillPlane16(), fillPlane32(), find_optimal_param_exact(), find_slice_quant(), find_subframe_rice_params(), fixed_sqrt(), fold(), ftr_parse(), g2m_load_cursor(), gainc_level_mode1m(), gb_get_v(), generate_joint_tables(), get_bits_diff(), get_eob_run(), get_mvdata_interlaced(), get_qscale(), get_size_in_bits(), get_tree_codes(), get_ts64(), get_vlc2(), get_vlc_symbol(), getbit(), hdcd_integrate(), hexfloat(), hScale16To19_c(), imc_decode_block(), init_default_huffman_tables(), init_pass2(), init_uni_h263_rl_tab(), init_uni_mpeg4_rl_tab(), intlist_read(), ivi_create_huff_from_desc(), kempf_decode_tile(), lag_decode_prob(), ljpeg_decode_yuv_scan(), m101_decode_frame(), main(), match_colors(), mdl64_decode(), metasound_read_bitstream(), model64_init(), moflex_read_packet(), mp_decode_layer2(), mpc8_dec_enum(), mpc8_decode_frame(), mpeg4_decode_partition_a(), mpegaudiodec_common_init_static(), msmpeg4v2_encode_motion(), mss4_init_vlc(), mul__(), nelly_decode_block(), norm__(), number_trailing_zeroes(), put_codebook_header(), put_runcode(), put_subframe_samples(), put_vc2_ue_uint(), put_vlc_symbol(), pvq_band_cost(), quantize_and_encode_band_cost_template(), quantize_band_cost(), quantize_band_cost_bits(), quantize_band_cost_cached(), query_formats(), rate_control(), rd8x8_c(), read_and_decode_spectrum(), read_argb_line(), read_bits2(), read_bits32(), read_code_table(), read_colorspace_details(), read_dct_coeffs(), read_huffman_code_normal(), read_huffman_tables(), read_map(), read_rgb24_component_line(), read_sbr_envelope(), read_vlc(), read_yuv_component_line(), recurse_mono(), recurse_stereo(), rv34_gen_vlc(), s302m_parse_frame_header(), sample_fmt_bits_per_sample(), sbc_pack_frame(), sbc_unpack_frame(), search_for_quantizers_fast(), search_for_quantizers_twoloop(), segmentation_params(), seq_decode_op1(), set_best_code(), sign_extend(), sign_extend64(), skip_put_bits(), slice_header(), smka_decode_frame(), sort_mono(), sort_stereo(), speedhq_init_static_data(), sps_extension(), tdsc_load_cursor(), truehd_core_filter(), twinvq_read_bitstream(), unpack_intraframe(), vector_fmul_window_scaled_c(), vorbis_parse_setup_hdr_floors(), vp56_rac_gets(), vp89_rac_get_uint(), vp8_rac_get_sint(), vpx_rac_renorm(), wmavoice_init_static_data(), wp_log2(), xan_unpack_luma(), and zero_extend().

◆ eob_run_table

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

◆ zero_run_base

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 133 of file vp3data.h.

Referenced by get_coeff().

◆ zero_run_get_bits

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 140 of file vp3data.h.

Referenced by get_coeff().

◆ coeff_get_bits

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 148 of file vp3data.h.

Referenced by get_coeff().

◆ coeff_table_token_7_8

const int16_t coeff_table_token_7_8[1] = { 0 }
static

Definition at line 157 of file vp3data.h.

◆ coeff_table_token_9

const int16_t coeff_table_token_9[1] = { 1 }
static

Definition at line 158 of file vp3data.h.

◆ coeff_table_token_10

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

Definition at line 159 of file vp3data.h.

◆ coeff_table_token_11

const int16_t coeff_table_token_11[1] = { 2 }
static

Definition at line 160 of file vp3data.h.

◆ coeff_table_token_12

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

Definition at line 161 of file vp3data.h.

◆ coeff_table_token_13

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

Definition at line 163 of file vp3data.h.

◆ coeff_table_token_14

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

Definition at line 164 of file vp3data.h.

◆ coeff_table_token_15

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

Definition at line 165 of file vp3data.h.

◆ coeff_table_token_16

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

Definition at line 166 of file vp3data.h.

◆ coeff_table_token_23_24_25_26_27_28_29

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

Definition at line 168 of file vp3data.h.

◆ coeff_table_token_30_31

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

Definition at line 169 of file vp3data.h.

◆ coeff_table_token_17

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

Definition at line 171 of file vp3data.h.

◆ coeff_table_token_18

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

Definition at line 175 of file vp3data.h.

◆ coeff_table_token_19

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 179 of file vp3data.h.

◆ coeff_table_token_20

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 183 of file vp3data.h.

◆ coeff_table_token_21

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 190 of file vp3data.h.

◆ coeff_table_token_22

const int16_t coeff_table_token_22[1024]
static

Definition at line 201 of file vp3data.h.

◆ coeff_tables

const int16_t* const coeff_tables[32]
static

Definition at line 332 of file vp3data.h.

Referenced by get_coeff().

◆ vp3_bias

const uint8_t vp3_bias[5 *16][32][2]
static

Definition at line 370 of file vp3data.h.

Referenced by vp3_decode_init().