libavcodec/rangecoder.h File Reference

Range coder. More...

#include <stdint.h>
#include <assert.h>
#include "libavutil/common.h"

Go to the source code of this file.

Data Structures

struct  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.


Function Documentation

void ff_build_rac_states ( RangeCoder c,
int  factor,
int  max_p 
)

Definition at line 59 of file rangecoder.c.

Referenced by decode_frame().

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().

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

Definition at line 41 of file rangecoder.c.

Referenced by ff_init_range_decoder().

int ff_rac_terminate ( RangeCoder c  ) 

Returns:
the number of bytes written

Definition at line 99 of file rangecoder.c.

static int get_rac ( RangeCoder c,
uint8_t *const   state 
) [inline, static]

static int get_rac_count ( RangeCoder c  )  [inline, static]

Definition at line 75 of file rangecoder.h.

static void put_rac ( RangeCoder c,
uint8_t *const   state,
int  bit 
) [inline, static]

Definition at line 82 of file rangecoder.h.

Referenced by put_symbol(), put_symbol2(), and put_symbol_inline().

static void refill ( RangeCoder c  )  [inline, static]

Definition at line 100 of file rangecoder.h.

static void renorm_encoder ( RangeCoder c  )  [inline, static]

Definition at line 51 of file rangecoder.h.

Referenced by ff_rac_terminate(), and put_rac().


Generated on Fri Oct 26 02:36:53 2012 for FFmpeg by  doxygen 1.5.8