1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/rangecoder: Document ff_rac_terminate()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2018-12-19 02:40:20 +01:00
parent 0c4af1390f
commit 20b10ba83c

View File

@ -48,7 +48,15 @@ typedef struct RangeCoder {
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);
/**
* 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);
void ff_build_rac_states(RangeCoder *c, int factor, int max_p);
static inline void renorm_encoder(RangeCoder *c)