vdr 2.7.6
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 382 of file tools.h.

Constructor & Destructor Documentation

◆ cBitStream()

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

Definition at line 388 of file tools.h.

References data, index, Length(), and length.

◆ ~cBitStream()

cBitStream::~cBitStream ( )
inline

Definition at line 389 of file tools.h.

Member Function Documentation

◆ ByteAlign()

void cBitStream::ByteAlign ( void )

Definition at line 1492 of file tools.c.

References index, and SkipBits().

Referenced by cSubtitleObject::DecodeSubBlock().

◆ GetBit()

◆ GetBits()

◆ GetData()

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

Definition at line 401 of file tools.h.

References data, index, and IsEOF().

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

◆ Index()

int cBitStream::Index ( void ) const
inline

◆ IsEOF()

◆ Length()

int cBitStream::Length ( void ) const
inline

◆ Reset()

void cBitStream::Reset ( void )
inline

Definition at line 398 of file tools.h.

References index.

◆ SetLength()

bool cBitStream::SetLength ( int Length)

Definition at line 1506 of file tools.c.

References Length(), and length.

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

◆ SkipBit()

void cBitStream::SkipBit ( void )
inline

Definition at line 396 of file tools.h.

References SkipBits().

Referenced by cSubtitleObject::Parse().

◆ SkipBits()

◆ WordAlign()

void cBitStream::WordAlign ( void )

Definition at line 1499 of file tools.c.

References index, and SkipBits().

Referenced by cSubtitleObject::Parse().

Member Data Documentation

◆ data

const uint8_t* cBitStream::data
private

Definition at line 384 of file tools.h.

Referenced by cBitStream(), GetBit(), and GetData().

◆ index

int cBitStream::index
private

Definition at line 386 of file tools.h.

Referenced by ByteAlign(), cBitStream(), GetBit(), GetData(), Index(), IsEOF(), Reset(), SkipBits(), and WordAlign().

◆ length

int cBitStream::length
private

Definition at line 385 of file tools.h.

Referenced by cBitStream(), GetBit(), Index(), IsEOF(), Length(), and SetLength().


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