FFmpeg
Functions
rangecoder.c File Reference

Range coder. More...

#include <string.h>
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "rangecoder.h"

Functions

av_cold void ff_init_range_encoder (RangeCoder *c, uint8_t *buf, int buf_size)
 
av_cold void ff_init_range_decoder (RangeCoder *c, const uint8_t *buf, int buf_size)
 
void ff_build_rac_states (RangeCoder *c, int factor, int max_p)
 
int ff_rac_terminate (RangeCoder *c)
 

Detailed Description

Range coder.

based upon "Range encoding: an algorithm for removing redundancy from a digitised message. G. N. N. Martin Presented in March 1979 to the Video & Data Recording Conference, IBM UK Scientific Center held in Southampton July 24-27 1979."