vdr  2.4.0
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Attributes | List of all members
cH264Parser Class Reference
Collaboration diagram for cH264Parser:
[legend]

Public Member Functions

 cH264Parser (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)
 
int IFrameTemporalReferenceOffset (void)
 

Protected 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)
 

Protected Attributes

cTsPayload tsPayload
 
uint32_t scanner
 
bool gotAccessUnitDelimiter
 
bool gotSequenceParameterSet
 
- Protected Attributes inherited from cFrameParser
bool debug
 
bool newFrame
 
bool independentFrame
 
int iFrameTemporalReferenceOffset
 

Private Types

enum  eNalUnitType { nutCodedSliceNonIdr = 1, nutCodedSliceIdr = 5, nutSequenceParameterSet = 7, nutAccessUnitDelimiter = 9 }
 

Private Attributes

uchar byte
 
int bit
 
int zeroBytes
 
bool separate_colour_plane_flag
 
int log2_max_frame_num
 
bool frame_mbs_only_flag
 

Detailed Description

Definition at line 1302 of file remux.c.

Member Enumeration Documentation

Enumerator
nutCodedSliceNonIdr 
nutCodedSliceIdr 
nutSequenceParameterSet 
nutAccessUnitDelimiter 

Definition at line 1304 of file remux.c.

Constructor & Destructor Documentation

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 1341 of file remux.c.

References EMPTY_SCANNER.

Referenced by cFrameDetector::SetPid().

Member Function Documentation

uchar cH264Parser::GetBit ( void  )
protected

Definition at line 1373 of file remux.c.

Referenced by cH265Parser::Parse().

uint32_t cH264Parser::GetBits ( int  Bits)
protected

Definition at line 1382 of file remux.c.

uchar cH264Parser::GetByte ( bool  Raw = false)
protected

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 1354 of file remux.c.

Referenced by cH265Parser::Parse().

int32_t cH264Parser::GetGolombSe ( void  )
protected

Definition at line 1398 of file remux.c.

uint32_t cH264Parser::GetGolombUe ( void  )
protected

Definition at line 1390 of file remux.c.

int cH264Parser::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.

Reimplemented in cH265Parser.

Definition at line 1410 of file remux.c.

References dbgframes, EMPTY_SCANNER, and TsPayloadStart().

void cH264Parser::ParseAccessUnitDelimiter ( void  )
protected

Definition at line 1453 of file remux.c.

References dbgframes.

void cH264Parser::ParseSequenceParameterSet ( void  )
protected

Definition at line 1460 of file remux.c.

References dbgframes.

void cH264Parser::ParseSliceHeader ( void  )
protected

Definition at line 1512 of file remux.c.

References dbgframes.

Member Data Documentation

int cH264Parser::bit
private

Definition at line 1311 of file remux.c.

uchar cH264Parser::byte
private

Definition at line 1310 of file remux.c.

bool cH264Parser::frame_mbs_only_flag
private

Definition at line 1316 of file remux.c.

bool cH264Parser::gotAccessUnitDelimiter
protected

Definition at line 1320 of file remux.c.

bool cH264Parser::gotSequenceParameterSet
protected

Definition at line 1321 of file remux.c.

int cH264Parser::log2_max_frame_num
private

Definition at line 1315 of file remux.c.

uint32_t cH264Parser::scanner
protected

Definition at line 1319 of file remux.c.

Referenced by cH265Parser::Parse().

bool cH264Parser::separate_colour_plane_flag
private

Definition at line 1314 of file remux.c.

cTsPayload cH264Parser::tsPayload
protected

Definition at line 1318 of file remux.c.

Referenced by cH265Parser::Parse().

int cH264Parser::zeroBytes
private

Definition at line 1312 of file remux.c.


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