ScummVM API documentation
Image::Indeo::GetBits Class Reference

#include <get_bits.h>

Inheritance diagram for Image::Indeo::GetBits:
Common::BitStreamImpl< STREAM, CONTAINER, valueBits, isLE, MSB2LSB >

Public Member Functions

 GetBits (const byte *dataPtr, uint32 dataSize)
 
int getBitsLeft () const
 
template<int maxDepth, int bits>
int getVLC2 (int16(*table)[2])
 
- Public Member Functions inherited from Common::BitStreamImpl< STREAM, CONTAINER, valueBits, isLE, MSB2LSB >
 BitStreamImpl (STREAM *stream, DisposeAfterUse::Flag disposeAfterUse=DisposeAfterUse::NO)
 
 BitStreamImpl (STREAM &stream)
 
uint peekBit ()
 
uint getBit ()
 
template<int n>
uint32 peekBits ()
 
template<int n>
uint32 getBits ()
 
uint32 peekBits (size_t n)
 
uint32 getBits (size_t n)
 
void addBit (uint32 &x, uint32 n)
 
void rewind ()
 
void skip (uint32 n)
 
void align ()
 
uint32 pos () const
 
uint32 size () const
 
bool eos () const
 

Additional Inherited Members

- Static Public Member Functions inherited from Common::BitStreamImpl< STREAM, CONTAINER, valueBits, isLE, MSB2LSB >
static bool isMSB2LSB ()
 

Detailed Description

Intel Indeo Bitstream reader

Constructor & Destructor Documentation

◆ GetBits()

Image::Indeo::GetBits::GetBits ( const byte *  dataPtr,
uint32  dataSize 
)
inline

Constructor

Member Function Documentation

◆ getBitsLeft()

int Image::Indeo::GetBits::getBitsLeft ( ) const
inline

The number of bits left

◆ getVLC2()

template<int maxDepth, int bits>
int Image::Indeo::GetBits::getVLC2 ( int16(*)  table[2])
inline

Parse a VLC code.

Parameters
bitsis the number of bits which will be read at once, must be identical to nbBits in init_vlc()
maxDepthis the number of times bits bits must be read to completely read the longest vlc code = (max_vlc_length + bits - 1) / bits

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