TSDuck v3.40-4033
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::TSAnalyzer::ServiceContext Class Reference

This protected inner class contains the analysis context for one service. More...

#include <tsTSAnalyzer.h>

Collaboration diagram for ts::TSAnalyzer::ServiceContext:

Public Member Functions

 ServiceContext (uint16_t serv_id)
 Constructor.
 
UString getName () const
 Get a displayable service name.
 
UString getProvider () const
 Get a displayable provider name.
 
void update (DuckContext &duck, const DescriptorList &descs)
 Update service information from a descriptor list.
 

Public Attributes

BitRate bitrate = 0
 Average service bitrate in b/s.
 
bool carry_ssu = false
 Carry System Software Update.
 
bool carry_t2mi = false
 Carry T2-MI encasulated data.
 
bool hidden = false
 Service is hidden from end-user.
 
ISDBTLayerCounter isdb_layers {}
 For ISDB-T streams with 204-byte packets, map key = layer indicator (0-1) to value = number of TS packets.
 
std::optional< uint16_t > lcn {}
 Logical channel number.
 
UString name {}
 Service name.
 
std::optional< uint16_t > orig_netw_id {}
 Original network id.
 
PID pcr_pid = 0
 PID of PCR's (if any).
 
size_t pid_cnt = 0
 Number of PID's.
 
PID pmt_pid = 0
 PID of PMT.
 
UString provider {}
 Service provider name.
 
size_t scrambled_pid_cnt = 0
 Number of scrambled PID's.
 
const uint16_t service_id
 Service id.
 
uint8_t service_type = 0
 Service type.
 
uint64_t ts_pkt_cnt = 0
 Number of TS packets.
 

Detailed Description

This protected inner class contains the analysis context for one service.

Constructor & Destructor Documentation

◆ ServiceContext()

ts::TSAnalyzer::ServiceContext::ServiceContext ( uint16_t  serv_id)
inline

Constructor.

Parameters
[in]serv_idService id.

Member Function Documentation

◆ getName()

UString ts::TSAnalyzer::ServiceContext::getName ( ) const

Get a displayable service name.

Returns
A displayable service name.

◆ getProvider()

UString ts::TSAnalyzer::ServiceContext::getProvider ( ) const

Get a displayable provider name.

Returns
A displayable provider name.

◆ update()

void ts::TSAnalyzer::ServiceContext::update ( DuckContext duck,
const DescriptorList descs 
)

Update service information from a descriptor list.

Parameters
[in,out]duckTSDuck execution context.
[in]descsDescriptor list from SDT or PMT.

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