TSDuck Version 3.18-1208 (TSDuck - The MPEG Transport Stream Toolkit)
ts::TSScanner Class Reference

A class which scans the services of a transport stream. More...

Inheritance diagram for ts::TSScanner:
Collaboration diagram for ts::TSScanner:

Public Member Functions

 TSScanner (DuckContext &duck, Tuner &tuner, MilliSecond timeout=Infinite, bool pat_only=false)
 Constructor. More...
 
void getMGT (SafePtr< MGT > &mgt) const
 Get the ATSC MGT of the transport stream. More...
 
void getNIT (SafePtr< NIT > &nit) const
 Get the DVB NIT of the transport stream. More...
 
void getPAT (SafePtr< PAT > &pat) const
 Get the PAT of the transport stream. More...
 
void getSDT (SafePtr< SDT > &sdt) const
 Get the DVB SDT of the transport stream. More...
 
bool getServices (ServiceList &services) const
 Get the list of services. More...
 
void getTunerParameters (TunerParametersPtr &tp) const
 Get the tuner parameters of the transport stream. More...
 
void getVCT (SafePtr< VCT > &vct) const
 Get the ATSC VCT of the transport stream. More...
 

Detailed Description

A class which scans the services of a transport stream.

Constructor & Destructor Documentation

◆ TSScanner()

ts::TSScanner::TSScanner ( DuckContext duck,
Tuner tuner,
MilliSecond  timeout = Infinite,
bool  pat_only = false 
)

Constructor.

The transport stream is scanned be the constructor. The collected data cna be fetched later.

Parameters
[in,out]duckTSDuck execution context. The reference is kept inside the scanner.
[in,out]tunerA tuner which is already tuned to the expected channel.
[in]timeoutExecution timeout in milliseconds.
[in]pat_onlyIf true, only collect the PAT, do not wait for more information.

Member Function Documentation

◆ getServices()

bool ts::TSScanner::getServices ( ServiceList services) const

Get the list of services.

Parameters
[out]servicesReturned list of services.
Returns
True on success, false on error.

◆ getTunerParameters()

void ts::TSScanner::getTunerParameters ( TunerParametersPtr tp) const
inline

Get the tuner parameters of the transport stream.

Parameters
[out]tpReturned safe pointer to the tuner parameters.

◆ getPAT()

void ts::TSScanner::getPAT ( SafePtr< PAT > &  pat) const
inline

Get the PAT of the transport stream.

Parameters
[out]patReturned safe pointer to the PAT.

◆ getSDT()

void ts::TSScanner::getSDT ( SafePtr< SDT > &  sdt) const
inline

Get the DVB SDT of the transport stream.

Parameters
[out]sdtReturned safe pointer to the DVB SDT.

◆ getNIT()

void ts::TSScanner::getNIT ( SafePtr< NIT > &  nit) const
inline

Get the DVB NIT of the transport stream.

Parameters
[out]nitReturned safe pointer to the DVB NIT.

◆ getMGT()

void ts::TSScanner::getMGT ( SafePtr< MGT > &  mgt) const
inline

Get the ATSC MGT of the transport stream.

Parameters
[out]mgtReturned safe pointer to the ATSC MGT.

◆ getVCT()

void ts::TSScanner::getVCT ( SafePtr< VCT > &  vct) const
inline

Get the ATSC VCT of the transport stream.

Parameters
[out]vctReturned safe pointer to the ATSC VCT. The actual table is eiter a TVCT or a CVCT.

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