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

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

#include <tsTSScanner.h>

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

Public Member Functions

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

Detailed Description

A class which scans the services of a transport stream.

Constructor & Destructor Documentation

◆ TSScanner()

ts::TSScanner::TSScanner ( DuckContext duck,
Tuner tuner,
cn::milliseconds  timeout,
bool  pat_only = false 
)

Constructor.

The transport stream is scanned be the constructor. The collected data can 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 ( ModulationArgs 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 ( std::shared_ptr< PAT > &  pat) const
inline

Get the PAT of the transport stream.

Parameters
[out]patReturned safe pointer to the PAT.

◆ getSDT()

void ts::TSScanner::getSDT ( std::shared_ptr< 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 ( std::shared_ptr< 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 ( std::shared_ptr< 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 ( std::shared_ptr< 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: