vdr 2.7.7
|
Public Member Functions | |
cMpeg2Parser (void) | |
virtual int | Parse (const uchar *Data, int Length, int Pid) override |
Public Member Functions inherited from cFrameParser | |
cFrameParser (void) | |
virtual | ~cFrameParser () |
void | SetDebug (bool Debug) |
bool | NewFrame (void) |
bool | IndependentFrame (void) |
int | IFrameTemporalReferenceOffset (void) |
uint16_t | FrameWidth (void) |
uint16_t | FrameHeight (void) |
double | FramesPerSecond (void) |
eScanType | ScanType (void) |
eAspectRatio | AspectRatio (void) |
Private Attributes | |
uint32_t | scanner |
bool | seenIndependentFrame |
int | lastIFrameTemporalReference |
bool | seenScanType |
const double | frame_rate_table [9] |
Additional Inherited Members | |
Protected Attributes inherited from cFrameParser | |
bool | debug |
bool | newFrame |
bool | independentFrame |
int | iFrameTemporalReferenceOffset |
uint16_t | frameWidth |
uint16_t | frameHeight |
double | framesPerSecond |
eScanType | scanType |
eAspectRatio | aspectRatio |
cMpeg2Parser::cMpeg2Parser | ( | void | ) |
Definition at line 1266 of file remux.c.
References EMPTY_SCANNER, lastIFrameTemporalReference, scanner, seenIndependentFrame, and seenScanType.
|
overridevirtual |
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 1274 of file remux.c.
References ar_16_9, ar_1_1, ar_2_21_1, ar_4_3, arUnknown, cFrameParser::aspectRatio, AspectRatioTexts, cTsPayload::AtPayloadStart(), cTsPayload::AtTsStart(), dbgframes, cFrameParser::debug, dsyslog, EMPTY_SCANNER, cTsPayload::Eof(), cTsPayload::Find(), frame_rate_table, cFrameParser::frameHeight, cFrameParser::framesPerSecond, cFrameParser::frameWidth, cTsPayload::GetByte(), cTsPayload::GetLastIndex(), cFrameParser::iFrameTemporalReferenceOffset, cFrameParser::independentFrame, lastIFrameTemporalReference, cFrameParser::newFrame, scanner, cFrameParser::scanType, ScanTypeChars, seenIndependentFrame, seenScanType, cTsPayload::SkipPesHeader(), cString::sprintf(), cTsPayload::Statistics(), stInterlaced, stProgressive, TS_SIZE, TsPayloadStart(), and cTsPayload::Used().
|
private |
|
private |
Definition at line 1248 of file remux.c.
Referenced by cMpeg2Parser(), and Parse().
|
private |
Definition at line 1246 of file remux.c.
Referenced by cMpeg2Parser(), and Parse().
|
private |
Definition at line 1247 of file remux.c.
Referenced by cMpeg2Parser(), and Parse().
|
private |
Definition at line 1249 of file remux.c.
Referenced by cMpeg2Parser(), and Parse().