ScummVM API documentation
Image::Indeo::VLC Struct Reference

Public Member Functions

int init_vlc (int nbBits, int nbCodes, const void *bits, int bitsWrap, int bitsSize, const void *codes, int codesWrap, int codesSize, const void *symbols, int symbolsWrap, int symbolsSize, int flags)
 
int init_vlc (int nbBits, int nbCodes, const void *bits, int bitsWrap, int bitsSize, const void *codes, int codesWrap, int codesSize, int flags)
 
void freeVlc ()
 
int buildTable (int tableNbBits, int nbCodes, VLCcode *codes, int flags)
 
int allocTable (int size, int useStatic)
 

Public Attributes

int _bits
 
int16(* _table )[2]
 code, bits
 
int _tableSize
 
int _tableAllocated
 

Member Function Documentation

◆ freeVlc()

void Image::Indeo::VLC::freeVlc ( )

Free VLC data

◆ buildTable()

int Image::Indeo::VLC::buildTable ( int  tableNbBits,
int  nbCodes,
VLCcode codes,
int  flags 
)

Build VLC decoding tables suitable for use with get_vlc().

Parameters
tableNbBitsmax length of vlc codes to store directly in this table (Longer codes are delegated to subtables.)
nbCodesnumber of elements in codes[]
codesdescriptions of the vlc codes These must be ordered such that codes going into the same subtable are contiguous. Sorting by VLCcode.code is sufficient, though not necessary.

The documentation for this struct was generated from the following file: