FFmpeg
|
Go to the source code of this file.
Data Structures | |
struct | ResidualCoding |
Macros | |
#define | CABAC_MAX_BIN 31 |
#define | CNU 35 |
#define | MAX_SUB_BLOCKS 16 |
#define | MAX_SUB_BLOCK_SIZE 4 |
#define | MAX_TB_SIZE 64 |
#define | GET_CABAC(ctx) vvc_get_cabac(&lc->ep->cc, lc->ep->cabac_state, ctx) |
Variables | |
static const uint8_t | init_values [4][SYNTAX_ELEMENT_LAST] |
static const uint8_t | qstate_translate_table [][2] |
#define GET_CABAC | ( | ctx | ) | vvc_get_cabac(&lc->ep->cc, lc->ep->cabac_state, ctx) |
enum SyntaxElement |
|
static |
Definition at line 808 of file cabac.c.
Referenced by ff_vvc_cabac_init().
|
static |
Definition at line 813 of file cabac.c.
Referenced by ff_vvc_cabac_init().
int ff_vvc_cabac_init | ( | VVCLocalContext * | lc, |
const int | ctu_idx, | ||
const int | rx, | ||
const int | ry | ||
) |
Definition at line 842 of file cabac.c.
Referenced by ff_vvc_coding_tree_unit().
|
static |
Definition at line 860 of file cabac.c.
Referenced by vvc_get_cabac().
|
inlinestatic |
|
static |
Definition at line 916 of file cabac.c.
Referenced by ff_vvc_alf_luma_fixed_filter_idx(), ff_vvc_alf_luma_prev_filter_idx(), ff_vvc_intra_luma_mpm_remainder(), ff_vvc_intra_mip_mode(), and ff_vvc_palette_idx_idc().
|
static |
Definition at line 932 of file cabac.c.
Referenced by ff_vvc_num_signalled_palette_entries(), ff_vvc_palette_escape_val(), and ff_vvc_palette_predictor_run().
|
static |
Definition at line 953 of file cabac.c.
Referenced by abs_decode(), and ff_vvc_abs_mvd_minus2().
|
static |
Definition at line 972 of file cabac.c.
Referenced by ff_vvc_merge_gpm_partition_idx(), ff_vvc_new_palette_entries(), and ff_vvc_sao_band_position_decode().
|
static |
Definition at line 983 of file cabac.c.
Referenced by ff_vvc_non_inter_flag(), ff_vvc_pred_mode_flag(), ff_vvc_pred_mode_ibc_flag(), ff_vvc_split_cu_flag(), get_inc(), get_inter_flag_inc(), get_mip_inc(), and split_qt_flag_decode().
|
static |
Definition at line 1001 of file cabac.c.
Referenced by ff_vvc_cu_skip_flag().
int ff_vvc_sao_merge_flag_decode | ( | VVCLocalContext * | lc | ) |
int ff_vvc_sao_type_idx_decode | ( | VVCLocalContext * | lc | ) |
int ff_vvc_sao_band_position_decode | ( | VVCLocalContext * | lc | ) |
int ff_vvc_sao_offset_abs_decode | ( | VVCLocalContext * | lc | ) |
int ff_vvc_sao_offset_sign_decode | ( | VVCLocalContext * | lc | ) |
int ff_vvc_sao_eo_class_decode | ( | VVCLocalContext * | lc | ) |
int ff_vvc_alf_ctb_flag | ( | VVCLocalContext * | lc, |
const int | rx, | ||
const int | ry, | ||
const int | c_idx | ||
) |
Definition at line 1048 of file cabac.c.
Referenced by alf_params().
int ff_vvc_alf_use_aps_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1063 of file cabac.c.
Referenced by alf_params().
int ff_vvc_alf_luma_prev_filter_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 1068 of file cabac.c.
Referenced by alf_params().
int ff_vvc_alf_luma_fixed_filter_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 1073 of file cabac.c.
Referenced by alf_params().
int ff_vvc_alf_ctb_filter_alt_idx | ( | VVCLocalContext * | lc, |
const int | c_idx, | ||
const int | num_chroma_filters | ||
) |
Definition at line 1078 of file cabac.c.
Referenced by alf_params().
int ff_vvc_alf_ctb_cc_idc | ( | VVCLocalContext * | lc, |
const int | rx, | ||
const int | ry, | ||
const int | idx, | ||
const int | cc_filters_signalled | ||
) |
Definition at line 1088 of file cabac.c.
Referenced by alf_params().
int ff_vvc_split_cu_flag | ( | VVCLocalContext * | lc, |
const int | x0, | ||
const int | y0, | ||
const int | cb_width, | ||
const int | cb_height, | ||
const int | is_chroma, | ||
const VVCAllowedSplit * | a | ||
) |
Definition at line 1110 of file cabac.c.
Referenced by hls_coding_tree().
|
static |
Definition at line 1132 of file cabac.c.
Referenced by ff_vvc_split_mode().
|
static |
Definition at line 1146 of file cabac.c.
Referenced by ff_vvc_split_mode().
|
static |
Definition at line 1182 of file cabac.c.
Referenced by ff_vvc_split_mode().
VVCSplitMode ff_vvc_split_mode | ( | VVCLocalContext * | lc, |
const int | x0, | ||
const int | y0, | ||
const int | cb_width, | ||
const int | cb_height, | ||
const int | cqt_depth, | ||
const int | mtt_depth, | ||
const int | ch_type, | ||
const VVCAllowedSplit * | a | ||
) |
Definition at line 1188 of file cabac.c.
Referenced by hls_coding_tree().
int ff_vvc_non_inter_flag | ( | VVCLocalContext * | lc, |
const int | x0, | ||
const int | y0, | ||
const int | ch_type | ||
) |
Definition at line 1222 of file cabac.c.
Referenced by mode_type_decode().
int ff_vvc_pred_mode_flag | ( | VVCLocalContext * | lc, |
const int | is_chroma | ||
) |
Definition at line 1232 of file cabac.c.
Referenced by pred_mode_decode().
int ff_vvc_pred_mode_plt_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1243 of file cabac.c.
Referenced by pred_mode_decode().
int ff_vvc_intra_bdpcm_luma_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1248 of file cabac.c.
Referenced by intra_luma_pred_modes().
int ff_vvc_intra_bdpcm_luma_dir_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1253 of file cabac.c.
Referenced by intra_luma_pred_modes().
int ff_vvc_intra_bdpcm_chroma_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1258 of file cabac.c.
Referenced by intra_chroma_pred_modes().
int ff_vvc_intra_bdpcm_chroma_dir_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1263 of file cabac.c.
Referenced by intra_chroma_pred_modes().
int ff_vvc_cu_skip_flag | ( | VVCLocalContext * | lc, |
const uint8_t * | cu_skip_flag | ||
) |
Definition at line 1268 of file cabac.c.
Referenced by pred_mode_decode().
int ff_vvc_pred_mode_ibc_flag | ( | VVCLocalContext * | lc, |
const int | is_chroma | ||
) |
Definition at line 1274 of file cabac.c.
Referenced by pred_mode_decode().
|
static |
Definition at line 1287 of file cabac.c.
Referenced by ff_vvc_intra_mip_flag().
int ff_vvc_intra_mip_flag | ( | VVCLocalContext * | lc, |
const uint8_t * | intra_mip_flag | ||
) |
Definition at line 1294 of file cabac.c.
Referenced by intra_luma_pred_modes().
int ff_vvc_intra_mip_transposed_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1302 of file cabac.c.
Referenced by intra_luma_pred_modes().
int ff_vvc_intra_mip_mode | ( | VVCLocalContext * | lc | ) |
Definition at line 1307 of file cabac.c.
Referenced by intra_luma_pred_modes().
int ff_vvc_intra_luma_ref_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 1316 of file cabac.c.
Referenced by intra_luma_pred_modes().
int ff_vvc_intra_subpartitions_mode_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1326 of file cabac.c.
Referenced by intra_luma_pred_modes().
enum IspType ff_vvc_isp_split_type | ( | VVCLocalContext * | lc, |
const int | intra_subpartitions_mode_flag | ||
) |
Definition at line 1331 of file cabac.c.
Referenced by intra_luma_pred_modes().
int ff_vvc_intra_luma_mpm_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1338 of file cabac.c.
Referenced by luma_intra_pred_mode().
int ff_vvc_intra_luma_not_planar_flag | ( | VVCLocalContext * | lc, |
const int | intra_subpartitions_mode_flag | ||
) |
Definition at line 1343 of file cabac.c.
Referenced by luma_intra_pred_mode().
int ff_vvc_intra_luma_mpm_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 1348 of file cabac.c.
Referenced by luma_intra_pred_mode().
int ff_vvc_intra_luma_mpm_remainder | ( | VVCLocalContext * | lc | ) |
Definition at line 1356 of file cabac.c.
Referenced by luma_intra_pred_mode().
int ff_vvc_cclm_mode_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1361 of file cabac.c.
Referenced by intra_chroma_pred_modes().
int ff_vvc_cclm_mode_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 1366 of file cabac.c.
Referenced by intra_chroma_pred_modes().
int ff_vvc_intra_chroma_pred_mode | ( | VVCLocalContext * | lc | ) |
Definition at line 1373 of file cabac.c.
Referenced by intra_chroma_pred_modes().
int ff_vvc_palette_predictor_run | ( | VVCLocalContext * | lc | ) |
Definition at line 1380 of file cabac.c.
Referenced by palette_predicted().
int ff_vvc_num_signalled_palette_entries | ( | VVCLocalContext * | lc | ) |
Definition at line 1385 of file cabac.c.
Referenced by palette_signaled().
int ff_vvc_new_palette_entries | ( | VVCLocalContext * | lc, |
const int | bit_depth | ||
) |
Definition at line 1390 of file cabac.c.
Referenced by palette_signaled().
bool ff_vvc_palette_escape_val_present_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1395 of file cabac.c.
Referenced by hls_palette_coding().
bool ff_vvc_palette_transpose_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1400 of file cabac.c.
Referenced by hls_palette_coding().
bool ff_vvc_run_copy_flag | ( | VVCLocalContext * | lc, |
const int | prev_run_type, | ||
const int | prev_run_position, | ||
const int | cur_pos | ||
) |
Definition at line 1405 of file cabac.c.
Referenced by palette_subblock_data().
bool ff_vvc_copy_above_palette_indices_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1417 of file cabac.c.
Referenced by palette_subblock_data().
int ff_vvc_palette_idx_idc | ( | VVCLocalContext * | lc, |
const int | max_palette_index, | ||
const bool | adjust | ||
) |
Definition at line 1422 of file cabac.c.
Referenced by palette_subblock_data().
int ff_vvc_palette_escape_val | ( | VVCLocalContext * | lc | ) |
Definition at line 1427 of file cabac.c.
Referenced by palette_subblock_data().
int ff_vvc_general_merge_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1432 of file cabac.c.
Referenced by inter_data().
|
static |
Definition at line 1437 of file cabac.c.
Referenced by ff_vvc_inter_affine_flag(), and ff_vvc_merge_subblock_flag().
int ff_vvc_merge_subblock_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1448 of file cabac.c.
Referenced by hls_merge_data().
int ff_vvc_merge_subblock_idx | ( | VVCLocalContext * | lc, |
const int | max_num_subblock_merge_cand | ||
) |
Definition at line 1454 of file cabac.c.
Referenced by merge_data_subblock().
int ff_vvc_regular_merge_flag | ( | VVCLocalContext * | lc, |
const int | cu_skip_flag | ||
) |
Definition at line 1464 of file cabac.c.
Referenced by merge_data_block().
int ff_vvc_mmvd_merge_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1470 of file cabac.c.
Referenced by merge_data_regular().
int ff_vvc_mmvd_cand_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1475 of file cabac.c.
Referenced by merge_data_regular().
|
static |
Definition at line 1480 of file cabac.c.
Referenced by ff_vvc_mmvd_offset_coding().
|
static |
Definition at line 1490 of file cabac.c.
Referenced by ff_vvc_mmvd_offset_coding().
void ff_vvc_mmvd_offset_coding | ( | VVCLocalContext * | lc, |
Mv * | mmvd_offset, | ||
const int | ph_mmvd_fullpel_only_flag | ||
) |
Definition at line 1495 of file cabac.c.
Referenced by merge_data_regular().
|
static |
Definition at line 1505 of file cabac.c.
Referenced by ff_vvc_merge_idx().
int ff_vvc_merge_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 1522 of file cabac.c.
Referenced by merge_data_ciip(), merge_data_ibc(), and merge_data_regular().
int ff_vvc_merge_gpm_partition_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 1537 of file cabac.c.
Referenced by merge_data_gpm().
int ff_vvc_merge_gpm_idx | ( | VVCLocalContext * | lc, |
const int | idx | ||
) |
Definition at line 1542 of file cabac.c.
Referenced by merge_data_gpm().
int ff_vvc_ciip_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1556 of file cabac.c.
Referenced by ciip_flag_decode().
PredFlag ff_vvc_pred_flag | ( | VVCLocalContext * | lc, |
const int | is_b | ||
) |
Definition at line 1561 of file cabac.c.
Referenced by mvp_data().
int ff_vvc_inter_affine_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1576 of file cabac.c.
Referenced by mvp_data().
int ff_vvc_cu_affine_type_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1582 of file cabac.c.
Referenced by mvp_data().
int ff_vvc_sym_mvd_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1587 of file cabac.c.
Referenced by mvp_data().
int ff_vvc_ref_idx_lx | ( | VVCLocalContext * | lc, |
const uint8_t | nb_refs | ||
) |
Definition at line 1592 of file cabac.c.
Referenced by ref_idx_decode().
int ff_vvc_abs_mvd_greater0_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1607 of file cabac.c.
Referenced by hls_mvd_coding().
int ff_vvc_abs_mvd_greater1_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1612 of file cabac.c.
Referenced by hls_mvd_coding().
int ff_vvc_abs_mvd_minus2 | ( | VVCLocalContext * | lc | ) |
Definition at line 1617 of file cabac.c.
Referenced by hls_mvd_coding().
int ff_vvc_mvd_sign_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1622 of file cabac.c.
Referenced by hls_mvd_coding().
int ff_vvc_mvp_lx_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1627 of file cabac.c.
Referenced by mvp_data(), and mvp_data_ibc().
|
static |
Definition at line 1632 of file cabac.c.
Referenced by ff_vvc_amvr_shift().
|
static |
Definition at line 1637 of file cabac.c.
Referenced by ff_vvc_amvr_shift().
int ff_vvc_amvr_shift | ( | VVCLocalContext * | lc, |
const int | inter_affine_flag, | ||
const PredMode | pred_mode, | ||
const int | has_amvr_flag | ||
) |
Definition at line 1648 of file cabac.c.
Referenced by mvp_data(), and mvp_data_ibc().
int ff_vvc_bcw_idx | ( | VVCLocalContext * | lc, |
const int | no_backward_pred_flag | ||
) |
Definition at line 1671 of file cabac.c.
Referenced by bcw_idx_decode().
int ff_vvc_tu_cb_coded_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1682 of file cabac.c.
Referenced by hls_transform_unit().
int ff_vvc_tu_cr_coded_flag | ( | VVCLocalContext * | lc, |
int | tu_cb_coded_flag | ||
) |
Definition at line 1687 of file cabac.c.
Referenced by hls_transform_unit().
int ff_vvc_tu_y_coded_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1692 of file cabac.c.
Referenced by tu_y_coded_flag_decode().
int ff_vvc_cu_act_enabled_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1706 of file cabac.c.
Referenced by hls_coding_unit().
int ff_vvc_cu_qp_delta_abs | ( | VVCLocalContext * | lc | ) |
Definition at line 1711 of file cabac.c.
Referenced by set_qp_y().
int ff_vvc_cu_qp_delta_sign_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1739 of file cabac.c.
Referenced by set_qp_y().
int ff_vvc_cu_chroma_qp_offset_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1744 of file cabac.c.
Referenced by chroma_qp_offset_decode().
int ff_vvc_cu_chroma_qp_offset_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 1749 of file cabac.c.
Referenced by chroma_qp_offset_decode().
|
static |
Definition at line 1758 of file cabac.c.
Referenced by last_significant_coeff_x_prefix_decode(), and last_significant_coeff_y_prefix_decode().
|
static |
Definition at line 1780 of file cabac.c.
Referenced by last_significant_coeff_x_y_decode().
|
static |
Definition at line 1786 of file cabac.c.
Referenced by last_significant_coeff_x_y_decode().
|
static |
Definition at line 1792 of file cabac.c.
Referenced by last_significant_coeff_x_y_decode().
int ff_vvc_tu_joint_cbcr_residual_flag | ( | VVCLocalContext * | lc, |
const int | tu_cb_coded_flag, | ||
const int | tu_cr_coded_flag | ||
) |
Definition at line 1803 of file cabac.c.
Referenced by hls_transform_unit().
int ff_vvc_transform_skip_flag | ( | VVCLocalContext * | lc, |
const int | inc | ||
) |
Definition at line 1808 of file cabac.c.
Referenced by hls_transform_unit().
|
static |
Definition at line 1814 of file cabac.c.
Referenced by abs_get_rice_param(), get_gtx_flag_inc(), and sig_coeff_flag_decode().
|
static |
Definition at line 1835 of file cabac.c.
Referenced by sig_coeff_flag_decode().
|
static |
Definition at line 1846 of file cabac.c.
Referenced by residual_coding_subblock().
|
static |
Definition at line 1869 of file cabac.c.
Referenced by residual_coding_subblock().
|
static |
Definition at line 1874 of file cabac.c.
Referenced by residual_coding_subblock().
|
static |
Definition at line 1879 of file cabac.c.
Referenced by residual_ts_coding_subblock().
|
static |
Definition at line 1885 of file cabac.c.
Referenced by residual_coding_subblock(), and residual_ts_coding_subblock().
|
static |
Definition at line 1906 of file cabac.c.
Referenced by residual_coding_subblock(), and residual_ts_coding_subblock().
|
static |
Definition at line 1929 of file cabac.c.
Referenced by abs_remainder_decode(), and dec_abs_level_decode().
|
static |
Definition at line 1955 of file cabac.c.
Referenced by abs_remainder_decode(), abs_remainder_ts_decode(), and dec_abs_level_decode().
|
static |
Definition at line 1977 of file cabac.c.
Referenced by residual_coding_subblock().
|
static |
Definition at line 1992 of file cabac.c.
Referenced by residual_ts_coding_subblock().
|
static |
Definition at line 2001 of file cabac.c.
Referenced by residual_coding_subblock(), and residual_ts_coding_subblock().
|
static |
Definition at line 2007 of file cabac.c.
Referenced by residual_ts_coding_subblock().
|
static |
Definition at line 2026 of file cabac.c.
Referenced by residual_ts_coding_subblock().
|
static |
Definition at line 2042 of file cabac.c.
Referenced by residual_ts_coding_subblock().
|
static |
Definition at line 2052 of file cabac.c.
Referenced by residual_coding_subblock().
|
static |
Definition at line 2068 of file cabac.c.
Referenced by residual_coding_subblock().
|
static |
Definition at line 2078 of file cabac.c.
Referenced by hls_residual_coding(), and hls_residual_ts_coding().
|
static |
|
static |
Definition at line 2240 of file cabac.c.
Referenced by ff_vvc_residual_coding().
|
inlinestatic |
Definition at line 2254 of file cabac.c.
Referenced by hls_residual_coding().
|
static |
Definition at line 2398 of file cabac.c.
Referenced by hls_residual_coding().
|
static |
Definition at line 2414 of file cabac.c.
Referenced by hls_residual_coding().
|
static |
Definition at line 2445 of file cabac.c.
Referenced by ff_vvc_residual_coding().
int ff_vvc_residual_coding | ( | VVCLocalContext * | lc, |
TransformBlock * | tb | ||
) |
Definition at line 2493 of file cabac.c.
Referenced by hls_transform_unit().
int ff_vvc_cu_coded_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 2501 of file cabac.c.
Referenced by hls_coding_unit().
int ff_vvc_sbt_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 2506 of file cabac.c.
Referenced by sbt_info().
int ff_vvc_sbt_quad_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 2514 of file cabac.c.
Referenced by sbt_info().
int ff_vvc_sbt_horizontal_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 2519 of file cabac.c.
Referenced by sbt_info().
int ff_vvc_sbt_pos_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 2527 of file cabac.c.
Referenced by sbt_info().
int ff_vvc_lfnst_idx | ( | VVCLocalContext * | lc, |
const int | inc | ||
) |
Definition at line 2532 of file cabac.c.
Referenced by lfnst_idx_decode().
int ff_vvc_mts_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 2541 of file cabac.c.
Referenced by mts_idx_decode().
int ff_vvc_end_of_slice_flag_decode | ( | VVCLocalContext * | lc | ) |
Definition at line 2551 of file cabac.c.
Referenced by hls_coding_tree_unit().
int ff_vvc_end_of_tile_one_bit | ( | VVCLocalContext * | lc | ) |
Definition at line 2556 of file cabac.c.
Referenced by hls_coding_tree_unit().
int ff_vvc_end_of_subset_one_bit | ( | VVCLocalContext * | lc | ) |
Definition at line 2561 of file cabac.c.
Referenced by hls_coding_tree_unit().
|
static |
Definition at line 111 of file cabac.c.
Referenced by cabac_init_state().
|
static |
Definition at line 2048 of file cabac.c.
Referenced by residual_coding_subblock().