vdr-plugin-softhddevice-drm-gles 1.5.9-20e15de
cH264Parser Class Reference

cH264Parser - H264 Parser class More...

#include <h264parser.h>

Public Member Functions

 cH264Parser (AVPacket *)
 Init the h264 parser and detect the nalu types.
 
int GetWidth (void)
 
int GetHeight (void)
 
bool IsIFrame (void)
 
bool IsMbaff (void)
 

Private Member Functions

unsigned int ReadBit (void)
 
unsigned int ReadBits (int)
 
unsigned int ReadExponentialGolombCode (void)
 
unsigned int ReadSE (void)
 

Private Attributes

AVPacket * m_pAvpkt
 
const unsigned char * m_pStart
 
unsigned short m_nLength
 
int m_nCurrentBit
 
int m_nalutype = 0
 
int m_width = 0
 
int m_height = 0
 
bool m_mbaff = false
 

Detailed Description

cH264Parser - H264 Parser class

Definition at line 39 of file h264parser.h.

Constructor & Destructor Documentation

◆ cH264Parser()

cH264Parser::cH264Parser ( AVPacket *  avpkt)

Member Function Documentation

◆ GetHeight()

int cH264Parser::GetHeight ( void  )
inline

Definition at line 44 of file h264parser.h.

References m_height.

Referenced by cVideoStream::OpenDecoder().

◆ GetWidth()

int cH264Parser::GetWidth ( void  )
inline

Definition at line 43 of file h264parser.h.

References m_width.

Referenced by cVideoStream::OpenDecoder().

◆ IsIFrame()

bool cH264Parser::IsIFrame ( void  )

◆ IsMbaff()

bool cH264Parser::IsMbaff ( void  )
inline

Definition at line 46 of file h264parser.h.

References m_mbaff.

◆ ReadBit()

unsigned int cH264Parser::ReadBit ( void  )
private

Definition at line 250 of file h264parser.cpp.

References m_nCurrentBit, m_nLength, and m_pStart.

Referenced by cH264Parser(), ReadBits(), and ReadExponentialGolombCode().

◆ ReadBits()

unsigned int cH264Parser::ReadBits ( int  n)
private

Definition at line 260 of file h264parser.cpp.

References ReadBit().

Referenced by cH264Parser(), and ReadExponentialGolombCode().

◆ ReadExponentialGolombCode()

unsigned int cH264Parser::ReadExponentialGolombCode ( void  )
private

Definition at line 270 of file h264parser.cpp.

References ReadBit(), and ReadBits().

Referenced by cH264Parser(), and ReadSE().

◆ ReadSE()

unsigned int cH264Parser::ReadSE ( void  )
private

Definition at line 284 of file h264parser.cpp.

References ReadExponentialGolombCode().

Referenced by cH264Parser().

Member Data Documentation

◆ m_height

int cH264Parser::m_height = 0
private

Definition at line 57 of file h264parser.h.

Referenced by cH264Parser(), and GetHeight().

◆ m_mbaff

bool cH264Parser::m_mbaff = false
private

Definition at line 58 of file h264parser.h.

Referenced by cH264Parser(), and IsMbaff().

◆ m_nalutype

int cH264Parser::m_nalutype = 0
private

Definition at line 54 of file h264parser.h.

Referenced by cH264Parser(), and IsIFrame().

◆ m_nCurrentBit

int cH264Parser::m_nCurrentBit
private

Definition at line 52 of file h264parser.h.

Referenced by cH264Parser(), and ReadBit().

◆ m_nLength

unsigned short cH264Parser::m_nLength
private

Definition at line 51 of file h264parser.h.

Referenced by cH264Parser(), and ReadBit().

◆ m_pAvpkt

AVPacket* cH264Parser::m_pAvpkt
private

Definition at line 49 of file h264parser.h.

Referenced by cH264Parser().

◆ m_pStart

const unsigned char* cH264Parser::m_pStart
private

Definition at line 50 of file h264parser.h.

Referenced by cH264Parser(), and ReadBit().

◆ m_width

int cH264Parser::m_width = 0
private

Definition at line 56 of file h264parser.h.

Referenced by cH264Parser(), and GetWidth().


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