vdr 2.6.6
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 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.

◆ ~cBitStream()

cBitStream::~cBitStream ( )
inline

Definition at line 389 of file tools.h.

Member Function Documentation

◆ ByteAlign()

void cBitStream::ByteAlign ( void )

Definition at line 1470 of file tools.c.

References index, and SkipBits().

Referenced by cSubtitleObject::DecodeSubBlock().

◆ GetBit()

int cBitStream::GetBit ( void )

◆ GetBits()

uint32_t cBitStream::GetBits ( int n)

◆ GetData()

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

Definition at line 401 of file tools.h.

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

◆ Index()

int cBitStream::Index ( void ) const
inline

◆ IsEOF()

bool cBitStream::IsEOF ( void ) const
inline

◆ Length()

int cBitStream::Length ( void ) const
inline

◆ Reset()

void cBitStream::Reset ( void )
inline

Definition at line 398 of file tools.h.

◆ SetLength()

bool cBitStream::SetLength ( int Length)

Definition at line 1484 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.

Referenced by cSubtitleObject::Parse().

◆ SkipBits()

void cBitStream::SkipBits ( int n)
inline

◆ WordAlign()

void cBitStream::WordAlign ( void )

Definition at line 1477 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 GetBit().

◆ index

int cBitStream::index
private

Definition at line 386 of file tools.h.

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

◆ length

int cBitStream::length
private

Definition at line 385 of file tools.h.

Referenced by GetBit(), and SetLength().


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