Shaka Packager SDK
Public Member Functions | List of all members
shaka::media::mp2t::PesPacket Class Reference

Class that carries PES packet information. More...

#include <pes_packet.h>

Public Member Functions

uint8_t stream_id () const
 
void set_stream_id (uint8_t stream_id)
 
bool has_dts () const
 
bool has_pts () const
 
int64_t dts () const
 
void set_dts (int64_t dts)
 
int64_t pts () const
 
void set_pts (int64_t pts)
 
bool is_key_frame () const
 
void set_is_key_frame (bool is_key_frame)
 
const std::vector< uint8_t > & data () const
 
std::vector< uint8_t > * mutable_data ()
 

Detailed Description

Class that carries PES packet information.

Definition at line 20 of file pes_packet.h.

Member Function Documentation

◆ dts()

int64_t shaka::media::mp2t::PesPacket::dts ( ) const
inline
Returns
dts.

Definition at line 36 of file pes_packet.h.

◆ has_dts()

bool shaka::media::mp2t::PesPacket::has_dts ( ) const
inline
Returns
true if dts has been set.

Definition at line 31 of file pes_packet.h.

◆ has_pts()

bool shaka::media::mp2t::PesPacket::has_pts ( ) const
inline
Returns
true if pts has been set.

Definition at line 33 of file pes_packet.h.

◆ is_key_frame()

bool shaka::media::mp2t::PesPacket::is_key_frame ( ) const
inline
Returns
whether it is a key frame.

Definition at line 50 of file pes_packet.h.

◆ mutable_data()

std::vector<uint8_t>* shaka::media::mp2t::PesPacket::mutable_data ( )
inline
Returns
mutable data for this PES.

Definition at line 56 of file pes_packet.h.

◆ pts()

int64_t shaka::media::mp2t::PesPacket::pts ( ) const
inline
Returns
pts.

Definition at line 43 of file pes_packet.h.

◆ set_dts()

void shaka::media::mp2t::PesPacket::set_dts ( int64_t  dts)
inline
Parameters
dtsis the dts for this PES packet.

Definition at line 38 of file pes_packet.h.

◆ set_is_key_frame()

void shaka::media::mp2t::PesPacket::set_is_key_frame ( bool  is_key_frame)
inline
Parameters
is_key_frameindicates whether it is a key frame.

Definition at line 52 of file pes_packet.h.

◆ set_pts()

void shaka::media::mp2t::PesPacket::set_pts ( int64_t  pts)
inline
Parameters
ptsis the pts for this PES packet.

Definition at line 45 of file pes_packet.h.

◆ set_stream_id()

void shaka::media::mp2t::PesPacket::set_stream_id ( uint8_t  stream_id)
inline
Parameters
stream_idis used to set the stream ID.

Definition at line 28 of file pes_packet.h.

◆ stream_id()

uint8_t shaka::media::mp2t::PesPacket::stream_id ( ) const
inline
Returns
the stream ID of the data that's carried by the PES packete.

Definition at line 26 of file pes_packet.h.


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