FFmpeg
Data Structures | Macros | Enumerations | Functions | Variables
dirac_vlc.c File Reference
#include "libavutil/mem_internal.h"
#include "dirac_vlc.h"

Go to the source code of this file.

Data Structures

struct  LUTState
 

Macros

#define PROCESS_VALS
 

Enumerations

enum  { STATE_START = 0, STATE_FOLLOW = 256, STATE_DATA = 512, STATE_SIGN = 768 }
 

Functions

int ff_dirac_golomb_read_16bit (const uint8_t *buf, int bytes, uint8_t *_dst, int coeffs)
 
int ff_dirac_golomb_read_32bit (const uint8_t *buf, int bytes, uint8_t *_dst, int coeffs)
 

Variables

static const LUTState dirac_golomb_lut [1024]
 

Macro Definition Documentation

◆ PROCESS_VALS

#define PROCESS_VALS
Value:
do { \
val <<= lut.val0_bits; \
val |= lut.val0; \
dst[0] = (val - 1) * lut.sign; \
dst[1] = lut.val1; \
dst[2] = lut.val2; \
dst[3] = lut.val3; \
dst[4] = lut.val4; \
dst[5] = 0; \
dst[6] = 0; \
dst[7] = 0; \
if (lut.num) \
val = lut.val; \
dst += lut.num; \
if (dst >= last) \
return coeffs; \
lut = dirac_golomb_lut[lut.state + *buf++]; \
} while (0)

Definition at line 1075 of file dirac_vlc.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
STATE_START 
STATE_FOLLOW 
STATE_DATA 
STATE_SIGN 

Definition at line 23 of file dirac_vlc.c.

Function Documentation

◆ ff_dirac_golomb_read_16bit()

int ff_dirac_golomb_read_16bit ( const uint8_t *  buf,
int  bytes,
uint8_t *  _dst,
int  coeffs 
)

Definition at line 1095 of file dirac_vlc.c.

Referenced by decode_hq_slice().

◆ ff_dirac_golomb_read_32bit()

int ff_dirac_golomb_read_32bit ( const uint8_t *  buf,
int  bytes,
uint8_t *  _dst,
int  coeffs 
)

Definition at line 1115 of file dirac_vlc.c.

Referenced by decode_hq_slice().

Variable Documentation

◆ dirac_golomb_lut

const LUTState dirac_golomb_lut[1024]
static

Definition at line 48 of file dirac_vlc.c.

Referenced by ff_dirac_golomb_read_16bit(), and ff_dirac_golomb_read_32bit().

dirac_golomb_lut
static const LUTState dirac_golomb_lut[1024]
Definition: dirac_vlc.c:48
val
static double val(void *priv, double ch)
Definition: aeval.c:76
if
if(ret)
Definition: filter_design.txt:179