FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
cabac.h File Reference

Context Adaptive Binary Arithmetic Coder. More...

#include <stdint.h>
#include "put_bits.h"

Go to the source code of this file.

Data Structures

struct  CABACContext
 

Macros

#define CABAC_TABLE_CONST
 
#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)
 
void ff_init_cabac_decoder (CABACContext *c, const uint8_t *buf, int buf_size)
 
void ff_init_cabac_states (void)
 

Variables

CABAC_TABLE_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 CABAC_TABLE_CONST

Definition at line 37 of file cabac.h.

#define H264_NORM_SHIFT_OFFSET   0

Definition at line 40 of file cabac.h.

#define H264_LPS_RANGE_OFFSET   512

Definition at line 41 of file cabac.h.

#define H264_MLPS_STATE_OFFSET   1024

Definition at line 42 of file cabac.h.

#define H264_LAST_COEFF_FLAG_OFFSET_8x8_OFFSET   1280

Definition at line 43 of file cabac.h.

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

Function Documentation

void ff_init_cabac_encoder ( CABACContext c,
uint8_t buf,
int  buf_size 
)
Parameters
buf_sizesize of buf in bits

Definition at line 41 of file cabac.c.

void ff_init_cabac_decoder ( CABACContext c,
const uint8_t buf,
int  buf_size 
)
Parameters
buf_sizesize of buf in bits

Definition at line 54 of file cabac.c.

Referenced by cabac_init_decoder(), decode_slice(), ff_h264_decode_mb_cabac(), hls_decode_entry_wpp(), and skip_bytes().

void ff_init_cabac_states ( void  )

Definition at line 69 of file cabac.c.

Referenced by ff_h264_decode_init(), and hevc_decode_init().

Variable Documentation

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

Definition at line 30 of file cabac_tablegen.h.

Referenced by main().