rangecoder.h File Reference

Range coder. More...

#include <stdint.h>
#include "libavutil/common.h"
#include "libavutil/avassert.h"
Include dependency graph for rangecoder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RangeCoder
 

Typedefs

typedef struct RangeCoder RangeCoder
 

Functions

void ff_init_range_encoder (RangeCoder *c, uint8_t *buf, int buf_size)
 
void ff_init_range_decoder (RangeCoder *c, const uint8_t *buf, int buf_size)
 
int ff_rac_terminate (RangeCoder *c)
 
void ff_build_rac_states (RangeCoder *c, int factor, int max_p)
 
static void renorm_encoder (RangeCoder *c)
 
static int get_rac_count (RangeCoder *c)
 
static void put_rac (RangeCoder *c, uint8_t *const state, int bit)
 
static void refill (RangeCoder *c)
 
static int get_rac (RangeCoder *c, uint8_t *const state)
 

Detailed Description

Range coder.

Definition in file rangecoder.h.

Typedef Documentation

typedef struct RangeCoder RangeCoder

Function Documentation

void ff_build_rac_states ( RangeCoder c,
int  factor,
int  max_p 
)
void ff_init_range_decoder ( RangeCoder c,
const uint8_t buf,
int  buf_size 
)

Definition at line 52 of file rangecoder.c.

Referenced by decode_frame(), ff_rac_terminate(), and read_extra_header().

void ff_init_range_encoder ( RangeCoder c,
uint8_t buf,
int  buf_size 
)
int ff_rac_terminate ( RangeCoder c)

Definition at line 101 of file rangecoder.c.

Referenced by encode_frame(), encode_slice(), ff_rac_terminate(), and write_extradata().

static int get_rac_count ( RangeCoder c)
inlinestatic

Definition at line 77 of file rangecoder.h.

Referenced by encode_q_branch().

static void put_rac ( RangeCoder c,
uint8_t *const  state,
int  bit 
)
inlinestatic

Definition at line 85 of file rangecoder.h.

static void refill ( RangeCoder c)
inlinestatic

Definition at line 104 of file rangecoder.h.

Referenced by get_rac().

static void renorm_encoder ( RangeCoder c)
inlinestatic

Definition at line 52 of file rangecoder.h.

Referenced by ff_rac_terminate(), and put_rac().