FFmpeg
|
Context Adaptive Binary Arithmetic Coder. More...
Go to the source code of this file.
Data Structures | |
struct | CABACContext |
Macros | |
#define | H264_NORM_SHIFT_OFFSET 0 |
#define | H264_LPS_RANGE_OFFSET 512 |
#define | H264_MLPS_STATE_OFFSET 1024 |
#define | H264_LAST_COEFF_FLAG_OFFSET_8x8_OFFSET 1280 |
#define | CABAC_BITS 16 |
#define | CABAC_MASK ((1<<CABAC_BITS)-1) |
Functions | |
void | ff_init_cabac_encoder (CABACContext *c, uint8_t *buf, int buf_size) |
int | ff_init_cabac_decoder (CABACContext *c, const uint8_t *buf, int buf_size) |
Variables | |
const uint8_t | ff_h264_cabac_tables [512+4 *2 *64+4 *64+63] |
#define H264_NORM_SHIFT_OFFSET 0 |
Definition at line 35 of file cabac.h.
Referenced by get_cabac_inline().
#define H264_LPS_RANGE_OFFSET 512 |
Definition at line 36 of file cabac.h.
Referenced by get_cabac_inline().
#define H264_MLPS_STATE_OFFSET 1024 |
Definition at line 37 of file cabac.h.
Referenced by get_cabac_inline().
#define CABAC_BITS 16 |
Definition at line 40 of file cabac.h.
Referenced by ff_h264_decode_mb_cabac(), ff_init_cabac_decoder(), get_cabac_bypass(), get_cabac_bypass_sign(), get_cabac_inline(), get_cabac_terminate(), refill(), and refill2().
#define CABAC_MASK ((1<<CABAC_BITS)-1) |
Definition at line 41 of file cabac.h.
Referenced by get_cabac_bypass(), get_cabac_bypass_sign(), get_cabac_inline(), refill(), refill2(), and renorm_cabac_decoder_once().
void ff_init_cabac_encoder | ( | CABACContext * | c, |
uint8_t * | buf, | ||
int | buf_size | ||
) |
int ff_init_cabac_decoder | ( | CABACContext * | c, |
const uint8_t * | buf, | ||
int | buf_size | ||
) |
buf_size | size of buf in bits |
Definition at line 177 of file cabac.c.
Referenced by cabac_init_decoder(), decode_slice(), ff_h264_decode_mb_cabac(), hls_decode_entry_wpp(), main(), and skip_bytes().
const uint8_t ff_h264_cabac_tables[512+4 *2 *64+4 *64+63] |
Referenced by get_cabac_inline().