TSDuck Version 3.24-2004 (TSDuck - The MPEG Transport Stream Toolkit)
ts::names Namespace Reference

Namespace for functions returning MPEG/DVB names. More...

Enumerations

enum  Flags : uint16_t {
  NAME = 0x0000,
  VALUE = 0x0001,
  FIRST = 0x0002,
  HEXA = 0x0004,
  DECIMAL = 0x0008,
  BOTH = HEXA | DECIMAL,
  HEXA_FIRST = FIRST | HEXA,
  DECIMAL_FIRST = FIRST | DECIMAL,
  BOTH_FIRST = FIRST | HEXA | DECIMAL,
  ALTERNATE = 0x0010,
  NAME_OR_VALUE = 0x0020
}
 Flags to be used in the formating of MPEG/DVB names. More...
 

Functions

UString AC3ComponentType (uint8_t t, Flags flags=NAME)
 Name of AC-3 Component Type. More...
 
UString AspectRatio (uint8_t a, Flags flags=NAME)
 Name of aspect ratio values (in MPEG-1/2 video sequence header). More...
 
UString AudioType (uint8_t at, Flags flags=NAME)
 Name of audio type (in ISO639 Language Descriptor). More...
 
UString AVCProfile (int p, Flags flags=NAME)
 Name of AVC (ISO 14496-10, ITU H.264) profile. More...
 
UString AVCUnitType (uint8_t ut, Flags flags=NAME)
 Name of AVC (ISO 14496-10, ITU H.264) access unit (aka "NALunit") type. More...
 
UString BouquetId (uint16_t id, Flags flags=NAME)
 Name of Bouquet Id. More...
 
UString CASFamily (ts::CASFamily cas)
 Name of Conditional Access Families. More...
 
UString CASId (const DuckContext &duck, uint16_t casid, Flags flags=NAME)
 Name of Conditional Access System Id (in CA Descriptor). More...
 
UString ChromaFormat (uint8_t c, Flags flags=NAME)
 Name of Chroma format values (in MPEG-1/2 video sequence header). More...
 
UString ComponentType (const DuckContext &duck, uint16_t ct, Flags flags=NAME)
 Name of Component Type (in Component Descriptor). More...
 
UString Content (uint8_t c, Flags flags=NAME)
 Name of content name (in Content Descriptor). More...
 
UString DataBroadcastId (uint16_t id, Flags flags=NAME)
 Name of Data broadcast id (in Data Broadcast Id Descriptor). More...
 
UString DID (uint8_t did, uint32_t pds=0, uint8_t tid=0xFF, Flags flags=NAME)
 Name of Descriptor ID. More...
 
UString DTSBitRateCode (uint8_t c, Flags flags=NAME)
 Name of DTS Audio Bit Rate Code. More...
 
UString DTSExtendedSurroundMode (uint8_t mode, Flags flags=NAME)
 Name of DTS Audio Extended Surround Mode. More...
 
UString DTSSampleRateCode (uint8_t c, Flags flags=NAME)
 Name of DTS Audio Sample Rate code. More...
 
UString DTSSurroundMode (uint8_t mode, Flags flags=NAME)
 Name of DTS Audio Surround Mode. More...
 
UString EDID (uint8_t edid, Flags flags=NAME)
 Name of Extended descriptor ID. More...
 
bool HasTableSpecificName (uint8_t did, uint8_t tid)
 Check if a descriptor id has a specific name for a given table. More...
 
UString LinkageType (uint8_t lt, Flags flags=NAME)
 Name of linkage type (in Linkage Descriptor). More...
 
UString NetworkId (uint16_t id, Flags flags=NAME)
 Name of Network Id. More...
 
UString OriginalNetworkId (uint16_t id, Flags flags=NAME)
 Name of Original Network Id. More...
 
UString OUI (uint32_t oui, Flags flags=NAME)
 Name of OUI (IEEE-assigned Organizationally Unique Identifier), 24 bits. More...
 
UString PESStartCode (uint8_t code, Flags flags=NAME)
 Name of PES start code value. More...
 
UString PlatformId (uint32_t id, Flags flags=NAME)
 Name of Platform Id. More...
 
UString PrivateDataSpecifier (uint32_t pds, Flags flags=NAME)
 Name of Private Data Specifier. More...
 
UString RunningStatus (uint8_t rs, Flags flags=NAME)
 Name of Running Status (in SDT). More...
 
UString ScramblingControl (uint8_t sc, Flags flags=NAME)
 Name of scrambling control value in TS header. More...
 
UString ServiceType (uint8_t st, Flags flags=NAME)
 Name of service type (in Service Descriptor). More...
 
UString StreamId (uint8_t sid, Flags flags=NAME)
 Name of Stream ID (in PES header). More...
 
UString StreamType (uint8_t st, Flags flags=NAME)
 Name of Stream type (in PMT). More...
 
UString SubtitlingType (uint8_t st, Flags flags=NAME)
 Name of subtitling type (in Subtitling Descriptor). More...
 
UString T2MIPacketType (uint8_t type, Flags flags=NAME)
 Name of T2-MI packet type. More...
 
UString TeletextType (uint8_t tt, Flags flags=NAME)
 Name of Teletext type (in Teletext Descriptor). More...
 
UString TID (const DuckContext &duck, uint8_t tid, uint16_t cas=CASID_NULL, Flags flags=NAME)
 Name of Table ID. More...
 

Detailed Description

Namespace for functions returning MPEG/DVB names.

Enumeration Type Documentation

◆ Flags

enum ts::names::Flags : uint16_t

Flags to be used in the formating of MPEG/DVB names.

Values can be or'ed.

Enumerator
NAME 

Name only, no value. This is the default.

VALUE 

Include the value: "name (value)".

FIRST 

Same with value first: "value (name)".

HEXA 

Value in hexadecimal. This is the default.

DECIMAL 

Value in decimal. Both DECIMAL and HEXA can be specified.

BOTH 

Value in decimal and hexadecimal.

HEXA_FIRST 

Value in hexadecimal in first position.

DECIMAL_FIRST 

Value in decimal in first position.

BOTH_FIRST 

Value in decimal and hexadecimal in first position.

ALTERNATE 

Display an alternate integer value.

NAME_OR_VALUE 

Display name if defined or value only if not defined.

Function Documentation

◆ TID()

UString ts::names::TID ( const DuckContext duck,
uint8_t  tid,
uint16_t  cas = CASID_NULL,
Flags  flags = NAME 
)

Name of Table ID.

Parameters
[in]duckTSDuck execution context (used to select from conflicting standards).
[in]tidTable id.
[in]casCAS id for EMM/ECM table ids.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ DID()

UString ts::names::DID ( uint8_t  did,
uint32_t  pds = 0,
uint8_t  tid = 0xFF,
Flags  flags = NAME 
)

Name of Descriptor ID.

Parameters
[in]didDescriptor id.
[in]pdsPrivate data specified if did >= 0x80.
[in]tidOptional id of the enclosing table.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ HasTableSpecificName()

bool ts::names::HasTableSpecificName ( uint8_t  did,
uint8_t  tid 
)

Check if a descriptor id has a specific name for a given table.

Parameters
[in]didDescriptor id.
[in]tidTable id of the enclosing table.
Returns
True if descriptor did has a specific name for table tid.

◆ EDID()

UString ts::names::EDID ( uint8_t  edid,
Flags  flags = NAME 
)

Name of Extended descriptor ID.

Parameters
[in]edidExtended descriptor ID.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ PrivateDataSpecifier()

UString ts::names::PrivateDataSpecifier ( uint32_t  pds,
Flags  flags = NAME 
)

Name of Private Data Specifier.

Parameters
[in]pdsPrivate Data Specifier.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ StreamType()

UString ts::names::StreamType ( uint8_t  st,
Flags  flags = NAME 
)

Name of Stream type (in PMT).

Parameters
[in]stStream type (in PMT).
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ StreamId()

UString ts::names::StreamId ( uint8_t  sid,
Flags  flags = NAME 
)

Name of Stream ID (in PES header).

Parameters
[in]sidStream ID (in PES header).
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ PESStartCode()

UString ts::names::PESStartCode ( uint8_t  code,
Flags  flags = NAME 
)

Name of PES start code value.

Parameters
[in]codePES start code value.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ AspectRatio()

UString ts::names::AspectRatio ( uint8_t  a,
Flags  flags = NAME 
)

Name of aspect ratio values (in MPEG-1/2 video sequence header).

Parameters
[in]aAspect ratio value (in MPEG-1/2 video sequence header).
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ ChromaFormat()

UString ts::names::ChromaFormat ( uint8_t  c,
Flags  flags = NAME 
)

Name of Chroma format values (in MPEG-1/2 video sequence header).

Parameters
[in]cChroma format value (in MPEG-1/2 video sequence header).
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ AVCUnitType()

UString ts::names::AVCUnitType ( uint8_t  ut,
Flags  flags = NAME 
)

Name of AVC (ISO 14496-10, ITU H.264) access unit (aka "NALunit") type.

Parameters
[in]utAVC access unit type.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ AVCProfile()

UString ts::names::AVCProfile ( int  p,
Flags  flags = NAME 
)

Name of AVC (ISO 14496-10, ITU H.264) profile.

Parameters
[in]pAVC profile.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ ServiceType()

UString ts::names::ServiceType ( uint8_t  st,
Flags  flags = NAME 
)

Name of service type (in Service Descriptor).

Parameters
[in]stService type (in Service Descriptor).
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ LinkageType()

UString ts::names::LinkageType ( uint8_t  lt,
Flags  flags = NAME 
)

Name of linkage type (in Linkage Descriptor).

Parameters
[in]ltLinkage type (in Linkage Descriptor).
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ SubtitlingType()

UString ts::names::SubtitlingType ( uint8_t  st,
Flags  flags = NAME 
)

Name of subtitling type (in Subtitling Descriptor).

Parameters
[in]stSubtitling type (in Subtitling Descriptor).
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ TeletextType()

UString ts::names::TeletextType ( uint8_t  tt,
Flags  flags = NAME 
)

Name of Teletext type (in Teletext Descriptor).

Parameters
[in]ttTeletext type (in Teletext Descriptor).
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ CASId()

UString ts::names::CASId ( const DuckContext duck,
uint16_t  casid,
Flags  flags = NAME 
)

Name of Conditional Access System Id (in CA Descriptor).

Parameters
[in]duckTSDuck execution context (used to select from other standards).
[in]casidConditional Access System Id (in CA Descriptor).
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ CASFamily()

UString ts::names::CASFamily ( ts::CASFamily  cas)

Name of Conditional Access Families.

Parameters
[in]casCAS family
Returns
The corresponding name.

◆ RunningStatus()

UString ts::names::RunningStatus ( uint8_t  rs,
Flags  flags = NAME 
)

Name of Running Status (in SDT).

Parameters
[in]rsRunning Status (in SDT).
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ AudioType()

UString ts::names::AudioType ( uint8_t  at,
Flags  flags = NAME 
)

Name of audio type (in ISO639 Language Descriptor).

Parameters
[in]atAudio type (in ISO639 Language Descriptor).
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ ComponentType()

UString ts::names::ComponentType ( const DuckContext duck,
uint16_t  ct,
Flags  flags = NAME 
)

Name of Component Type (in Component Descriptor).

Parameters
[in]duckTSDuck execution context (used to select from other standards).
[in]ctComponent Type (in Component Descriptor). Combination of stream_content_ext (4 bits), stream_content (4 bits) and component_type (8 bits).
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ AC3ComponentType()

UString ts::names::AC3ComponentType ( uint8_t  t,
Flags  flags = NAME 
)

Name of AC-3 Component Type.

Parameters
[in]tAC-3 Component Type.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ DTSSampleRateCode()

UString ts::names::DTSSampleRateCode ( uint8_t  c,
Flags  flags = NAME 
)

Name of DTS Audio Sample Rate code.

Parameters
[in]cDTS Audio Sample Rate code.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ DTSBitRateCode()

UString ts::names::DTSBitRateCode ( uint8_t  c,
Flags  flags = NAME 
)

Name of DTS Audio Bit Rate Code.

Parameters
[in]cDTS Audio Bit Rate Code.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ DTSSurroundMode()

UString ts::names::DTSSurroundMode ( uint8_t  mode,
Flags  flags = NAME 
)

Name of DTS Audio Surround Mode.

Parameters
[in]modeDTS Audio Surround Mode.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ DTSExtendedSurroundMode()

UString ts::names::DTSExtendedSurroundMode ( uint8_t  mode,
Flags  flags = NAME 
)

Name of DTS Audio Extended Surround Mode.

Parameters
[in]modeDTS Audio Extended Surround Mode.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ Content()

UString ts::names::Content ( uint8_t  c,
Flags  flags = NAME 
)

Name of content name (in Content Descriptor).

Parameters
[in]cContent name.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ ScramblingControl()

UString ts::names::ScramblingControl ( uint8_t  sc,
Flags  flags = NAME 
)

Name of scrambling control value in TS header.

Parameters
[in]scScrambling control value in TS header
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ BouquetId()

UString ts::names::BouquetId ( uint16_t  id,
Flags  flags = NAME 
)

Name of Bouquet Id.

Parameters
[in]idBouquet Id.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ OriginalNetworkId()

UString ts::names::OriginalNetworkId ( uint16_t  id,
Flags  flags = NAME 
)

Name of Original Network Id.

Parameters
[in]idOriginal Network Id.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ NetworkId()

UString ts::names::NetworkId ( uint16_t  id,
Flags  flags = NAME 
)

Name of Network Id.

Parameters
[in]idNetwork Id.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ PlatformId()

UString ts::names::PlatformId ( uint32_t  id,
Flags  flags = NAME 
)

Name of Platform Id.

Parameters
[in]idPlatform Id.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ DataBroadcastId()

UString ts::names::DataBroadcastId ( uint16_t  id,
Flags  flags = NAME 
)

Name of Data broadcast id (in Data Broadcast Id Descriptor).

Parameters
[in]idData broadcast id (in Data Broadcast Id Descriptor).
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ OUI()

UString ts::names::OUI ( uint32_t  oui,
Flags  flags = NAME 
)

Name of OUI (IEEE-assigned Organizationally Unique Identifier), 24 bits.

Parameters
[in]ouiOrganizationally Unique Identifier), 24 bits.
[in]flagsPresentation flags.
Returns
The corresponding name.

◆ T2MIPacketType()

UString ts::names::T2MIPacketType ( uint8_t  type,
Flags  flags = NAME 
)

Name of T2-MI packet type.

Parameters
[in]typeT2-MI packet type.
[in]flagsPresentation flags.
Returns
The corresponding name.