libavcodec/rangecoder.c File Reference

Range coder. More...

#include <string.h>
#include "avcodec.h"
#include "rangecoder.h"
#include "bytestream.h"

Go to the source code of this file.


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)
void ff_build_rac_states (RangeCoder *c, int factor, int max_p)

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."

Definition in file rangecoder.c.


Function Documentation

void ff_build_rac_states ( RangeCoder * c,
int factor,
int max_p
)

Definition at line 59 of file rangecoder.c.

Referenced by decode_frame(), and encode_frame().

void ff_init_range_decoder ( RangeCoder * c,
const uint8_t * buf,
int buf_size
)

Definition at line 52 of file rangecoder.c.

Referenced by decode_frame().

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 )

Returns:
the number of bytes written

Definition at line 99 of file rangecoder.c.

Referenced by encode_frame().


Generated on Fri Oct 26 02:35:44 2012 for FFmpeg by doxygen 1.5.8

AltStyle によって変換されたページ (->オリジナル) /