Commit 20b10ba8 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/rangecoder: Document ff_rac_terminate()

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 0c4af139
...@@ -48,7 +48,15 @@ typedef struct RangeCoder { ...@@ -48,7 +48,15 @@ typedef struct RangeCoder {
void ff_init_range_encoder(RangeCoder *c, uint8_t *buf, int buf_size); 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); void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf, int buf_size);
/**
* Terminates the range coder
* @param 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
*/
int ff_rac_terminate(RangeCoder *c, int version); int ff_rac_terminate(RangeCoder *c, int version);
void ff_build_rac_states(RangeCoder *c, int factor, int max_p); void ff_build_rac_states(RangeCoder *c, int factor, int max_p);
static inline void renorm_encoder(RangeCoder *c) static inline void renorm_encoder(RangeCoder *c)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment