vdr-plugin-softhddevice-drm-gles 1.6.2
cPesAudio Class Reference

Audio PES Packet Parser. More...

#include <pes.h>

Public Member Functions

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

Private Member Functions

bool IsStreamIdValid (void) override
 
bool IsPrivateStreamId (void)
 

Additional Inherited Members

- Protected Member Functions inherited from cPes
void Init (void)
 Initialize and validate the PES packet.
 
bool IsHeaderValid (void)
 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_tm_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

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 77 of file pes.h.

Constructor & Destructor Documentation

◆ cPesAudio()

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

Definition at line 79 of file pes.h.

References cPes::Init().

Member Function Documentation

◆ IsAudioStreamId()

bool cPesAudio::IsAudioStreamId ( void  )
inline

Definition at line 80 of file pes.h.

References cPes::GetStreamId().

Referenced by IsStreamIdValid().

◆ IsPrivateStreamId()

bool cPesAudio::IsPrivateStreamId ( void  )
inlineprivate

Definition at line 83 of file pes.h.

References cPes::GetStreamId().

Referenced by IsStreamIdValid().

◆ IsStreamIdValid()

bool cPesAudio::IsStreamIdValid ( void  )
inlineoverrideprivatevirtual

Implements cPes.

Definition at line 82 of file pes.h.

References IsAudioStreamId(), and IsPrivateStreamId().


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