FFmpeg
Functions | Variables
cabac_functions.h File Reference

Context Adaptive Binary Arithmetic Coder inline functions. More...

#include <stdint.h>
#include "cabac.h"
#include "config.h"

Go to the source code of this file.

Functions

static void  refill (CABACContext *c)
 
 
static void  refill2 (CABACContext *c)
 
 
 
static int av_unused  get_cabac (CABACContext *c, uint8_t *const state)
 
 
 
 
static av_unused const uint8_tskip_bytes (CABACContext *c, int n)
  Skip n bytes and reset the decoder.
 

Variables

uint8_t  ff_h264_cabac_tables [512+4 *2 *64+4 *64+63]
 
 
 
 
 

Detailed Description

Context Adaptive Binary Arithmetic Coder inline functions.

Definition in file cabac_functions.h.

Function Documentation

static void refill ( CABACContextc )
static

Definition at line 45 of file cabac_functions.h.

Referenced by get_cabac_bypass(), get_cabac_bypass_sign(), and renorm_cabac_decoder_once().

static void renorm_cabac_decoder_once ( CABACContextc )
inlinestatic

Definition at line 58 of file cabac_functions.h.

Referenced by get_cabac_terminate().

static void refill2 ( CABACContextc )
static

Definition at line 67 of file cabac_functions.h.

Referenced by get_cabac_inline().

static av_always_inline int get_cabac_inline ( CABACContextc,
uint8_t *const  state 
)
static

Definition at line 88 of file cabac_functions.h.

Referenced by get_cabac(), and get_cabac_noinline().

static int av_noinline av_unused get_cabac_noinline ( CABACContextc,
uint8_t *const  state 
)
static

Definition at line 112 of file cabac_functions.h.

Referenced by decode_cabac_field_decoding_flag(), decode_cabac_intra_mb_type(), decode_cabac_mb_cbp_chroma(), decode_cabac_mb_cbp_luma(), decode_cabac_mb_chroma_pre_mode(), decode_cabac_mb_skip(), and ff_h264_decode_mb_cabac().

static int av_unused get_cabac ( CABACContextc,
uint8_t *const  state 
)
static

Definition at line 116 of file cabac_functions.h.

Referenced by decode_cabac_b_mb_sub_type(), decode_cabac_mb_intra4x4_pred_mode(), decode_cabac_mb_mvd(), decode_cabac_mb_ref(), decode_cabac_p_mb_sub_type(), decode_cabac_residual_dc(), decode_cabac_residual_dc_422(), and decode_cabac_residual_nondc().

static int av_unused get_cabac_bypass ( CABACContextc )
static

Definition at line 121 of file cabac_functions.h.

Referenced by coeff_abs_level_remaining_decode(), coeff_sign_flag_decode(), decode_cabac_mb_mvd(), ff_hevc_cu_qp_delta_abs(), ff_hevc_cu_qp_delta_sign_flag(), ff_hevc_intra_chroma_pred_mode_decode(), ff_hevc_merge_idx_decode(), ff_hevc_mpm_idx_decode(), ff_hevc_part_mode_decode(), ff_hevc_ref_idx_lx_decode(), ff_hevc_rem_intra_luma_pred_mode_decode(), ff_hevc_sao_band_position_decode(), ff_hevc_sao_eo_class_decode(), ff_hevc_sao_offset_abs_decode(), ff_hevc_sao_offset_sign_decode(), ff_hevc_sao_type_idx_decode(), last_significant_coeff_suffix_decode(), and mvd_decode().

static av_always_inline int get_cabac_bypass_sign ( CABACContextc,
int  val 
)
static

Definition at line 139 of file cabac_functions.h.

Referenced by decode_cabac_mb_mvd(), mvd_decode(), and mvd_sign_flag_decode().

static int av_unused get_cabac_terminate ( CABACContextc )
static
Returns
the number of bytes read or 0 if no end

Definition at line 159 of file cabac_functions.h.

Referenced by decode_cabac_intra_mb_type(), decode_slice(), ff_hevc_cabac_init(), ff_hevc_end_of_slice_flag_decode(), and ff_hevc_pcm_flag_decode().

static av_unused const uint8_t* skip_bytes ( CABACContextc,
int  n 
)
static

Skip n bytes and reset the decoder.

Returns
the address of the first skipped byte or NULL if there's less than n bytes left

Definition at line 173 of file cabac_functions.h.

Referenced by cabac_reinit(), ff_mms_asf_header_parser(), hls_pcm_sample(), main(), and read_header().

Variable Documentation

uint8_t ff_h264_cabac_tables[512+4 *2 *64+4 *64+63]

Definition at line 34 of file cabac.c.

uint8_t* const ff_h264_norm_shift = ff_h264_cabac_tables + H264_NORM_SHIFT_OFFSET
static

Definition at line 40 of file cabac_functions.h.

Referenced by get_cabac_inline(), and refill2().

uint8_t* const ff_h264_lps_range = ff_h264_cabac_tables + H264_LPS_RANGE_OFFSET
static

Definition at line 41 of file cabac_functions.h.

Referenced by ff_init_cabac_states(), and get_cabac_inline().

uint8_t* const ff_h264_mlps_state = ff_h264_cabac_tables + H264_MLPS_STATE_OFFSET
static

Definition at line 42 of file cabac_functions.h.

Referenced by ff_init_cabac_states(), and get_cabac_inline().

uint8_t* const ff_h264_last_coeff_flag_offset_8x8 = ff_h264_cabac_tables + H264_LAST_COEFF_FLAG_OFFSET_8x8_OFFSET
static

Definition at line 43 of file cabac_functions.h.

Referenced by decode_cabac_residual_internal(), and ff_init_cabac_states().


Generated on Sat Jan 25 2014 19:52:10 for FFmpeg by   doxygen 1.8.2

AltStyle によって変換されたページ (->オリジナル) /