vdr-plugin-softhddevice-drm-gles 1.4.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cH264Parser Class Reference

cH264Parser - H264 Parser class More...

#include <h264parser.h>

Public Member Functions

 cH264Parser (AVPacket *)
 cH264Parser constructor More...
 
virtual ~cH264Parser (void)
 cH264Parser destructor More...
 
void GetDimensions (int *, int *)
 Get width and height from stream. More...
 

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
 

Detailed Description

cH264Parser - H264 Parser class

Definition at line 30 of file h264parser.h.

Constructor & Destructor Documentation

◆ cH264Parser()

cH264Parser::cH264Parser ( AVPacket *  avpkt)

cH264Parser constructor

Parameters
avpktvideo stream AVPacket to analyze

Definition at line 43 of file h264parser.cpp.

References m_pAvpkt.

◆ ~cH264Parser()

cH264Parser::~cH264Parser ( void  )
virtual

cH264Parser destructor

Definition at line 51 of file h264parser.cpp.

Member Function Documentation

◆ GetDimensions()

void cH264Parser::GetDimensions ( int *  width,
int *  height 
)

Get width and height from stream.

Parameters
[out]widthvideo stream width
[out]heightvideo stream height

Definition at line 61 of file h264parser.cpp.

References LOGERROR, m_nCurrentBit, m_nLength, m_pAvpkt, m_pStart, ReadBit(), ReadBits(), ReadExponentialGolombCode(), and ReadSE().

Referenced by cVideoStream::DecodeInput().

◆ ReadBit()

unsigned int cH264Parser::ReadBit ( void  )
private

Definition at line 181 of file h264parser.cpp.

References m_nCurrentBit, m_nLength, and m_pStart.

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

◆ ReadBits()

unsigned int cH264Parser::ReadBits ( int  n)
private

Definition at line 191 of file h264parser.cpp.

References ReadBit().

Referenced by GetDimensions(), and ReadExponentialGolombCode().

◆ ReadExponentialGolombCode()

unsigned int cH264Parser::ReadExponentialGolombCode ( void  )
private

Definition at line 201 of file h264parser.cpp.

References ReadBit(), and ReadBits().

Referenced by GetDimensions(), and ReadSE().

◆ ReadSE()

unsigned int cH264Parser::ReadSE ( void  )
private

Definition at line 215 of file h264parser.cpp.

References ReadExponentialGolombCode().

Referenced by GetDimensions().

Member Data Documentation

◆ m_nCurrentBit

int cH264Parser::m_nCurrentBit
private

Definition at line 40 of file h264parser.h.

Referenced by GetDimensions(), and ReadBit().

◆ m_nLength

unsigned short cH264Parser::m_nLength
private

Definition at line 39 of file h264parser.h.

Referenced by GetDimensions(), and ReadBit().

◆ m_pAvpkt

AVPacket* cH264Parser::m_pAvpkt
private

Definition at line 37 of file h264parser.h.

Referenced by cH264Parser(), and GetDimensions().

◆ m_pStart

const unsigned char* cH264Parser::m_pStart
private

Definition at line 38 of file h264parser.h.

Referenced by GetDimensions(), and ReadBit().


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