FFmpeg
Loading...
Searching...
No Matches
dcaenc.h File Reference
#include <stdint.h>
#include "dcamath.h"

Go to the source code of this file.

Data Structures

struct  softfloat
 

Functions

static int32_t quantize_value (int32_t value, softfloat quant)
 

Variables

static const int sample_rates []
 
static const uint8_t bitstream_sfreq [] = { 1, 2, 3, 6, 7, 8, 11, 12, 13 }
 
static const uint16_t fc []
 
static const uint16_t erb []
 
static const softfloat stepsize_inv [27]
 
static const softfloat scalefactor_inv [128]
 
static const int bit_consumption [27]
 
static const int8_t lfe_index [16]
 
static const int8_t channel_reorder_lfe [16][9]
 
static const int8_t channel_reorder_nolfe [16][9]
 

Function Documentation

◆ quantize_value()

static int32_t quantize_value ( int32_t value,
softfloat quant )
inlinestatic

Definition at line 149 of file dcaenc.h.

Referenced by calc_one_scale(), ff_dcaadpcm_do_real(), put_subframe(), and quantize_pcm().

Variable Documentation

◆ sample_rates

◆ bitstream_sfreq

const uint8_t bitstream_sfreq[] = { 1, 2, 3, 6, 7, 8, 11, 12, 13 }
static

Definition at line 38 of file dcaenc.h.

Referenced by put_frame_header().

◆ fc

const uint16_t fc[]
static
Initial value:
= {
50, 150, 250, 350, 450, 570, 700, 840, 1000, 1170, 1370, 1600, 1850, 2150,
2500, 2900, 3400, 4000, 4800, 5800, 7000, 8500, 10500, 13500, 17000
}

Definition at line 43 of file dcaenc.h.

Referenced by add_candidate_ref(), add_cu(), add_residual(), add_tu(), affine_cps_from_nb(), affine_merge_candidate(), affine_merge_const_candidates(), affine_mvp_candidate(), affine_mvp_constructed_cp(), affine_neighbour_cb(), alf_clip_from_idx(), alf_copy_ctb_to_hv(), alf_filter_cc(), alf_filter_chroma(), alf_filter_luma(), alf_get_coeff_and_clip(), alf_get_edges(), alf_get_subblocks(), alf_params(), alf_prepare_buffer(), alloc_cu(), alloc_frame(), alloc_tu(), apply_averaging(), bcw_idx_decode(), calc_vad(), can_split(), cclm_get_luma_rec_pixels(), cclm_linear_pred(), cclm_pred_default(), cclm_select_chroma(), cclm_select_luma(), cclm_select_samples(), check_available(), check_colocation(), check_film_grain(), ciip_derive_intra_weight(), ciip_flag_decode(), color_config(), copy_ctb_to_hv(), create_vorbis_context(), ctu_get_pred(), ctu_nz_tl_init(), cu_get_max_y(), deblock_bs(), deblock_is_boundary(), deblock_params(), decode_anim(), decode_fill_block(), decode_film_grain_characteristics(), decode_frame(), decode_nal_unit(), decode_nal_units(), decode_prefix_sei(), decode_slice(), decode_user_data_registered_itu_t_t35(), decode_user_data_uregistered(), decoder_model_info(), derive_affine_mvc(), derive_center_luma_intra_pred_mode(), derive_chroma_intra_pred_mode(), derive_corner_mvf(), derive_dmvr_bdof_flag(), derive_ilfnst_pred_mode_intra(), derive_max_filter_length_luma(), derive_sb_mv(), derive_temporal_colocated_mvs(), derive_transform_type(), derive_weight_uni(), dmvr_mv_refine(), emulated_edge_no_wrap(), emulated_half(), export_frame_params(), fc_close(), ff_lzw_decode(), ff_mov_read_esds(), ff_parse_mpeg2_descriptor(), ff_vvc_alf_copy_ctu_to_hv(), ff_vvc_alf_ctb_cc_idc(), ff_vvc_alf_ctb_flag(), ff_vvc_alf_filter(), ff_vvc_bump_frame(), ff_vvc_clear_refs(), ff_vvc_coding_tree_unit(), ff_vvc_deblock_bs(), ff_vvc_decode_frame_ps(), ff_vvc_decode_neighbour(), ff_vvc_flush_dpb(), ff_vvc_frame_rpl(), ff_vvc_frame_submit(), ff_vvc_frame_thread_free(), ff_vvc_frame_thread_init(), ff_vvc_frame_wait(), ff_vvc_get_left_available(), ff_vvc_get_mvf(), ff_vvc_get_qPy(), ff_vvc_get_ref_list(), ff_vvc_get_top_available(), ff_vvc_lmcs_filter(), ff_vvc_non_inter_flag(), ff_vvc_output_frame(), ff_vvc_per_frame_init(), ff_vvc_pred_mode_flag(), ff_vvc_pred_mode_ibc_flag(), ff_vvc_predict_inter(), ff_vvc_reconstruct(), ff_vvc_sao_filter(), ff_vvc_sei_decode(), ff_vvc_set_intra_mvf(), ff_vvc_set_mvf(), ff_vvc_set_new_ref(), ff_vvc_slice_rpl(), ff_vvc_split_cu_flag(), ff_vvc_unref_frame(), ff_vvc_update_hmvp(), fg_send_command(), fill_dmvr_info(), film_grain_params(), filter_command_free(), filter_thread(), find_ref_idx(), floor_encode(), floor_fit(), format_to_name(), frame_context_for_each_tl(), frame_context_free(), frame_context_init(), frame_context_setup(), frame_end(), frame_setup(), frame_start(), frame_thread_init_score(), free_cus(), gammafilter(), generate_missing_ref(), get_cclm_enabled(), get_floor_average(), get_frame_context(), get_inter_flag_inc(), get_left_top(), get_luma_pred_mode(), get_needed_flags(), get_qp(), get_qp_c(), get_qp_y(), get_qp_y_pred(), get_qPc(), get_ref_pic_index(), get_virtual_boundary(), hls_coding_tree(), hls_coding_tree_unit(), hls_coding_unit(), hls_merge_data(), hls_palette_coding(), hls_sao(), hls_transform_unit(), ibc_check_mv(), ibc_fill_vir_buf(), ibc_spatial_candidates(), ibc_tl_init(), imlt_window_float(), init_slice_rpl(), intra_block_copy(), intra_cclm_pred(), intra_luma_pred_modes(), intra_pred(), is_a0_available(), is_available(), is_first_row(), is_greater_mer(), is_same_mer(), is_virtual_boundary(), ispmf_tl_init(), itransform(), itx_1d(), itx_2d(), lmcs_derive_chroma_scale(), lmcs_scale_chroma(), lock_frame(), luma_intra_pred_mode(), luma_prof(), luma_prof_uni(), max_filter_length(), max_filter_length_chroma(), max_filter_length_luma(), mc(), mc_bi(), mc_scaled(), mc_uni(), mc_uni_scaled(), merge_data_block(), merge_data_ciip(), merge_data_gpm(), merge_data_ibc(), merge_data_regular(), merge_data_subblock(), min_cb_nz_tl_init(), min_cb_tl_init(), min_pu_nz_tl_init(), min_pu_tl_init(), min_tu_nz_tl_init(), min_tu_tl_init(), mov_read_pcmc(), msm_tl_init(), mtt_split_cu_vertical_flag_decode(), mux_check_init(), mv_merge_candidate(), mv_merge_temporal_candidate(), mvds_decode(), mvp_candidate(), mvp_data(), mvp_data_ibc(), nut_write_packet(), obu_header(), of_write_trailer(), opt_default(), opt_match_per_stream(), opt_match_per_stream_dbl(), opt_match_per_stream_group(), opt_match_per_stream_group_dbl(), opt_match_per_stream_group_int(), opt_match_per_stream_group_int64(), opt_match_per_stream_group_str(), opt_match_per_stream_int(), opt_match_per_stream_int64(), opt_match_per_stream_str(), palette_qp(), parse_mpeg2_extension_descriptor(), parse_task_done(), pic_arrays_free(), pic_arrays_init(), pixel_buffer_nz_tl_init(), pred_affine_blk(), pred_gpm_blk(), pred_mode_decode(), pred_regular(), predict_inter(), predict_intra(), print_streams(), put_floor_header(), reconstruct(), report_frame_progress(), run_alf(), run_deblock_h(), run_deblock_v(), run_init(), run_inter(), run_lmcs(), run_parse(), run_sao(), rv34_decode_block(), rv34_process_block(), sao_can_cross_slices(), sao_copy_ctb_to_hv(), sao_extends_edges(), sao_get_edges(), sb_clip_location(), sb_temporal_luma_motion_data(), sb_temporal_merge_candidate(), sb_temproal_luma_motion(), scaled_ref_pos_and_step(), schedule_inter(), schedule_next_parse(), sequence_header_obu(), set_ap(), set_ap1(), set_cb_pos(), set_cb_tab(), set_cu_tabs(), set_dmvr_info(), set_hp(), set_last_stream_little_endian(), set_lp(), set_lp_rbj(), set_pict_type(), set_qp_c(), set_side_data(), set_tb_size(), set_tb_tab(), skipped_transform_tree(), slice_init_entry_points(), slice_start(), slices_free(), slices_realloc(), smvd_find(), smvd_ref_idx(), split_qt_flag_decode(), store_cp_mv(), submit_frame(), task_has_target_score(), task_init(), task_run_stage(), task_stage_done(), temporal_luma_motion_vector(), tile_group_obu(), timing_info(), unlock_frame(), vaapi_vvc_decode_slice(), vaapi_vvc_end_frame(), vaapi_vvc_start_frame(), vorbis_encode_frame(), vvc_deblock(), vvc_deblock_bs_chroma(), vvc_deblock_bs_luma(), vvc_deblock_subblock_bs(), vvc_decode_frame(), vvc_decode_init(), and vvc_predict_palette().

◆ erb

const uint16_t erb[]
static
Initial value:
= {
80, 100, 100, 100, 110, 120, 140, 150, 160, 190, 210, 240, 280,
320, 380, 450, 550, 700, 900, 1100, 1300, 1800, 2500, 3500, 4500
}

Definition at line 48 of file dcaenc.h.

Referenced by gammafilter().

◆ stepsize_inv

const softfloat stepsize_inv[27]
static
Initial value:
= {
{0, 0}, {1342177360, 21}, {2147483647, 21}, {1342177360, 20},
{1819901661, 20}, {2147483647, 20}, {1278263843, 19}, {1579032492, 19},
{1412817763, 18}, {1220162327, 17}, {1118482133, 16}, {1917391412, 16},
{1766017772, 15}, {1525212826, 14}, {1290553940, 13}, {2097179000, 13},
{1677683200, 12}, {1497972244, 11}, {1310893147, 10}, {1165354136, 9},
{1748031204, 9}, {1542092044, 8}, {1636178017, 7}, {1636178017, 6},
{1636178017, 5}, {1636178017, 4}, {1636178017, 3},
}

Definition at line 53 of file dcaenc.h.

Referenced by calc_one_scale().

◆ scalefactor_inv

const softfloat scalefactor_inv[128]
static

Definition at line 63 of file dcaenc.h.

Referenced by calc_one_scale().

◆ bit_consumption

const int bit_consumption[27]
static
Initial value:
= {
-8, 28, 40, 48, 52, 60, 68, 76, 80, 96,
112, 128, 144, 160, 176, 192, 208, 224, 240, 256,
272, 288, 304, 320, 336, 352, 368,
}

Definition at line 101 of file dcaenc.h.

Referenced by init_quantization_noise(), and put_subframe_samples().

◆ lfe_index

const int8_t lfe_index[16]
static
Initial value:
= {
1, 2, 2, 2, 2, 3, 2, 3, 2, 3, 2, 3, 1, 3, 2, 3
}

Definition at line 107 of file dcaenc.h.

◆ channel_reorder_lfe

const int8_t channel_reorder_lfe[16][9]
static
Initial value:
= {
{ 0, -1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, -1, -1, -1, -1, -1, -1, -1 },
{ 2, 0, 1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, 3, -1, -1, -1, -1, -1, -1 },
{ 2, 0, 1, 4, -1, -1, -1, -1, -1 },
{ 0, 1, 3, 4, -1, -1, -1, -1, -1 },
{ 2, 0, 1, 4, 5, -1, -1, -1, -1 },
{ 3, 4, 0, 1, 5, 6, -1, -1, -1 },
{ 2, 0, 1, 4, 5, 6, -1, -1, -1 },
{ 0, 6, 4, 5, 2, 3, -1, -1, -1 },
{ 4, 2, 5, 0, 1, 6, 7, -1, -1 },
{ 5, 6, 0, 1, 7, 3, 8, 4, -1 },
{ 4, 2, 5, 0, 1, 6, 8, 7, -1 },
}

Definition at line 111 of file dcaenc.h.

◆ channel_reorder_nolfe

const int8_t channel_reorder_nolfe[16][9]
static
Initial value:
= {
{ 0, -1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, -1, -1, -1, -1, -1, -1, -1 },
{ 2, 0, 1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, 2, -1, -1, -1, -1, -1, -1 },
{ 2, 0, 1, 3, -1, -1, -1, -1, -1 },
{ 0, 1, 2, 3, -1, -1, -1, -1, -1 },
{ 2, 0, 1, 3, 4, -1, -1, -1, -1 },
{ 2, 3, 0, 1, 4, 5, -1, -1, -1 },
{ 2, 0, 1, 3, 4, 5, -1, -1, -1 },
{ 0, 5, 3, 4, 1, 2, -1, -1, -1 },
{ 3, 2, 4, 0, 1, 5, 6, -1, -1 },
{ 4, 5, 0, 1, 6, 2, 7, 3, -1 },
{ 3, 2, 4, 0, 1, 5, 7, 6, -1 },
}

Definition at line 130 of file dcaenc.h.