TSDuck Version 3.16-1064 (TSDuck - The MPEG Transport Stream Toolkit)
ts::TransportStreamId Struct Reference

Identification of a transport stream. More...

Public Member Functions

 TransportStreamId (uint16_t tsid=0, uint16_t onid=0)
 Constructor. More...
 
uint32_t normalized () const
 Get a "normalized" 32-bit identifier. More...
 
bool operator!= (const TransportStreamId &tsid) const
 Comparison operator. More...
 
bool operator< (const TransportStreamId &tsid) const
 Comparison operator. More...
 
bool operator<= (const TransportStreamId &tsid) const
 Comparison operator. More...
 
bool operator== (const TransportStreamId &tsid) const
 Comparison operator. More...
 
bool operator> (const TransportStreamId &tsid) const
 Comparison operator. More...
 
bool operator>= (const TransportStreamId &tsid) const
 Comparison operator. More...
 

Public Attributes

uint16_t original_network_id
 Original network id.
 
uint16_t transport_stream_id
 Transport stream id.
 

Detailed Description

Identification of a transport stream.

Constructor & Destructor Documentation

◆ TransportStreamId()

ts::TransportStreamId::TransportStreamId ( uint16_t  tsid = 0,
uint16_t  onid = 0 
)
inline

Constructor.

Parameters
[in]tsidTransport stream id.
[in]onidOriginal network id.

Member Function Documentation

◆ normalized()

uint32_t ts::TransportStreamId::normalized ( ) const
inline

Get a "normalized" 32-bit identifier.

The upper 16-bit contain the original network id. The lower 16-bit contain the TS id.

Returns
The "normalized" 32-bit identifier of the TS.

◆ operator==()

bool ts::TransportStreamId::operator== ( const TransportStreamId tsid) const
inline

Comparison operator.

Parameters
[in]tsidAnother instance to compare.
Returns
True if this object == tsid.

◆ operator!=()

bool ts::TransportStreamId::operator!= ( const TransportStreamId tsid) const
inline

Comparison operator.

Parameters
[in]tsidAnother instance to compare.
Returns
True if this object != tsid.

◆ operator<()

bool ts::TransportStreamId::operator< ( const TransportStreamId tsid) const
inline

Comparison operator.

Parameters
[in]tsidAnother instance to compare.
Returns
True if this object < tsid.

◆ operator<=()

bool ts::TransportStreamId::operator<= ( const TransportStreamId tsid) const
inline

Comparison operator.

Parameters
[in]tsidAnother instance to compare.
Returns
True if this object <= tsid.

◆ operator>()

bool ts::TransportStreamId::operator> ( const TransportStreamId tsid) const
inline

Comparison operator.

Parameters
[in]tsidAnother instance to compare.
Returns
True if this object > tsid.

◆ operator>=()

bool ts::TransportStreamId::operator>= ( const TransportStreamId tsid) const
inline

Comparison operator.

Parameters
[in]tsidAnother instance to compare.
Returns
True if this object >= tsid.

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