Logo Search packages:      
Sourcecode: blender version File versions  Download package

cabac.h File Reference


Detailed Description

Context Adaptive Binary Arithmetic Coder.

Definition in file cabac.h.

#include <assert.h>

Go to the source code of this file.

Classes

struct  CABACContext

Defines

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

Functions

void ff_init_cabac_decoder (CABACContext *c, const uint8_t *buf, int buf_size)
void ff_init_cabac_encoder (CABACContext *c, uint8_t *buf, int buf_size)
void ff_init_cabac_states (CABACContext *c, uint8_t const (*lps_range)[4], uint8_t const *mps_state, uint8_t const *lps_state, int state_count)
static int get_cabac (CABACContext *c, uint8_t *const state)
static int get_cabac_bypass (CABACContext *c)
static int get_cabac_terminate (CABACContext *c)
static int get_cabac_u (CABACContext *c, uint8_t *state, int max, int max_index, int truncated)
static int get_cabac_ueg (CABACContext *c, uint8_t *state, int max, int is_signed, int k, int max_index)
static void put_cabac (CABACContext *c, uint8_t *const state, int bit)
static void put_cabac_bit (CABACContext *c, int b)
static void put_cabac_bypass (CABACContext *c, int bit)
static void put_cabac_static (CABACContext *c, int RangeLPS, int bit)
static int put_cabac_terminate (CABACContext *c, int bit)
static void put_cabac_u (CABACContext *c, uint8_t *state, int v, int max, int max_index, int truncated)
static void put_cabac_ueg (CABACContext *c, uint8_t *state, int v, int max, int is_signed, int k, int max_index)
static void refill (CABACContext *c)
static void renorm_cabac_decoder (CABACContext *c)
static void renorm_cabac_decoder_once (CABACContext *c)
static void renorm_cabac_encoder (CABACContext *c)

Variables

const uint8_t ff_h264_lps_range [64][4]
const uint8_t ff_h264_lps_state [64]
const uint8_t ff_h264_mps_state [64]
const uint8_t ff_h264_norm_shift [256]


Generated by  Doxygen 1.6.0   Back to index