TSDuck v3.40-4120
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::XDID Class Reference

eXtension Descriptor Id. More...

#include <tsXDID.h>

Public Member Functions

 XDID (DID did=DID_NULL, DID edid=XDID_NULL)
 Constructor.
 
DID did () const
 Get the descriptor id.
 
bool isExtension () const
 Check if the XDID is any form of extension descriptor.
 
bool isExtensionDVB () const
 Check if the XDID is a DVB extension descriptor.
 
bool isExtensionMPEG () const
 Check if the XDID is an MPEG extension descriptor.
 
UString toString () const
 Convert to a string object.
 
DID xdid () const
 Get the extension descriptor id.
 

Detailed Description

eXtension Descriptor Id.

Most descriptors are identified by an 8-bit tag or DID. MPEG and DVB use the concept of "extension descriptor", with one single DID value and several extension descriptor ids. The XDID class encapsulates the two values to create a 16-bits unique identifier.

Note: this type is different from EDID. The XDID takes is intrinsicly linked to the descriptor content: the DID and the optional extension descriptor id. The EDID class is a wider concept which integrate contextual environments such as private descriptors or table-specific descriptor. The EDID is a superset of the XDID.

Constructor & Destructor Documentation

◆ XDID()

ts::XDID::XDID ( DID  did = DID_NULL,
DID  edid = XDID_NULL 
)
inlineexplicit

Constructor.

Parameters
[in]didDescriptor id.
[in]edidExtension descriptor id.

Member Function Documentation

◆ did()

DID ts::XDID::did ( ) const
inline

Get the descriptor id.

Returns
The descriptor id.

◆ xdid()

DID ts::XDID::xdid ( ) const
inline

Get the extension descriptor id.

Returns
The extension descriptor id.

◆ isExtensionMPEG()

bool ts::XDID::isExtensionMPEG ( ) const
inline

Check if the XDID is an MPEG extension descriptor.

Returns
True if the XDID is an MPEG extension descriptor.

◆ isExtensionDVB()

bool ts::XDID::isExtensionDVB ( ) const
inline

Check if the XDID is a DVB extension descriptor.

Returns
True if the XDID is a DVB extension descriptor.

◆ isExtension()

bool ts::XDID::isExtension ( ) const
inline

Check if the XDID is any form of extension descriptor.

Returns
True if the XDID is any form of extension descriptor.

◆ toString()

UString ts::XDID::toString ( ) const

Convert to a string object.

Note: The XDID class does not implement StringifyInterface because we don't want to make it virtual and keep the instance size small, without vtable pointer.

Returns
This object, converted as a string.

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