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

Audio PES packet parser. More...

#include <pes.h>

Collaboration diagram for cPesAudio:
Collaboration graph
[legend]

Public Member Functions

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

Private Member Functions

bool IsStreamIdValid () override
 
bool IsPrivateStreamId ()
 

Additional Inherited Members

- Protected Member Functions inherited from cPes
virtual bool IsStreamIdValid ()=0
 
void Init ()
 Initialize and validate the PES packet. More...
 
bool IsHeaderValid ()
 Check if the PES header is valid. More...
 
- Protected Attributes inherited from cPes
bool m_valid = false
 flag indicating if the PES packet is valid More...
 
const uint8_t * m_data
 pointer to the raw PES packet data More...
 
int m_size
 size of the PES packet More...
 
- 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

Audio PES packet parser.

Specialized parser for audio PES packets with stream IDs in the range 0xC0-0xCF, or private stream ID 0xBD which may contain audio data.

Definition at line 83 of file pes.h.

Constructor & Destructor Documentation

◆ cPesAudio()

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

Definition at line 85 of file pes.h.

References cPes::Init().

Member Function Documentation

◆ IsAudioStreamId()

bool cPesAudio::IsAudioStreamId ( )
inline

Definition at line 86 of file pes.h.

References cPes::GetStreamId().

Referenced by IsStreamIdValid().

◆ IsPrivateStreamId()

bool cPesAudio::IsPrivateStreamId ( )
inlineprivate

Definition at line 89 of file pes.h.

References cPes::GetStreamId().

Referenced by IsStreamIdValid().

◆ IsStreamIdValid()

bool cPesAudio::IsStreamIdValid ( )
inlineoverrideprivatevirtual

Implements cPes.

Definition at line 88 of file pes.h.

References IsAudioStreamId(), and IsPrivateStreamId().


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