FFmpeg
Data Structures | Macros | Functions
lagarithrac.h File Reference
#include <stdint.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  lag_rac
 

Macros

#define MAX_OVERREAD   4
 

Functions

void ff_lag_rac_init (lag_rac *l, GetBitContext *gb, int length)
 
static void lag_rac_refill (lag_rac *l)
 
static uint8_t lag_get_rac (lag_rac *l)
 Decode a single byte from the compressed plane described by *l. More...
 

Detailed Description

Lagarith range decoder

Author
Nathan Caldwell
David Conrad

Definition in file lagarithrac.h.

Macro Definition Documentation

◆ MAX_OVERREAD

#define MAX_OVERREAD   4

Definition at line 51 of file lagarithrac.h.

Function Documentation

◆ ff_lag_rac_init()

void ff_lag_rac_init ( lag_rac l,
GetBitContext gb,
int  length 
)

Definition at line 33 of file lagarithrac.c.

Referenced by lag_decode_arith_plane().

◆ lag_rac_refill()

static void lag_rac_refill ( lag_rac l)
inlinestatic

Definition at line 60 of file lagarithrac.h.

Referenced by lag_get_rac().

◆ lag_get_rac()

static uint8_t lag_get_rac ( lag_rac l)
inlinestatic

Decode a single byte from the compressed plane described by *l.

Parameters
lpointer to lag_rac for the current plane
Returns
next byte of decoded data

Definition at line 78 of file lagarithrac.h.

Referenced by lag_decode_line().