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

PTS Tracking Buffer. More...

#include <pes.h>

Public Member Functions

 cPtsTrackingBuffer (const char *identifier)
 
void Push (const uint8_t *, int, int64_t)
 Push data into the PTS tracking buffer.
 
void Erase (size_t)
 Erase data from the beginning of the buffer.
 
int64_t GetPts (void)
 Get the PTS value for the current buffer position.
 
const uint8_tPeek (void)
 
void Reset (void)
 
int GetSize (void)
 
const charGetIdentifier (void)
 

Private Attributes

const charm_identifier
 
std::map< size_t, int64_tm_pts
 Map of buffer positions to PTS values.
 
std::vector< uint8_tm_data
 Byte buffer.
 

Detailed Description

PTS Tracking Buffer.

Manages a byte buffer along with a map of PTS (Presentation Time Stamp) values associated with specific positions in the buffer. This is used for maintaining temporal information when reassembling fragmented streams.

Definition at line 93 of file pes.h.

Constructor & Destructor Documentation

◆ cPtsTrackingBuffer()

cPtsTrackingBuffer::cPtsTrackingBuffer ( const char identifier)
inline

Definition at line 95 of file pes.h.

Member Function Documentation

◆ GetIdentifier()

const char * cPtsTrackingBuffer::GetIdentifier ( void  )
inline

Definition at line 102 of file pes.h.

References m_identifier.

◆ GetSize()

◆ Peek()

const uint8_t * cPtsTrackingBuffer::Peek ( void  )
inline

◆ Reset()

void cPtsTrackingBuffer::Reset ( void  )
inline

Definition at line 100 of file pes.h.

References m_data, and m_pts.

Referenced by cReassemblyBuffer::Reset(), and TEST_CASE().

Member Data Documentation

◆ m_data

std::vector<uint8_t> cPtsTrackingBuffer::m_data
private

Byte buffer.

Definition at line 106 of file pes.h.

Referenced by Erase(), GetSize(), Peek(), Push(), and Reset().

◆ m_identifier

const char* cPtsTrackingBuffer::m_identifier
private

Definition at line 104 of file pes.h.

Referenced by Erase(), and GetIdentifier().

◆ m_pts

std::map<size_t, int64_t> cPtsTrackingBuffer::m_pts
private

Map of buffer positions to PTS values.

Definition at line 105 of file pes.h.

Referenced by Erase(), GetPts(), Push(), and Reset().


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