#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) |
Definition in file rangecoder.h.
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 | |||
) |
void ff_init_range_encoder | ( | RangeCoder * | c, | |
uint8_t * | buf, | |||
int | buf_size | |||
) |
Definition at line 41 of file rangecoder.c.
Referenced by encode_frame(), and ff_init_range_decoder().
int ff_rac_terminate | ( | RangeCoder * | c | ) |
Definition at line 99 of file rangecoder.c.
Referenced by encode_frame().
static int get_rac | ( | RangeCoder * | c, | |
uint8_t *const | state | |||
) | [inline, static] |
Definition at line 110 of file rangecoder.h.
Referenced by decode_frame(), decode_header(), decode_q_branch(), get_symbol(), get_symbol2(), read_header(), and unpack_coeffs().
static int get_rac_count | ( | RangeCoder * | c | ) | [inline, static] |
static void put_rac | ( | RangeCoder * | c, | |
uint8_t *const | state, | |||
int | bit | |||
) | [inline, static] |
Definition at line 82 of file rangecoder.h.
Referenced by encode_header(), encode_q_branch(), encode_q_branch2(), encode_subband_c0run(), put_symbol(), and put_symbol2().
static void refill | ( | RangeCoder * | c | ) | [inline, static] |
Definition at line 100 of file rangecoder.h.
static void renorm_encoder | ( | RangeCoder * | c | ) | [inline, static] |