FFmpeg
Data Structures | Macros | Functions
cabac.c File Reference
#include "libavcodec/cabac.c"
#include "libavutil/lfg.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/put_bits.h"

Go to the source code of this file.

Data Structures

struct  CABACTestContext
 

Macros

#define SIZE   10240
 

Functions

static void put_cabac_bit (CABACTestContext *c, int b)
 
static void renorm_cabac_encoder (CABACTestContext *c)
 
static void put_cabac (CABACTestContext *c, uint8_t *const state, int bit)
 
static void put_cabac_bypass (CABACTestContext *c, int bit)
 
static int put_cabac_terminate (CABACTestContext *c, int bit)
 
static void init_cabac_encoder (CABACTestContext *c, uint8_t *buf, int buf_size)
 
int main (void)
 

Macro Definition Documentation

#define SIZE   10240

Definition at line 23 of file cabac.c.

Referenced by main().

Function Documentation

static void put_cabac_bit ( CABACTestContext c,
int  b 
)
inlinestatic

Definition at line 35 of file cabac.c.

Referenced by put_cabac_bypass(), put_cabac_terminate(), and renorm_cabac_encoder().

static void renorm_cabac_encoder ( CABACTestContext c)
inlinestatic

Definition at line 43 of file cabac.c.

Referenced by put_cabac(), and put_cabac_terminate().

static void put_cabac ( CABACTestContext c,
uint8_t *const  state,
int  bit 
)
static

Definition at line 62 of file cabac.c.

Referenced by main().

static void put_cabac_bypass ( CABACTestContext c,
int  bit 
)
static
Parameters
bit0 -> write zero bit, !=0 write one bit

Definition at line 81 of file cabac.c.

Referenced by main().

static int put_cabac_terminate ( CABACTestContext c,
int  bit 
)
static
Returns
the number of bytes written

Definition at line 104 of file cabac.c.

Referenced by main().

static void init_cabac_encoder ( CABACTestContext c,
uint8_t buf,
int  buf_size 
)
static
Parameters
buf_sizesize of buf in bits

Definition at line 129 of file cabac.c.

Referenced by main().

int main ( void  )

Definition at line 139 of file cabac.c.