FFmpeg
|
#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "cabac_functions.h"
#include "hevc_data.h"
#include "hevc.h"
#include "hevcdec.h"
Go to the source code of this file.
Macros | |
#define | CABAC_MAX_BIN 31 |
#define | CABAC_ELEMS(ELEM) |
#define | OFFSET(NAME, NUM_BINS) |
#define | CNU 154 |
#define | GET_CABAC(ctx) get_cabac(&lc->cc, &lc->cabac_state[ctx]) |
#define | GET_COORD(offset, n) |
Enumerations | |
enum | |
Offset to ctxIdx 0 in init_values and states. More... | |
Variables | |
static const uint8_t | init_values [3][HEVC_CONTEXTS] |
Indexed by init_type. More... | |
static const uint8_t | scan_1x1 [1] |
static const uint8_t | horiz_scan2x2_x [4] |
static const uint8_t | horiz_scan2x2_y [4] |
static const uint8_t | horiz_scan4x4_x [16] |
static const uint8_t | horiz_scan4x4_y [16] |
static const uint8_t | horiz_scan8x8_inv [8][8] |
static const uint8_t | diag_scan2x2_x [4] |
static const uint8_t | diag_scan2x2_y [4] |
static const uint8_t | diag_scan2x2_inv [2][2] |
static const uint8_t | diag_scan4x4_inv [4][4] |
static const uint8_t | diag_scan8x8_inv [8][8] |
#define CABAC_MAX_BIN 31 |
Definition at line 32 of file hevc_cabac.c.
#define CABAC_ELEMS | ( | ELEM | ) |
Definition at line 35 of file hevc_cabac.c.
#define OFFSET | ( | NAME, | |
NUM_BINS | |||
) |
Definition at line 90 of file hevc_cabac.c.
#define CNU 154 |
Definition at line 96 of file hevc_cabac.c.
Definition at line 521 of file hevc_cabac.c.
#define GET_COORD | ( | offset, | |
n | |||
) |
anonymous enum |
Offset to ctxIdx 0 in init_values and states.
Definition at line 89 of file hevc_cabac.c.
void ff_hevc_save_states | ( | HEVCLocalContext * | lc, |
int | ctb_addr_ts | ||
) |
Definition at line 402 of file hevc_cabac.c.
Referenced by hls_decode_entry(), and hls_decode_entry_wpp().
|
static |
Definition at line 417 of file hevc_cabac.c.
Referenced by ff_hevc_cabac_init().
|
static |
Definition at line 425 of file hevc_cabac.c.
Referenced by ff_hevc_cabac_init().
|
static |
Definition at line 430 of file hevc_cabac.c.
Referenced by ff_hevc_cabac_init().
|
static |
Definition at line 440 of file hevc_cabac.c.
Referenced by ff_hevc_cabac_init().
int ff_hevc_cabac_init | ( | HEVCLocalContext * | lc, |
int | ctb_addr_ts | ||
) |
Definition at line 464 of file hevc_cabac.c.
Referenced by hls_decode_entry(), and hls_decode_entry_wpp().
int ff_hevc_sao_merge_flag_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 523 of file hevc_cabac.c.
Referenced by hls_sao_param().
int ff_hevc_sao_type_idx_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 528 of file hevc_cabac.c.
Referenced by hls_sao_param().
int ff_hevc_sao_band_position_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 538 of file hevc_cabac.c.
Referenced by hls_sao_param().
int ff_hevc_sao_offset_abs_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 548 of file hevc_cabac.c.
Referenced by hls_sao_param().
int ff_hevc_sao_offset_sign_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 558 of file hevc_cabac.c.
Referenced by hls_sao_param().
int ff_hevc_sao_eo_class_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 563 of file hevc_cabac.c.
Referenced by hls_sao_param().
int ff_hevc_end_of_slice_flag_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 570 of file hevc_cabac.c.
Referenced by hls_coding_quadtree().
int ff_hevc_cu_transquant_bypass_flag_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 575 of file hevc_cabac.c.
Referenced by hls_coding_unit().
Definition at line 580 of file hevc_cabac.c.
Referenced by hls_coding_unit().
int ff_hevc_cu_qp_delta_abs | ( | HEVCLocalContext * | lc | ) |
Definition at line 596 of file hevc_cabac.c.
Referenced by hls_transform_unit().
int ff_hevc_cu_qp_delta_sign_flag | ( | HEVCLocalContext * | lc | ) |
Definition at line 623 of file hevc_cabac.c.
Referenced by hls_transform_unit().
int ff_hevc_cu_chroma_qp_offset_flag | ( | HEVCLocalContext * | lc | ) |
Definition at line 628 of file hevc_cabac.c.
Referenced by hls_transform_unit().
int ff_hevc_cu_chroma_qp_offset_idx | ( | HEVCLocalContext * | lc | ) |
Definition at line 633 of file hevc_cabac.c.
Referenced by hls_transform_unit().
int ff_hevc_pred_mode_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 644 of file hevc_cabac.c.
Referenced by hls_coding_unit().
int ff_hevc_split_coding_unit_flag_decode | ( | HEVCLocalContext * | lc, |
int | ct_depth, | ||
int | x0, | ||
int | y0 | ||
) |
Definition at line 649 of file hevc_cabac.c.
Referenced by hls_coding_quadtree().
int ff_hevc_part_mode_decode | ( | HEVCLocalContext * | lc, |
int | log2_cb_size | ||
) |
Definition at line 670 of file hevc_cabac.c.
Referenced by hls_coding_unit().
int ff_hevc_pcm_flag_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 707 of file hevc_cabac.c.
Referenced by hls_coding_unit().
int ff_hevc_prev_intra_luma_pred_flag_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 712 of file hevc_cabac.c.
Referenced by intra_prediction_unit().
int ff_hevc_mpm_idx_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 717 of file hevc_cabac.c.
Referenced by intra_prediction_unit().
int ff_hevc_rem_intra_luma_pred_mode_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 725 of file hevc_cabac.c.
Referenced by intra_prediction_unit().
int ff_hevc_intra_chroma_pred_mode_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 735 of file hevc_cabac.c.
Referenced by intra_prediction_unit().
int ff_hevc_merge_idx_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 746 of file hevc_cabac.c.
Referenced by hls_prediction_unit().
int ff_hevc_merge_flag_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 757 of file hevc_cabac.c.
Referenced by hls_prediction_unit().
int ff_hevc_inter_pred_idc_decode | ( | HEVCLocalContext * | lc, |
int | nPbW, | ||
int | nPbH | ||
) |
Definition at line 762 of file hevc_cabac.c.
Referenced by hevc_luma_mv_mvp_mode().
int ff_hevc_ref_idx_lx_decode | ( | HEVCLocalContext * | lc, |
int | num_ref_idx_lx | ||
) |
Definition at line 772 of file hevc_cabac.c.
Referenced by hevc_luma_mv_mvp_mode().
int ff_hevc_mvp_lx_flag_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 788 of file hevc_cabac.c.
Referenced by hevc_luma_mv_mvp_mode().
int ff_hevc_no_residual_syntax_flag_decode | ( | HEVCLocalContext * | lc | ) |
Definition at line 793 of file hevc_cabac.c.
Referenced by hls_coding_unit().
|
static |
Definition at line 798 of file hevc_cabac.c.
Referenced by ff_hevc_hls_mvd_coding().
|
static |
Definition at line 803 of file hevc_cabac.c.
Referenced by ff_hevc_hls_mvd_coding().
|
static |
Definition at line 808 of file hevc_cabac.c.
Referenced by ff_hevc_hls_mvd_coding().
|
static |
Definition at line 826 of file hevc_cabac.c.
Referenced by ff_hevc_hls_mvd_coding().
int ff_hevc_split_transform_flag_decode | ( | HEVCLocalContext * | lc, |
int | log2_trafo_size | ||
) |
Definition at line 831 of file hevc_cabac.c.
Referenced by hls_transform_tree().
int ff_hevc_cbf_cb_cr_decode | ( | HEVCLocalContext * | lc, |
int | trafo_depth | ||
) |
Definition at line 836 of file hevc_cabac.c.
Referenced by hls_transform_tree().
int ff_hevc_cbf_luma_decode | ( | HEVCLocalContext * | lc, |
int | trafo_depth | ||
) |
Definition at line 841 of file hevc_cabac.c.
Referenced by hls_transform_tree().
|
static |
Definition at line 846 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 851 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 856 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
int ff_hevc_log2_res_scale_abs | ( | HEVCLocalContext * | lc, |
int | idx | ||
) |
Definition at line 861 of file hevc_cabac.c.
Referenced by hls_cross_component_pred().
int ff_hevc_res_scale_sign_flag | ( | HEVCLocalContext * | lc, |
int | idx | ||
) |
Definition at line 871 of file hevc_cabac.c.
Referenced by hls_cross_component_pred().
|
static |
Definition at line 876 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 902 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 914 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 922 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 929 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 934 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 943 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 951 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 981 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
void ff_hevc_hls_residual_coding | ( | HEVCLocalContext * | lc, |
int | x0, | ||
int | y0, | ||
int | log2_trafo_size, | ||
enum ScanType | scan_idx, | ||
int | c_idx | ||
) |
Definition at line 991 of file hevc_cabac.c.
Referenced by hls_transform_unit().
void ff_hevc_hls_mvd_coding | ( | HEVCLocalContext * | lc, |
int | x0, | ||
int | y0, | ||
int | log2_cb_size | ||
) |
Definition at line 1501 of file hevc_cabac.c.
Referenced by hevc_luma_mv_mvp_mode().
|
static |
Indexed by init_type.
Definition at line 100 of file hevc_cabac.c.
Referenced by cabac_init_state().
|
static |
Definition at line 334 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 338 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 342 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 346 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 353 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 360 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 371 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 375 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 379 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 384 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().
|
static |
Definition at line 391 of file hevc_cabac.c.
Referenced by ff_hevc_hls_residual_coding().