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(), and ff_vvc_intra_mip_mode().
|
static |
Definition at line 932 of file cabac.c.
Referenced by abs_decode(), and ff_vvc_abs_mvd_minus2().
|
static |
Definition at line 951 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 969 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 1022 of file cabac.c.
Referenced by alf_params().
int ff_vvc_alf_use_aps_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1037 of file cabac.c.
Referenced by alf_params().
int ff_vvc_alf_luma_prev_filter_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 1042 of file cabac.c.
Referenced by alf_params().
int ff_vvc_alf_luma_fixed_filter_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 1047 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 1052 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 1062 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 1084 of file cabac.c.
Referenced by hls_coding_tree().
|
static |
Definition at line 1106 of file cabac.c.
Referenced by ff_vvc_split_mode().
|
static |
Definition at line 1120 of file cabac.c.
Referenced by ff_vvc_split_mode().
|
static |
Definition at line 1156 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 1162 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 1196 of file cabac.c.
Referenced by mode_type_decode().
int ff_vvc_pred_mode_flag | ( | VVCLocalContext * | lc, |
const int | is_chroma | ||
) |
Definition at line 1206 of file cabac.c.
Referenced by pred_mode_decode().
int ff_vvc_pred_mode_plt_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1217 of file cabac.c.
Referenced by hls_coding_unit().
int ff_vvc_intra_bdpcm_luma_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1222 of file cabac.c.
Referenced by intra_luma_pred_modes().
int ff_vvc_intra_bdpcm_luma_dir_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1227 of file cabac.c.
Referenced by intra_luma_pred_modes().
int ff_vvc_intra_bdpcm_chroma_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1232 of file cabac.c.
Referenced by intra_chroma_pred_modes().
int ff_vvc_intra_bdpcm_chroma_dir_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1237 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 1242 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 1248 of file cabac.c.
Referenced by pred_mode_decode().
|
static |
Definition at line 1261 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 1268 of file cabac.c.
Referenced by intra_luma_pred_modes().
int ff_vvc_intra_mip_transposed_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1276 of file cabac.c.
Referenced by intra_luma_pred_modes().
int ff_vvc_intra_mip_mode | ( | VVCLocalContext * | lc | ) |
Definition at line 1281 of file cabac.c.
Referenced by intra_luma_pred_modes().
int ff_vvc_intra_luma_ref_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 1290 of file cabac.c.
Referenced by intra_luma_pred_modes().
int ff_vvc_intra_subpartitions_mode_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1300 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 1305 of file cabac.c.
Referenced by intra_luma_pred_modes().
int ff_vvc_intra_luma_mpm_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1312 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 1317 of file cabac.c.
Referenced by luma_intra_pred_mode().
int ff_vvc_intra_luma_mpm_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 1322 of file cabac.c.
Referenced by luma_intra_pred_mode().
int ff_vvc_intra_luma_mpm_remainder | ( | VVCLocalContext * | lc | ) |
Definition at line 1330 of file cabac.c.
Referenced by luma_intra_pred_mode().
int ff_vvc_cclm_mode_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1335 of file cabac.c.
Referenced by intra_chroma_pred_modes().
int ff_vvc_cclm_mode_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 1340 of file cabac.c.
Referenced by intra_chroma_pred_modes().
int ff_vvc_intra_chroma_pred_mode | ( | VVCLocalContext * | lc | ) |
Definition at line 1347 of file cabac.c.
Referenced by intra_chroma_pred_modes().
int ff_vvc_general_merge_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1354 of file cabac.c.
Referenced by inter_data().
|
static |
Definition at line 1359 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 1370 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 1376 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 1386 of file cabac.c.
Referenced by merge_data_block().
int ff_vvc_mmvd_merge_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1392 of file cabac.c.
Referenced by merge_data_regular().
int ff_vvc_mmvd_cand_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1397 of file cabac.c.
Referenced by merge_data_regular().
|
static |
Definition at line 1402 of file cabac.c.
Referenced by ff_vvc_mmvd_offset_coding().
|
static |
Definition at line 1412 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 1417 of file cabac.c.
Referenced by merge_data_regular().
|
static |
Definition at line 1427 of file cabac.c.
Referenced by ff_vvc_merge_idx().
int ff_vvc_merge_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 1444 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 1459 of file cabac.c.
Referenced by merge_data_gpm().
int ff_vvc_merge_gpm_idx | ( | VVCLocalContext * | lc, |
const int | idx | ||
) |
Definition at line 1469 of file cabac.c.
Referenced by merge_data_gpm().
int ff_vvc_ciip_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1483 of file cabac.c.
Referenced by ciip_flag_decode().
PredFlag ff_vvc_pred_flag | ( | VVCLocalContext * | lc, |
const int | is_b | ||
) |
Definition at line 1488 of file cabac.c.
Referenced by mvp_data().
int ff_vvc_inter_affine_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1503 of file cabac.c.
Referenced by mvp_data().
int ff_vvc_cu_affine_type_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1509 of file cabac.c.
Referenced by mvp_data().
int ff_vvc_sym_mvd_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1514 of file cabac.c.
Referenced by mvp_data().
int ff_vvc_ref_idx_lx | ( | VVCLocalContext * | lc, |
const uint8_t | nb_refs | ||
) |
Definition at line 1519 of file cabac.c.
Referenced by ref_idx_decode().
int ff_vvc_abs_mvd_greater0_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1534 of file cabac.c.
Referenced by hls_mvd_coding().
int ff_vvc_abs_mvd_greater1_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1539 of file cabac.c.
Referenced by hls_mvd_coding().
int ff_vvc_abs_mvd_minus2 | ( | VVCLocalContext * | lc | ) |
Definition at line 1544 of file cabac.c.
Referenced by hls_mvd_coding().
int ff_vvc_mvd_sign_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1549 of file cabac.c.
Referenced by hls_mvd_coding().
int ff_vvc_mvp_lx_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1554 of file cabac.c.
Referenced by mvp_data(), and mvp_data_ibc().
|
static |
Definition at line 1559 of file cabac.c.
Referenced by ff_vvc_amvr_shift().
|
static |
Definition at line 1564 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 1575 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 1598 of file cabac.c.
Referenced by bcw_idx_decode().
int ff_vvc_tu_cb_coded_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1609 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 1614 of file cabac.c.
Referenced by hls_transform_unit().
int ff_vvc_tu_y_coded_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1619 of file cabac.c.
Referenced by tu_y_coded_flag_decode().
int ff_vvc_cu_qp_delta_abs | ( | VVCLocalContext * | lc | ) |
Definition at line 1633 of file cabac.c.
Referenced by set_qp_y().
int ff_vvc_cu_qp_delta_sign_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1661 of file cabac.c.
Referenced by set_qp_y().
int ff_vvc_cu_chroma_qp_offset_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 1666 of file cabac.c.
Referenced by chroma_qp_offset_decode().
int ff_vvc_cu_chroma_qp_offset_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 1671 of file cabac.c.
Referenced by chroma_qp_offset_decode().
|
static |
Definition at line 1680 of file cabac.c.
Referenced by last_significant_coeff_x_prefix_decode(), and last_significant_coeff_y_prefix_decode().
|
static |
Definition at line 1702 of file cabac.c.
Referenced by last_significant_coeff_x_y_decode().
|
static |
Definition at line 1708 of file cabac.c.
Referenced by last_significant_coeff_x_y_decode().
|
static |
Definition at line 1714 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 1725 of file cabac.c.
Referenced by hls_transform_unit().
int ff_vvc_transform_skip_flag | ( | VVCLocalContext * | lc, |
const int | inc | ||
) |
Definition at line 1730 of file cabac.c.
Referenced by hls_transform_unit().
|
static |
Definition at line 1736 of file cabac.c.
Referenced by abs_get_rice_param(), get_gtx_flag_inc(), and sig_coeff_flag_decode().
|
static |
Definition at line 1757 of file cabac.c.
Referenced by sig_coeff_flag_decode().
|
static |
Definition at line 1768 of file cabac.c.
Referenced by residual_coding_subblock().
|
static |
Definition at line 1791 of file cabac.c.
Referenced by residual_coding_subblock().
|
static |
Definition at line 1796 of file cabac.c.
Referenced by residual_coding_subblock().
|
static |
Definition at line 1801 of file cabac.c.
Referenced by residual_ts_coding_subblock().
|
static |
Definition at line 1807 of file cabac.c.
Referenced by residual_coding_subblock(), and residual_ts_coding_subblock().
|
static |
Definition at line 1828 of file cabac.c.
Referenced by residual_coding_subblock(), and residual_ts_coding_subblock().
|
static |
Definition at line 1851 of file cabac.c.
Referenced by abs_remainder_decode(), and dec_abs_level_decode().
|
static |
Definition at line 1877 of file cabac.c.
Referenced by abs_remainder_decode(), abs_remainder_ts_decode(), and dec_abs_level_decode().
|
static |
Definition at line 1899 of file cabac.c.
Referenced by residual_coding_subblock().
|
static |
Definition at line 1914 of file cabac.c.
Referenced by residual_ts_coding_subblock().
|
static |
Definition at line 1923 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 residual_ts_coding_subblock().
|
static |
Definition at line 1948 of file cabac.c.
Referenced by residual_ts_coding_subblock().
|
static |
Definition at line 1964 of file cabac.c.
Referenced by residual_ts_coding_subblock().
|
static |
Definition at line 1974 of file cabac.c.
Referenced by residual_coding_subblock().
|
static |
Definition at line 1990 of file cabac.c.
Referenced by residual_coding_subblock().
|
static |
Definition at line 2000 of file cabac.c.
Referenced by hls_residual_coding(), and hls_residual_ts_coding().
|
static |
|
static |
Definition at line 2162 of file cabac.c.
Referenced by ff_vvc_residual_coding().
|
inlinestatic |
Definition at line 2176 of file cabac.c.
Referenced by hls_residual_coding().
|
static |
Definition at line 2320 of file cabac.c.
Referenced by hls_residual_coding().
|
static |
Definition at line 2336 of file cabac.c.
Referenced by hls_residual_coding().
|
static |
Definition at line 2367 of file cabac.c.
Referenced by ff_vvc_residual_coding().
int ff_vvc_residual_coding | ( | VVCLocalContext * | lc, |
TransformBlock * | tb | ||
) |
Definition at line 2415 of file cabac.c.
Referenced by hls_transform_unit().
int ff_vvc_cu_coded_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 2423 of file cabac.c.
Referenced by hls_coding_unit().
int ff_vvc_sbt_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 2428 of file cabac.c.
Referenced by sbt_info().
int ff_vvc_sbt_quad_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 2436 of file cabac.c.
Referenced by sbt_info().
int ff_vvc_sbt_horizontal_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 2441 of file cabac.c.
Referenced by sbt_info().
int ff_vvc_sbt_pos_flag | ( | VVCLocalContext * | lc | ) |
Definition at line 2449 of file cabac.c.
Referenced by sbt_info().
int ff_vvc_lfnst_idx | ( | VVCLocalContext * | lc, |
const int | inc | ||
) |
Definition at line 2454 of file cabac.c.
Referenced by lfnst_idx_decode().
int ff_vvc_mts_idx | ( | VVCLocalContext * | lc | ) |
Definition at line 2463 of file cabac.c.
Referenced by mts_idx_decode().
int ff_vvc_end_of_slice_flag_decode | ( | VVCLocalContext * | lc | ) |
Definition at line 2473 of file cabac.c.
Referenced by hls_coding_tree_unit().
int ff_vvc_end_of_tile_one_bit | ( | VVCLocalContext * | lc | ) |
Definition at line 2478 of file cabac.c.
Referenced by hls_coding_tree_unit().
int ff_vvc_end_of_subset_one_bit | ( | VVCLocalContext * | lc | ) |
Definition at line 2483 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 1970 of file cabac.c.
Referenced by residual_coding_subblock().