TSDuck v3.38-3691
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
tsTSPacket.h File Reference

Basic definition of an MPEG-2 transport packet. More...

Classes

class  ts::TSPacket::AdaptationFieldError
 Internal error: access a non-existent adaptation field. More...
 
class  ts::TSPacket
 Basic definition of an MPEG-2 transport packet. More...
 

Namespaces

namespace  ts
 TSDuck namespace, containing all TSDuck classes and functions.
 

Typedefs

using ts::PacketBuffer = ResidentBuffer< TSPacket >
 TS packet are accessed in a memory-resident buffer.
 
using ts::TSPacketPtr = std::shared_ptr< TSPacket >
 Safe pointer for TSPacket.
 
using ts::TSPacketVector = std::vector< TSPacket >
 Vector of packets.
 

Functions

std::ostream & operator<< (std::ostream &strm, const ts::TSPacket &pkt)
 Output operator for the class ts::TSPacket on standard text streams.
 

Variables

const TSPacket ts::EmptyPacket
 This constant is an empty packet (no payload).
 
const TSPacket ts::NullPacket
 This constant is a null (or stuffing) packet.
 

Detailed Description

Basic definition of an MPEG-2 transport packet.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  strm,
const ts::TSPacket pkt 
)
inline

Output operator for the class ts::TSPacket on standard text streams.

Parameters
[in,out]strmA standard stream in output mode.
[in]pktTS packet object.
Returns
A reference to the strm object.