Data Structures | Macros | Functions | Variables
cabac.h File Reference
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  CABACContext


#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)


int ff_init_cabac_decoder (CABACContext *c, const uint8_t *buf, int buf_size)


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

Detailed Description

Context Adaptive Binary Arithmetic Coder.

Definition in file cabac.h.

Macro Definition Documentation


#define H264_NORM_SHIFT_OFFSET   0

Definition at line 33 of file cabac.h.


#define H264_LPS_RANGE_OFFSET   512

Definition at line 34 of file cabac.h.


#define H264_MLPS_STATE_OFFSET   1024

Definition at line 35 of file cabac.h.


#define H264_LAST_COEFF_FLAG_OFFSET_8x8_OFFSET   1280

Definition at line 36 of file cabac.h.


#define CABAC_BITS   16

Definition at line 38 of file cabac.h.


#define CABAC_MASK   ((1<<CABAC_BITS)-1)

Definition at line 39 of file cabac.h.

Function Documentation

◆ ff_init_cabac_decoder()

int ff_init_cabac_decoder ( CABACContext c,
const uint8_t *  buf,
int  buf_size 
buf_sizesize of buf in bits

Definition at line 162 of file cabac.c.

Referenced by decode_slice(), ep_init_cabac_decoder(), ff_h264_decode_mb_cabac(), ff_hevc_cabac_init(), hls_decode_entry_wpp(), main(), and skip_bytes().

Variable Documentation

◆ ff_h264_cabac_tables

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