FFmpeg
Macros | Functions
rangecoder.c File Reference
#include <stdint.h>
#include <string.h>
#include "libavutil/error.h"
#include "libavutil/lfg.h"
#include "libavutil/log.h"
#include "libavcodec/rangecoder.h"

Go to the source code of this file.

Macros

#define SIZE   1240
 

Functions

static int rac_check_termination (RangeCoder *c, int version)
 Check if at the current position there is a valid looking termination. More...
 
int main (void)
 

Macro Definition Documentation

◆ SIZE

#define SIZE   1240

Definition at line 28 of file rangecoder.c.

Function Documentation

◆ rac_check_termination()

static int rac_check_termination ( RangeCoder c,
int  version 
)
static

Check if at the current position there is a valid looking termination.

Parameters
versionversion 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
Returns
negative AVERROR code on error or non negative.

Definition at line 37 of file rangecoder.c.

Referenced by main().

◆ main()

int main ( void  )

Definition at line 56 of file rangecoder.c.