vdr
2.0.7
|
Public Member Functions | |
cH264Parser (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 Types | |
enum | eNalUnitType { nutCodedSliceNonIdr = 1, nutCodedSliceIdr = 5, nutSequenceParameterSet = 7, nutAccessUnitDelimiter = 9 } |
Private Member Functions | |
uchar | GetByte (bool Raw=false) |
uchar | GetBit (void) |
uint32_t | GetBits (int Bits) |
uint32_t | GetGolombUe (void) |
int32_t | GetGolombSe (void) |
void | ParseAccessUnitDelimiter (void) |
void | ParseSequenceParameterSet (void) |
void | ParseSliceHeader (void) |
Private Attributes | |
cTsPayload | tsPayload |
uchar | byte |
int | bit |
int | zeroBytes |
uint32_t | scanner |
bool | separate_colour_plane_flag |
int | log2_max_frame_num |
bool | frame_mbs_only_flag |
bool | gotAccessUnitDelimiter |
bool | gotSequenceParameterSet |
Additional Inherited Members | |
![]() | |
bool | debug |
bool | newFrame |
bool | independentFrame |
int | iFrameTemporalReferenceOffset |
|
private |
cH264Parser::cH264Parser | ( | void | ) |
Sets up a new H.264 parser.
This class parses only the data absolutely necessary to determine the frame borders and field count of the given H264 material.
Definition at line 1294 of file remux.c.
References bit, byte, EMPTY_SCANNER, frame_mbs_only_flag, gotAccessUnitDelimiter, gotSequenceParameterSet, log2_max_frame_num, scanner, separate_colour_plane_flag, and zeroBytes.
|
private |
Definition at line 1326 of file remux.c.
References bit, byte, and GetByte().
Referenced by GetBits(), GetGolombUe(), ParseSequenceParameterSet(), and ParseSliceHeader().
|
private |
Definition at line 1335 of file remux.c.
References GetBit().
Referenced by GetGolombUe(), and ParseSliceHeader().
|
private |
Gets the next data byte.
If Raw is true, no filtering will be done. With Raw set to false, if the byte sequence 0x000003 is encountered, the byte with 0x03 will be skipped.
Definition at line 1307 of file remux.c.
References bit, cTsPayload::GetByte(), tsPayload, and zeroBytes.
Referenced by GetBit(), Parse(), ParseAccessUnitDelimiter(), and ParseSequenceParameterSet().
|
private |
Definition at line 1351 of file remux.c.
References GetGolombUe().
Referenced by ParseSequenceParameterSet().
|
private |
Definition at line 1343 of file remux.c.
References GetBit(), and GetBits().
Referenced by GetGolombSe(), ParseSequenceParameterSet(), and ParseSliceHeader().
|
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 1363 of file remux.c.
References cTsPayload::AtPayloadStart(), dbgframes, cFrameParser::debug, EMPTY_SCANNER, cTsPayload::Eof(), GetByte(), gotAccessUnitDelimiter, gotSequenceParameterSet, cFrameParser::independentFrame, cFrameParser::newFrame, nutAccessUnitDelimiter, nutCodedSliceIdr, nutCodedSliceNonIdr, nutSequenceParameterSet, ParseAccessUnitDelimiter(), ParseSequenceParameterSet(), ParseSliceHeader(), scanner, cTsPayload::Setup(), cTsPayload::SkipPesHeader(), cTsPayload::Statistics(), tsPayload, TsPayloadStart(), and cTsPayload::Used().
|
private |
Definition at line 1406 of file remux.c.
References dbgframes, cFrameParser::debug, GetByte(), and gotSequenceParameterSet.
Referenced by Parse().
|
private |
Definition at line 1413 of file remux.c.
References dbgframes, cFrameParser::debug, frame_mbs_only_flag, GetBit(), GetByte(), GetGolombSe(), GetGolombUe(), gotAccessUnitDelimiter, gotSequenceParameterSet, log2_max_frame_num, and separate_colour_plane_flag.
Referenced by Parse().
|
private |
Definition at line 1465 of file remux.c.
References dbgframes, cFrameParser::debug, frame_mbs_only_flag, GetBit(), GetBits(), GetGolombUe(), cFrameParser::independentFrame, log2_max_frame_num, cFrameParser::newFrame, and separate_colour_plane_flag.
Referenced by Parse().
|
private |
Definition at line 1265 of file remux.c.
Referenced by cH264Parser(), GetBit(), and GetByte().
|
private |
Definition at line 1264 of file remux.c.
Referenced by cH264Parser(), and GetBit().
|
private |
Definition at line 1271 of file remux.c.
Referenced by cH264Parser(), ParseSequenceParameterSet(), and ParseSliceHeader().
|
private |
Definition at line 1273 of file remux.c.
Referenced by cH264Parser(), Parse(), and ParseSequenceParameterSet().
|
private |
Definition at line 1274 of file remux.c.
Referenced by cH264Parser(), Parse(), ParseAccessUnitDelimiter(), and ParseSequenceParameterSet().
|
private |
Definition at line 1270 of file remux.c.
Referenced by cH264Parser(), ParseSequenceParameterSet(), and ParseSliceHeader().
|
private |
Definition at line 1267 of file remux.c.
Referenced by cH264Parser(), and Parse().
|
private |
Definition at line 1269 of file remux.c.
Referenced by cH264Parser(), ParseSequenceParameterSet(), and ParseSliceHeader().
|
private |
|
private |
Definition at line 1266 of file remux.c.
Referenced by cH264Parser(), and GetByte().