cRepacker Class Reference

Inheritance diagram for cRepacker:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 cRepacker (void)
virtual ~cRepacker ()
virtual void Reset (void)
virtual void Repack (cRingBufferLinear *ResultBuffer, const uchar *Data, int Count)=0
virtual int BreakAt (const uchar *Data, int Count)=0
virtual int QuerySnoopSize (void)
void SetMaxPacketSize (int MaxPacketSize)
void SetSubStreamId (uint8_t SubStreamId)

Static Public Member Functions

static int Put (cRingBufferLinear *ResultBuffer, const uchar *Data, int Count, int CapacityNeeded)

Protected Member Functions

bool LogAllowed (void)
void DroppedData (const char *Reason, int Count)

Protected Attributes

bool initiallySyncing
int maxPacketSize
uint8_t subStreamId
time_t lastLog
int suppressedLogMessages


Detailed Description

Definition at line 94 of file remux.c.


Constructor & Destructor Documentation

cRepacker::cRepacker ( void   ) 

Definition at line 115 of file remux.c.

References initiallySyncing, lastLog, maxPacketSize, subStreamId, and suppressedLogMessages.

virtual cRepacker::~cRepacker (  )  [inline, virtual]

Definition at line 106 of file remux.c.


Member Function Documentation

bool cRepacker::LogAllowed ( void   )  [protected]

Definition at line 124 of file remux.c.

References esyslog, lastLog, MIN_LOG_INTERVAL, and suppressedLogMessages.

void cRepacker::DroppedData ( const char *  Reason,
int  Count 
) [inline, protected]

Definition at line 102 of file remux.c.

References LOG.

Referenced by cDolbyRepacker::Repack(), cAudioRepacker::Repack(), and cVideoRepacker::Repack().

int cRepacker::Put ( cRingBufferLinear ResultBuffer,
const uchar Data,
int  Count,
int  CapacityNeeded 
) [static]

Definition at line 139 of file remux.c.

References esyslog, cRingBufferLinear::Free(), and cRingBufferLinear::Put().

Referenced by cDolbyRepacker::FinishRemainder(), cCommonRepacker::PushOutPacket(), cDolbyRepacker::StartNewPacket(), and cTS2PES::store().

Here is the call graph for this function:

virtual void cRepacker::Reset ( void   )  [inline, virtual]

Reimplemented in cCommonRepacker, cVideoRepacker, cAudioRepacker, and cDolbyRepacker.

Definition at line 107 of file remux.c.

References initiallySyncing.

Referenced by cTS2PES::Clear(), cDolbyRepacker::Reset(), and cCommonRepacker::Reset().

virtual void cRepacker::Repack ( cRingBufferLinear ResultBuffer,
const uchar Data,
int  Count 
) [pure virtual]

Implemented in cVideoRepacker, cAudioRepacker, and cDolbyRepacker.

Referenced by cTS2PES::store().

virtual int cRepacker::BreakAt ( const uchar Data,
int  Count 
) [pure virtual]

Implemented in cVideoRepacker, cAudioRepacker, and cDolbyRepacker.

Referenced by cTS2PES::write_ipack().

virtual int cRepacker::QuerySnoopSize ( void   )  [inline, virtual]

Reimplemented in cCommonRepacker.

Definition at line 110 of file remux.c.

Referenced by cTS2PES::cTS2PES().

void cRepacker::SetMaxPacketSize ( int  MaxPacketSize  )  [inline]

Definition at line 111 of file remux.c.

References maxPacketSize.

Referenced by cTS2PES::cTS2PES().

void cRepacker::SetSubStreamId ( uint8_t  SubStreamId  )  [inline]

Definition at line 112 of file remux.c.

References subStreamId.

Referenced by cTS2PES::cTS2PES().


Member Data Documentation

bool cRepacker::initiallySyncing [protected]

Definition at line 96 of file remux.c.

Referenced by cDolbyRepacker::BreakAt(), cAudioRepacker::BreakAt(), cVideoRepacker::BreakAt(), cRepacker(), cVideoRepacker::HandleStartCode(), cDolbyRepacker::Repack(), cAudioRepacker::Repack(), cVideoRepacker::Repack(), and Reset().

int cRepacker::maxPacketSize [protected]

Definition at line 97 of file remux.c.

Referenced by cRepacker(), cVideoRepacker::HandleStartCode(), cAudioRepacker::Repack(), cVideoRepacker::Repack(), SetMaxPacketSize(), and cDolbyRepacker::StartNewPacket().

uint8_t cRepacker::subStreamId [protected]

Definition at line 98 of file remux.c.

Referenced by cDolbyRepacker::AppendSubStreamID(), cRepacker(), and SetSubStreamId().

time_t cRepacker::lastLog [protected]

Definition at line 99 of file remux.c.

Referenced by cRepacker(), and LogAllowed().

int cRepacker::suppressedLogMessages [protected]

Definition at line 100 of file remux.c.

Referenced by cRepacker(), and LogAllowed().


The documentation for this class was generated from the following file:
Generated on Tue Nov 6 20:24:26 2007 for VDR by  doxygen 1.5.3-20071008