vdr
2.2.0
|
Public Member Functions | |
cMpeg2Parser (void) | |
virtual int | Parse (const uchar *Data, int Length, int Pid) |
![]() | |
cFrameParser (void) | |
virtual | ~cFrameParser () |
void | SetDebug (bool Debug) |
bool | NewFrame (void) |
bool | IndependentFrame (void) |
int | IFrameTemporalReferenceOffset (void) |
Private Attributes | |
uint32_t | scanner |
bool | seenIndependentFrame |
int | lastIFrameTemporalReference |
Additional Inherited Members | |
![]() | |
bool | debug |
bool | newFrame |
bool | independentFrame |
int | iFrameTemporalReferenceOffset |
cMpeg2Parser::cMpeg2Parser | ( | void | ) |
Definition at line 1221 of file remux.c.
References EMPTY_SCANNER.
|
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 1228 of file remux.c.
References cTsPayload::AtPayloadStart(), cTsPayload::AtTsStart(), dbgframes, EMPTY_SCANNER, cTsPayload::Eof(), cTsPayload::Find(), cTsPayload::GetByte(), cTsPayload::GetLastIndex(), cTsPayload::SkipPesHeader(), cTsPayload::Statistics(), TS_SIZE, TsPayloadStart(), and cTsPayload::Used().