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

#include <indeo.h>

Public Member Functions

int createHuffFromDesc (VLC *vlc, bool flag) const
 
bool huffDescCompare (const IVIHuffDesc *desc2) const
 
void huffDescCopy (const IVIHuffDesc *src)
 

Public Attributes

int32 _numRows
 
uint8 _xBits [16]
 

Detailed Description

huffman codebook descriptor

Member Function Documentation

◆ createHuffFromDesc()

int Image::Indeo::IVIHuffDesc::createHuffFromDesc ( VLC vlc,
bool  flag 
) const

Generate a huffman codebook from the given descriptor and convert it into the FFmpeg VLC table.

Parameters
[out]vlcWhere to place the generated VLC table
[in]flagFlag: true - for static or false for dynamic tables
Returns
result code: 0 - OK, -1 = error (invalid codebook descriptor)

◆ huffDescCompare()

bool Image::Indeo::IVIHuffDesc::huffDescCompare ( const IVIHuffDesc desc2) const

Compare two huffman codebook descriptors.

Parameters
[in]desc2Ptr to the 2nd descriptor to compare
Returns
comparison result: 0 - equal, 1 - not equal

◆ huffDescCopy()

void Image::Indeo::IVIHuffDesc::huffDescCopy ( const IVIHuffDesc src)

Copy huffman codebook descriptors.

Parameters
[in]srcptr to the source descriptor

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