FFmpeg
Macros | Enumerations | Functions | Variables
cabac.c File Reference
#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "cabac_functions.h"
#include "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...
 

Functions

void ff_hevc_save_states (HEVCLocalContext *lc, const HEVCPPS *pps, int ctb_addr_ts)
 
static void load_states (HEVCLocalContext *lc, const HEVCSPS *sps)
 
static int cabac_reinit (HEVCLocalContext *lc)
 
static void cabac_init_state (HEVCLocalContext *lc, const HEVCContext *s)
 
int ff_hevc_cabac_init (HEVCLocalContext *lc, const HEVCPPS *pps, int ctb_addr_ts, const uint8_t *data, size_t size, int is_wpp)
 
int ff_hevc_sao_merge_flag_decode (HEVCLocalContext *lc)
 
int ff_hevc_sao_type_idx_decode (HEVCLocalContext *lc)
 
int ff_hevc_sao_band_position_decode (HEVCLocalContext *lc)
 
int ff_hevc_sao_offset_abs_decode (HEVCLocalContext *lc, int bit_depth)
 
int ff_hevc_sao_offset_sign_decode (HEVCLocalContext *lc)
 
int ff_hevc_sao_eo_class_decode (HEVCLocalContext *lc)
 
int ff_hevc_end_of_slice_flag_decode (HEVCLocalContext *lc)
 
int ff_hevc_cu_transquant_bypass_flag_decode (HEVCLocalContext *lc)
 
int ff_hevc_skip_flag_decode (HEVCLocalContext *lc, uint8_t *skip_flag, int x0, int y0, int x_cb, int y_cb, int min_cb_width)
 
int ff_hevc_cu_qp_delta_abs (HEVCLocalContext *lc)
 
int ff_hevc_cu_qp_delta_sign_flag (HEVCLocalContext *lc)
 
int ff_hevc_cu_chroma_qp_offset_flag (HEVCLocalContext *lc)
 
int ff_hevc_cu_chroma_qp_offset_idx (HEVCLocalContext *lc, int chroma_qp_offset_list_len_minus1)
 
int ff_hevc_pred_mode_decode (HEVCLocalContext *lc)
 
int ff_hevc_split_coding_unit_flag_decode (HEVCLocalContext *lc, uint8_t *tab_ct_depth, const HEVCSPS *sps, int ct_depth, int x0, int y0)
 
int ff_hevc_part_mode_decode (HEVCLocalContext *lc, const HEVCSPS *sps, int log2_cb_size)
 
int ff_hevc_pcm_flag_decode (HEVCLocalContext *lc)
 
int ff_hevc_prev_intra_luma_pred_flag_decode (HEVCLocalContext *lc)
 
int ff_hevc_mpm_idx_decode (HEVCLocalContext *lc)
 
int ff_hevc_rem_intra_luma_pred_mode_decode (HEVCLocalContext *lc)
 
int ff_hevc_intra_chroma_pred_mode_decode (HEVCLocalContext *lc)
 
int ff_hevc_merge_idx_decode (HEVCLocalContext *lc)
 
int ff_hevc_merge_flag_decode (HEVCLocalContext *lc)
 
int ff_hevc_inter_pred_idc_decode (HEVCLocalContext *lc, int nPbW, int nPbH)
 
int ff_hevc_ref_idx_lx_decode (HEVCLocalContext *lc, int num_ref_idx_lx)
 
int ff_hevc_mvp_lx_flag_decode (HEVCLocalContext *lc)
 
int ff_hevc_no_residual_syntax_flag_decode (HEVCLocalContext *lc)
 
static av_always_inline int abs_mvd_greater0_flag_decode (HEVCLocalContext *lc)
 
static av_always_inline int abs_mvd_greater1_flag_decode (HEVCLocalContext *lc)
 
static av_always_inline int mvd_decode (HEVCLocalContext *lc)
 
static av_always_inline int mvd_sign_flag_decode (HEVCLocalContext *lc)
 
int ff_hevc_split_transform_flag_decode (HEVCLocalContext *lc, int log2_trafo_size)
 
int ff_hevc_cbf_cb_cr_decode (HEVCLocalContext *lc, int trafo_depth)
 
int ff_hevc_cbf_luma_decode (HEVCLocalContext *lc, int trafo_depth)
 
static int hevc_transform_skip_flag_decode (HEVCLocalContext *lc, int c_idx)
 
static int explicit_rdpcm_flag_decode (HEVCLocalContext *lc, int c_idx)
 
static int explicit_rdpcm_dir_flag_decode (HEVCLocalContext *lc, int c_idx)
 
int ff_hevc_log2_res_scale_abs (HEVCLocalContext *lc, int idx)
 
int ff_hevc_res_scale_sign_flag (HEVCLocalContext *lc, int idx)
 
static av_always_inline void last_significant_coeff_xy_prefix_decode (HEVCLocalContext *lc, int c_idx, int log2_size, int *last_scx_prefix, int *last_scy_prefix)
 
static av_always_inline int last_significant_coeff_suffix_decode (HEVCLocalContext *lc, int last_significant_coeff_prefix)
 
static av_always_inline int significant_coeff_group_flag_decode (HEVCLocalContext *lc, int c_idx, int ctx_cg)
 
static av_always_inline int significant_coeff_flag_decode (HEVCLocalContext *lc, int x_c, int y_c, int offset, const uint8_t *ctx_idx_map)
 
static av_always_inline int significant_coeff_flag_decode_0 (HEVCLocalContext *lc, int c_idx, int offset)
 
static av_always_inline int coeff_abs_level_greater1_flag_decode (HEVCLocalContext *lc, int c_idx, int inc)
 
static av_always_inline int coeff_abs_level_greater2_flag_decode (HEVCLocalContext *lc, int c_idx, int inc)
 
static av_always_inline int coeff_abs_level_remaining_decode (HEVCLocalContext *lc, int rc_rice_param)
 
static av_always_inline int coeff_sign_flag_decode (HEVCLocalContext *lc, uint8_t nb)
 
void ff_hevc_hls_residual_coding (HEVCLocalContext *lc, const HEVCPPS *pps, int x0, int y0, int log2_trafo_size, enum ScanType scan_idx, int c_idx)
 
void ff_hevc_hls_mvd_coding (HEVCLocalContext *lc, int x0, int y0, int log2_cb_size)
 

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]
 

Macro Definition Documentation

◆ CABAC_MAX_BIN

#define CABAC_MAX_BIN   31

Definition at line 32 of file cabac.c.

◆ CABAC_ELEMS

#define CABAC_ELEMS (   ELEM)

Definition at line 35 of file cabac.c.

◆ OFFSET

#define OFFSET (   NAME,
  NUM_BINS 
)
Value:
NAME ## _OFFSET, \
NAME ## _END = NAME ## _OFFSET + NUM_BINS - 1,

Definition at line 90 of file cabac.c.

◆ CNU

#define CNU   154

Definition at line 96 of file cabac.c.

◆ GET_CABAC

#define GET_CABAC (   ctx)    get_cabac(&lc->cc, &lc->cabac_state[ctx])

Definition at line 514 of file cabac.c.

◆ GET_COORD

#define GET_COORD (   offset,
 
)
Value:
do { \
x_c = (x_cg << 2) + scan_x_off[n]; \
y_c = (y_cg << 2) + scan_y_off[n]; \
} while (0)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Offset to ctxIdx 0 in init_values and states.

Definition at line 89 of file cabac.c.

Function Documentation

◆ ff_hevc_save_states()

void ff_hevc_save_states ( HEVCLocalContext lc,
const HEVCPPS pps,
int  ctb_addr_ts 
)

Definition at line 402 of file cabac.c.

Referenced by hls_decode_entry(), and hls_decode_entry_wpp().

◆ load_states()

static void load_states ( HEVCLocalContext lc,
const HEVCSPS sps 
)
static

Definition at line 417 of file cabac.c.

Referenced by ff_hevc_cabac_init().

◆ cabac_reinit()

static int cabac_reinit ( HEVCLocalContext lc)
static

Definition at line 425 of file cabac.c.

Referenced by ff_hevc_cabac_init().

◆ cabac_init_state()

static void cabac_init_state ( HEVCLocalContext lc,
const HEVCContext s 
)
static

Definition at line 430 of file cabac.c.

Referenced by ff_hevc_cabac_init().

◆ ff_hevc_cabac_init()

int ff_hevc_cabac_init ( HEVCLocalContext lc,
const HEVCPPS pps,
int  ctb_addr_ts,
const uint8_t *  data,
size_t  size,
int  is_wpp 
)

Definition at line 454 of file cabac.c.

Referenced by hls_decode_entry(), and hls_decode_entry_wpp().

◆ ff_hevc_sao_merge_flag_decode()

int ff_hevc_sao_merge_flag_decode ( HEVCLocalContext lc)

Definition at line 516 of file cabac.c.

Referenced by hls_sao_param().

◆ ff_hevc_sao_type_idx_decode()

int ff_hevc_sao_type_idx_decode ( HEVCLocalContext lc)

Definition at line 521 of file cabac.c.

Referenced by hls_sao_param().

◆ ff_hevc_sao_band_position_decode()

int ff_hevc_sao_band_position_decode ( HEVCLocalContext lc)

Definition at line 531 of file cabac.c.

Referenced by hls_sao_param().

◆ ff_hevc_sao_offset_abs_decode()

int ff_hevc_sao_offset_abs_decode ( HEVCLocalContext lc,
int  bit_depth 
)

Definition at line 541 of file cabac.c.

Referenced by hls_sao_param().

◆ ff_hevc_sao_offset_sign_decode()

int ff_hevc_sao_offset_sign_decode ( HEVCLocalContext lc)

Definition at line 551 of file cabac.c.

Referenced by hls_sao_param().

◆ ff_hevc_sao_eo_class_decode()

int ff_hevc_sao_eo_class_decode ( HEVCLocalContext lc)

Definition at line 556 of file cabac.c.

Referenced by hls_sao_param().

◆ ff_hevc_end_of_slice_flag_decode()

int ff_hevc_end_of_slice_flag_decode ( HEVCLocalContext lc)

Definition at line 563 of file cabac.c.

Referenced by hls_coding_quadtree().

◆ ff_hevc_cu_transquant_bypass_flag_decode()

int ff_hevc_cu_transquant_bypass_flag_decode ( HEVCLocalContext lc)

Definition at line 568 of file cabac.c.

Referenced by hls_coding_unit().

◆ ff_hevc_skip_flag_decode()

int ff_hevc_skip_flag_decode ( HEVCLocalContext lc,
uint8_t *  skip_flag,
int  x0,
int  y0,
int  x_cb,
int  y_cb,
int  min_cb_width 
)

Definition at line 573 of file cabac.c.

Referenced by hls_coding_unit().

◆ ff_hevc_cu_qp_delta_abs()

int ff_hevc_cu_qp_delta_abs ( HEVCLocalContext lc)

Definition at line 586 of file cabac.c.

Referenced by hls_transform_unit().

◆ ff_hevc_cu_qp_delta_sign_flag()

int ff_hevc_cu_qp_delta_sign_flag ( HEVCLocalContext lc)

Definition at line 613 of file cabac.c.

Referenced by hls_transform_unit().

◆ ff_hevc_cu_chroma_qp_offset_flag()

int ff_hevc_cu_chroma_qp_offset_flag ( HEVCLocalContext lc)

Definition at line 618 of file cabac.c.

Referenced by hls_transform_unit().

◆ ff_hevc_cu_chroma_qp_offset_idx()

int ff_hevc_cu_chroma_qp_offset_idx ( HEVCLocalContext lc,
int  chroma_qp_offset_list_len_minus1 
)

Definition at line 623 of file cabac.c.

Referenced by hls_transform_unit().

◆ ff_hevc_pred_mode_decode()

int ff_hevc_pred_mode_decode ( HEVCLocalContext lc)

Definition at line 634 of file cabac.c.

Referenced by hls_coding_unit().

◆ ff_hevc_split_coding_unit_flag_decode()

int ff_hevc_split_coding_unit_flag_decode ( HEVCLocalContext lc,
uint8_t *  tab_ct_depth,
const HEVCSPS sps,
int  ct_depth,
int  x0,
int  y0 
)

Definition at line 639 of file cabac.c.

Referenced by hls_coding_quadtree().

◆ ff_hevc_part_mode_decode()

int ff_hevc_part_mode_decode ( HEVCLocalContext lc,
const HEVCSPS sps,
int  log2_cb_size 
)

Definition at line 660 of file cabac.c.

Referenced by hls_coding_unit().

◆ ff_hevc_pcm_flag_decode()

int ff_hevc_pcm_flag_decode ( HEVCLocalContext lc)

Definition at line 697 of file cabac.c.

Referenced by hls_coding_unit().

◆ ff_hevc_prev_intra_luma_pred_flag_decode()

int ff_hevc_prev_intra_luma_pred_flag_decode ( HEVCLocalContext lc)

Definition at line 702 of file cabac.c.

Referenced by intra_prediction_unit().

◆ ff_hevc_mpm_idx_decode()

int ff_hevc_mpm_idx_decode ( HEVCLocalContext lc)

Definition at line 707 of file cabac.c.

Referenced by intra_prediction_unit().

◆ ff_hevc_rem_intra_luma_pred_mode_decode()

int ff_hevc_rem_intra_luma_pred_mode_decode ( HEVCLocalContext lc)

Definition at line 715 of file cabac.c.

Referenced by intra_prediction_unit().

◆ ff_hevc_intra_chroma_pred_mode_decode()

int ff_hevc_intra_chroma_pred_mode_decode ( HEVCLocalContext lc)

Definition at line 725 of file cabac.c.

Referenced by intra_prediction_unit().

◆ ff_hevc_merge_idx_decode()

int ff_hevc_merge_idx_decode ( HEVCLocalContext lc)

Definition at line 736 of file cabac.c.

Referenced by hls_prediction_unit().

◆ ff_hevc_merge_flag_decode()

int ff_hevc_merge_flag_decode ( HEVCLocalContext lc)

Definition at line 747 of file cabac.c.

Referenced by hls_prediction_unit().

◆ ff_hevc_inter_pred_idc_decode()

int ff_hevc_inter_pred_idc_decode ( HEVCLocalContext lc,
int  nPbW,
int  nPbH 
)

Definition at line 752 of file cabac.c.

Referenced by hevc_luma_mv_mvp_mode().

◆ ff_hevc_ref_idx_lx_decode()

int ff_hevc_ref_idx_lx_decode ( HEVCLocalContext lc,
int  num_ref_idx_lx 
)

Definition at line 762 of file cabac.c.

Referenced by hevc_luma_mv_mvp_mode().

◆ ff_hevc_mvp_lx_flag_decode()

int ff_hevc_mvp_lx_flag_decode ( HEVCLocalContext lc)

Definition at line 778 of file cabac.c.

Referenced by hevc_luma_mv_mvp_mode().

◆ ff_hevc_no_residual_syntax_flag_decode()

int ff_hevc_no_residual_syntax_flag_decode ( HEVCLocalContext lc)

Definition at line 783 of file cabac.c.

Referenced by hls_coding_unit().

◆ abs_mvd_greater0_flag_decode()

static av_always_inline int abs_mvd_greater0_flag_decode ( HEVCLocalContext lc)
static

Definition at line 788 of file cabac.c.

Referenced by ff_hevc_hls_mvd_coding().

◆ abs_mvd_greater1_flag_decode()

static av_always_inline int abs_mvd_greater1_flag_decode ( HEVCLocalContext lc)
static

Definition at line 793 of file cabac.c.

Referenced by ff_hevc_hls_mvd_coding().

◆ mvd_decode()

static av_always_inline int mvd_decode ( HEVCLocalContext lc)
static

Definition at line 798 of file cabac.c.

Referenced by ff_hevc_hls_mvd_coding().

◆ mvd_sign_flag_decode()

static av_always_inline int mvd_sign_flag_decode ( HEVCLocalContext lc)
static

Definition at line 816 of file cabac.c.

Referenced by ff_hevc_hls_mvd_coding().

◆ ff_hevc_split_transform_flag_decode()

int ff_hevc_split_transform_flag_decode ( HEVCLocalContext lc,
int  log2_trafo_size 
)

Definition at line 821 of file cabac.c.

Referenced by hls_transform_tree().

◆ ff_hevc_cbf_cb_cr_decode()

int ff_hevc_cbf_cb_cr_decode ( HEVCLocalContext lc,
int  trafo_depth 
)

Definition at line 826 of file cabac.c.

Referenced by hls_transform_tree().

◆ ff_hevc_cbf_luma_decode()

int ff_hevc_cbf_luma_decode ( HEVCLocalContext lc,
int  trafo_depth 
)

Definition at line 831 of file cabac.c.

Referenced by hls_transform_tree().

◆ hevc_transform_skip_flag_decode()

static int hevc_transform_skip_flag_decode ( HEVCLocalContext lc,
int  c_idx 
)
static

Definition at line 836 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ explicit_rdpcm_flag_decode()

static int explicit_rdpcm_flag_decode ( HEVCLocalContext lc,
int  c_idx 
)
static

Definition at line 841 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ explicit_rdpcm_dir_flag_decode()

static int explicit_rdpcm_dir_flag_decode ( HEVCLocalContext lc,
int  c_idx 
)
static

Definition at line 846 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ ff_hevc_log2_res_scale_abs()

int ff_hevc_log2_res_scale_abs ( HEVCLocalContext lc,
int  idx 
)

Definition at line 851 of file cabac.c.

Referenced by hls_cross_component_pred().

◆ ff_hevc_res_scale_sign_flag()

int ff_hevc_res_scale_sign_flag ( HEVCLocalContext lc,
int  idx 
)

Definition at line 861 of file cabac.c.

Referenced by hls_cross_component_pred().

◆ last_significant_coeff_xy_prefix_decode()

static av_always_inline void last_significant_coeff_xy_prefix_decode ( HEVCLocalContext lc,
int  c_idx,
int  log2_size,
int *  last_scx_prefix,
int *  last_scy_prefix 
)
static

Definition at line 866 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ last_significant_coeff_suffix_decode()

static av_always_inline int last_significant_coeff_suffix_decode ( HEVCLocalContext lc,
int  last_significant_coeff_prefix 
)
static

Definition at line 892 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ significant_coeff_group_flag_decode()

static av_always_inline int significant_coeff_group_flag_decode ( HEVCLocalContext lc,
int  c_idx,
int  ctx_cg 
)
static

Definition at line 904 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ significant_coeff_flag_decode()

static av_always_inline int significant_coeff_flag_decode ( HEVCLocalContext lc,
int  x_c,
int  y_c,
int  offset,
const uint8_t *  ctx_idx_map 
)
static

Definition at line 912 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ significant_coeff_flag_decode_0()

static av_always_inline int significant_coeff_flag_decode_0 ( HEVCLocalContext lc,
int  c_idx,
int  offset 
)
static

Definition at line 919 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ coeff_abs_level_greater1_flag_decode()

static av_always_inline int coeff_abs_level_greater1_flag_decode ( HEVCLocalContext lc,
int  c_idx,
int  inc 
)
static

Definition at line 924 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ coeff_abs_level_greater2_flag_decode()

static av_always_inline int coeff_abs_level_greater2_flag_decode ( HEVCLocalContext lc,
int  c_idx,
int  inc 
)
static

Definition at line 933 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ coeff_abs_level_remaining_decode()

static av_always_inline int coeff_abs_level_remaining_decode ( HEVCLocalContext lc,
int  rc_rice_param 
)
static

Definition at line 941 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ coeff_sign_flag_decode()

static av_always_inline int coeff_sign_flag_decode ( HEVCLocalContext lc,
uint8_t  nb 
)
static

Definition at line 971 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ ff_hevc_hls_residual_coding()

void ff_hevc_hls_residual_coding ( HEVCLocalContext lc,
const HEVCPPS pps,
int  x0,
int  y0,
int  log2_trafo_size,
enum ScanType  scan_idx,
int  c_idx 
)

Definition at line 981 of file cabac.c.

Referenced by hls_transform_unit().

◆ ff_hevc_hls_mvd_coding()

void ff_hevc_hls_mvd_coding ( HEVCLocalContext lc,
int  x0,
int  y0,
int  log2_cb_size 
)

Definition at line 1493 of file cabac.c.

Referenced by hevc_luma_mv_mvp_mode().

Variable Documentation

◆ init_values

const uint8_t init_values[3][HEVC_CONTEXTS]
static

Indexed by init_type.

Definition at line 100 of file cabac.c.

Referenced by cabac_init_state().

◆ scan_1x1

const uint8_t scan_1x1[1]
static
Initial value:
= {
0,
}

Definition at line 334 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ horiz_scan2x2_x

const uint8_t horiz_scan2x2_x[4]
static
Initial value:
= {
0, 1, 0, 1,
}

Definition at line 338 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ horiz_scan2x2_y

const uint8_t horiz_scan2x2_y[4]
static
Initial value:
= {
0, 0, 1, 1
}

Definition at line 342 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ horiz_scan4x4_x

const uint8_t horiz_scan4x4_x[16]
static
Initial value:
= {
0, 1, 2, 3,
0, 1, 2, 3,
0, 1, 2, 3,
0, 1, 2, 3,
}

Definition at line 346 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ horiz_scan4x4_y

const uint8_t horiz_scan4x4_y[16]
static
Initial value:
= {
0, 0, 0, 0,
1, 1, 1, 1,
2, 2, 2, 2,
3, 3, 3, 3,
}

Definition at line 353 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ horiz_scan8x8_inv

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

Definition at line 360 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ diag_scan2x2_x

const uint8_t diag_scan2x2_x[4]
static
Initial value:
= {
0, 0, 1, 1,
}

Definition at line 371 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ diag_scan2x2_y

const uint8_t diag_scan2x2_y[4]
static
Initial value:
= {
0, 1, 0, 1,
}

Definition at line 375 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ diag_scan2x2_inv

const uint8_t diag_scan2x2_inv[2][2]
static
Initial value:
= {
{ 0, 2, },
{ 1, 3, },
}

Definition at line 379 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ diag_scan4x4_inv

const uint8_t diag_scan4x4_inv[4][4]
static
Initial value:
= {
{ 0, 2, 5, 9, },
{ 1, 4, 8, 12, },
{ 3, 7, 11, 14, },
{ 6, 10, 13, 15, },
}

Definition at line 384 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().

◆ diag_scan8x8_inv

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

Definition at line 391 of file cabac.c.

Referenced by ff_hevc_hls_residual_coding().