vdr  2.0.5
Public Member Functions | Private Attributes | List of all members
cMpeg2Parser Class Reference

Public Member Functions

 cMpeg2Parser (void)
 
virtual int Parse (const uchar *Data, int Length, int Pid)
 
- Public Member Functions inherited from cFrameParser
 cFrameParser (void)
 
virtual ~cFrameParser ()
 
void SetDebug (bool Debug)
 
bool NewFrame (void)
 
bool IndependentFrame (void)
 

Private Attributes

uint32_t scanner
 
bool seenIndependentFrame
 

Additional Inherited Members

- Protected Attributes inherited from cFrameParser
bool debug
 
bool newFrame
 
bool independentFrame
 

Detailed Description

Definition at line 1144 of file remux.c.

Constructor & Destructor Documentation

cMpeg2Parser::cMpeg2Parser ( void  )

Definition at line 1153 of file remux.c.

References EMPTY_SCANNER, scanner, and seenIndependentFrame.

Member Function Documentation

int cMpeg2Parser::Parse ( const uchar Data,
int  Length,
int  Pid 
)
virtual

Parses the given Data, which is a sequence of Length bytes of TS packets.

The payload in the TS packets with the given Pid is searched for just enough information to determine the beginning and type of the next video frame. Returns the number of bytes parsed. Upon return, the functions NewFrame() and IndependentFrame() can be called to retrieve the required information.

Implements cFrameParser.

Definition at line 1159 of file remux.c.

References cTsPayload::AtPayloadStart(), cTsPayload::AtTsStart(), cTsPayload::Available(), dbgframes, cFrameParser::debug, EMPTY_SCANNER, cTsPayload::GetByte(), cTsPayload::GetLastIndex(), cFrameParser::independentFrame, MIN_TS_PACKETS_FOR_FRAME_DETECTOR, cFrameParser::newFrame, scanner, seenIndependentFrame, cTsPayload::SkipPesHeader(), TS_SIZE, TsPayloadStart(), and cTsPayload::Used().

Member Data Documentation

uint32_t cMpeg2Parser::scanner
private

Definition at line 1146 of file remux.c.

Referenced by cMpeg2Parser(), and Parse().

bool cMpeg2Parser::seenIndependentFrame
private

Definition at line 1147 of file remux.c.

Referenced by cMpeg2Parser(), and Parse().


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