vdr  2.0.4
Public Member Functions | Private Attributes | List of all members
cBitStream Class Reference

#include <tools.h>

Public Member Functions

 cBitStream (const uint8_t *Data, int Length)
 
 ~cBitStream ()
 
int GetBit (void)
 
uint32_t GetBits (int n)
 
void ByteAlign (void)
 
void WordAlign (void)
 
bool SetLength (int Length)
 
void SkipBits (int n)
 
void SkipBit (void)
 
bool IsEOF (void) const
 
void Reset (void)
 
int Length (void) const
 
int Index (void) const
 
const uint8_t * GetData (void) const
 

Private Attributes

const uint8_t * data
 
int length
 
int index
 

Detailed Description

Definition at line 301 of file tools.h.

Constructor & Destructor Documentation

cBitStream::cBitStream ( const uint8_t *  Data,
int  Length 
)
inline

Definition at line 307 of file tools.h.

cBitStream::~cBitStream ( )
inline

Definition at line 308 of file tools.h.

Member Function Documentation

void cBitStream::ByteAlign ( void  )

Definition at line 1294 of file tools.c.

References index, and SkipBits().

Referenced by cSubtitleObject::DecodeSubBlock().

int cBitStream::GetBit ( void  )
uint32_t cBitStream::GetBits ( int  n)
const uint8_t* cBitStream::GetData ( void  ) const
inline

Definition at line 320 of file tools.h.

Referenced by cDvbSubtitleConverter::ExtractSegment().

int cBitStream::Index ( void  ) const
inline

Definition at line 319 of file tools.h.

Referenced by cDvbSubtitleConverter::ExtractSegment().

bool cBitStream::IsEOF ( void  ) const
inline
int cBitStream::Length ( void  ) const
inline

Definition at line 318 of file tools.h.

Referenced by cDvbSubtitleConverter::ExtractSegment(), and SetLength().

void cBitStream::Reset ( void  )
inline

Definition at line 317 of file tools.h.

bool cBitStream::SetLength ( int  Length)

Definition at line 1308 of file tools.c.

References length, and Length().

Referenced by cDvbSubtitleConverter::ExtractSegment().

void cBitStream::SkipBit ( void  )
inline

Definition at line 315 of file tools.h.

Referenced by cDvbSubtitleConverter::ExtractSegment().

void cBitStream::SkipBits ( int  n)
inline

Definition at line 314 of file tools.h.

Referenced by ByteAlign(), cDvbSubtitleConverter::ExtractSegment(), and WordAlign().

void cBitStream::WordAlign ( void  )

Definition at line 1301 of file tools.c.

References index, and SkipBits().

Referenced by cDvbSubtitleConverter::ExtractSegment().

Member Data Documentation

const uint8_t* cBitStream::data
private

Definition at line 303 of file tools.h.

Referenced by GetBit().

int cBitStream::index
private

Definition at line 305 of file tools.h.

Referenced by ByteAlign(), GetBit(), and WordAlign().

int cBitStream::length
private

Definition at line 304 of file tools.h.

Referenced by GetBit(), and SetLength().


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