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

Video PES packet parser. More...

#include <pes.h>

Public Member Functions

 cPesVideo (const uint8_t *data, int size)
 
- Public Member Functions inherited from cPes
 cPes (const uint8_t *, int)
 Construct a PES packet parser.
 
bool IsValid ()
 Check if the PES packet is valid.
 
bool HasPts ()
 Check if the PES packet contains a Presentation Time Stamp (PTS)
 
int64_t GetPts ()
 Get the Presentation Time Stamp (PTS) from the PES header.
 
const uint8_t * GetPayload ()
 Get a pointer to the PES payload data.
 
int GetPayloadSize ()
 Get the size of the PES payload.
 
int GetPacketLength ()
 Get the total length of the PES packet.
 
uint8_t GetStreamId ()
 

Private Member Functions

bool IsStreamIdValid () override
 

Additional Inherited Members

- Protected Member Functions inherited from cPes
void Init ()
 Initialize and validate the PES packet.
 
bool IsHeaderValid ()
 Check if the PES header is valid.
 
- Protected Attributes inherited from cPes
bool m_valid = false
 flag indicating if the PES packet is valid
 
const uint8_t * m_data
 pointer to the raw PES packet data
 
int m_size
 size of the PES packet
 
- Static Protected Attributes inherited from cPes
static constexpr uint32_t PES_PACKET_START_CODE_PREFIX = 0x00'0001
 
static constexpr uint32_t PES_PACKET_START_CODE_PREFIX_LEN = 3
 

Detailed Description

Video PES packet parser.

Specialized parser for video PES packets with stream IDs in the range 0xE0-0xEF.

Definition at line 68 of file pes.h.

Constructor & Destructor Documentation

◆ cPesVideo()

cPesVideo::cPesVideo ( const uint8_t *  data,
int  size 
)
inline

Definition at line 70 of file pes.h.

References cPes::Init().

Member Function Documentation

◆ IsStreamIdValid()

bool cPesVideo::IsStreamIdValid ( )
inlineoverrideprivatevirtual

Implements cPes.

Definition at line 72 of file pes.h.

References cPes::GetStreamId().


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