vdr 2.6.1
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
 
 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 379 of file include/vdr/tools.h.

Constructor & Destructor Documentation

◆ cBitStream() [1/2]

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

Definition at line 385 of file include/vdr/tools.h.

◆ ~cBitStream() [1/2]

cBitStream::~cBitStream ( )
inline

Definition at line 386 of file include/vdr/tools.h.

◆ cBitStream() [2/2]

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

Definition at line 385 of file tools.h.

◆ ~cBitStream() [2/2]

cBitStream::~cBitStream ( )
inline

Definition at line 386 of file tools.h.

Member Function Documentation

◆ ByteAlign() [1/2]

void cBitStream::ByteAlign ( void  )

Definition at line 1446 of file tools.c.

References index, and SkipBits().

Referenced by cSubtitleObject::DecodeSubBlock().

◆ ByteAlign() [2/2]

void cBitStream::ByteAlign ( void  )

◆ GetBit() [1/2]

int cBitStream::GetBit ( void  )

◆ GetBit() [2/2]

int cBitStream::GetBit ( void  )

◆ GetBits() [1/2]

uint32_t cBitStream::GetBits ( int  n)

◆ GetBits() [2/2]

uint32_t cBitStream::GetBits ( int  n)

◆ GetData() [1/2]

const uint8_t * cBitStream::GetData ( void  ) const
inline

Definition at line 398 of file include/vdr/tools.h.

Referenced by cSubtitleObject::Parse(), and cSubtitleObject::ParsePgs().

◆ GetData() [2/2]

const uint8_t * cBitStream::GetData ( void  ) const
inline

Definition at line 398 of file tools.h.

◆ Index() [1/2]

int cBitStream::Index ( void  ) const
inline

◆ Index() [2/2]

int cBitStream::Index ( void  ) const
inline

Definition at line 397 of file tools.h.

◆ IsEOF() [1/2]

bool cBitStream::IsEOF ( void  ) const
inline

◆ IsEOF() [2/2]

bool cBitStream::IsEOF ( void  ) const
inline

Definition at line 394 of file tools.h.

◆ Length() [1/2]

int cBitStream::Length ( void  ) const
inline

◆ Length() [2/2]

int cBitStream::Length ( void  ) const
inline

Definition at line 396 of file tools.h.

◆ Reset() [1/2]

void cBitStream::Reset ( void  )
inline

Definition at line 395 of file include/vdr/tools.h.

◆ Reset() [2/2]

void cBitStream::Reset ( void  )
inline

Definition at line 395 of file tools.h.

◆ SetLength() [1/2]

bool cBitStream::SetLength ( int  Length)

Definition at line 1460 of file tools.c.

References length, and Length().

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

◆ SetLength() [2/2]

bool cBitStream::SetLength ( int  Length)

◆ SkipBit() [1/2]

void cBitStream::SkipBit ( void  )
inline

Definition at line 393 of file include/vdr/tools.h.

Referenced by cSubtitleObject::Parse().

◆ SkipBit() [2/2]

void cBitStream::SkipBit ( void  )
inline

Definition at line 393 of file tools.h.

◆ SkipBits() [1/2]

void cBitStream::SkipBits ( int  n)
inline

◆ SkipBits() [2/2]

void cBitStream::SkipBits ( int  n)
inline

Definition at line 392 of file tools.h.

◆ WordAlign() [1/2]

void cBitStream::WordAlign ( void  )

Definition at line 1453 of file tools.c.

References index, and SkipBits().

Referenced by cSubtitleObject::Parse().

◆ WordAlign() [2/2]

void cBitStream::WordAlign ( void  )

Member Data Documentation

◆ data

const uint8_t * cBitStream::data
private

Definition at line 381 of file include/vdr/tools.h.

Referenced by GetBit().

◆ index

int cBitStream::index
private

Definition at line 383 of file include/vdr/tools.h.

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

◆ length

int cBitStream::length
private

Definition at line 382 of file include/vdr/tools.h.

Referenced by GetBit(), and SetLength().


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