FFmpeg
|
Go to the source code of this file.
Data Structures | |
struct | RangeCoder |
Macros | |
#define | MAX_OVERREAD 2 |
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, int version) |
Terminates the range coder. More... | |
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) |
Range coder.
Definition in file rangecoder.h.
#define MAX_OVERREAD 2 |
Definition at line 46 of file rangecoder.h.
void ff_init_range_encoder | ( | RangeCoder * | c, |
uint8_t * | buf, | ||
int | buf_size | ||
) |
Definition at line 42 of file rangecoder.c.
Referenced by encode_frame(), ff_ffv1_write_extradata(), ff_init_range_decoder(), and main().
void ff_init_range_decoder | ( | RangeCoder * | c, |
const uint8_t * | buf, | ||
int | buf_size | ||
) |
Definition at line 53 of file rangecoder.c.
Referenced by decode_frame(), main(), mxf_parse_ffv1_frame(), and read_extra_header().
int ff_rac_terminate | ( | RangeCoder * | c, |
int | version | ||
) |
Terminates the range coder.
version | version 0 requires the decoder to know the data size in bytes version 1 needs about 1 bit more space but does not need to carry the size from encoder to decoder |
Definition at line 109 of file rangecoder.c.
Referenced by encode_frame(), encode_slice(), ff_ffv1_write_extradata(), and main().
void ff_build_rac_states | ( | RangeCoder * | c, |
int | factor, | ||
int | max_p | ||
) |
Definition at line 68 of file rangecoder.c.
Referenced by decode_frame(), encode_frame(), encode_init_internal(), ff_ffv1_encode_init(), ff_ffv1_write_extradata(), main(), mxf_parse_ffv1_frame(), and read_extra_header().
|
inlinestatic |
Definition at line 62 of file rangecoder.h.
Referenced by ff_rac_terminate(), and put_rac().
|
inlinestatic |
Definition at line 79 of file rangecoder.h.
Referenced by encode_q_branch().
|
inlinestatic |
Definition at line 87 of file rangecoder.h.
|
inlinestatic |
Definition at line 107 of file rangecoder.h.
Referenced by get_rac().
|
inlinestatic |
Definition at line 118 of file rangecoder.h.
Referenced by decode_frame(), decode_header(), decode_line(), decode_q_branch(), decode_slice(), decode_slice_header(), get_ffv1_unsigned_symbol(), get_symbol(), get_symbol2(), get_symbol_inline(), main(), mxf_parse_ffv1_frame(), rac_check_termination(), read_extra_header(), read_header(), and unpack_coeffs().