vdr-plugin-softhddevice-drm-gles 1.5.9-20e15de
h264parser.cpp File Reference

H264 parser class. More...

#include <cassert>
#include <libavcodec/avcodec.h>
#include "h264parser.h"
#include "logger.h"
#include "misc.h"

Go to the source code of this file.

Functions

static void PrintStreamData (const uint8_t *data, int size)
 Print raw stream data.
 
bool isValidStartCode (const uint8_t *data, int offset)
 Returns true, if we have a 0x000001 start code in data at the offset position.
 
static int NalUnitType (const uint8_t *data, int i)
 Return the nal unit type.
 

Detailed Description

H264 parser class.

This file defines cH264Parser which is used to parse width and height from a H264 stream.

Definition in file h264parser.cpp.

Function Documentation

◆ isValidStartCode()

bool isValidStartCode ( const uint8_t *  data,
int  offset 
)

Returns true, if we have a 0x000001 start code in data at the offset position.

Definition at line 59 of file h264parser.cpp.

References ReadBytes().

Referenced by cH264Parser::cH264Parser().

◆ NalUnitType()

static int NalUnitType ( const uint8_t *  data,
int  i 
)
static

Return the nal unit type.

Definition at line 67 of file h264parser.cpp.

Referenced by cH264Parser::cH264Parser().

◆ PrintStreamData()

static void PrintStreamData ( const uint8_t *  data,
int  size 
)
static

Print raw stream data.

Parameters
datapointer to stream data
sizedata size

Definition at line 44 of file h264parser.cpp.

References LOGDEBUG.

Referenced by cH264Parser::cH264Parser(), and cSoftHdDevice::PlayVideoInternal().