A class which scans the services of a transport stream.
More...
#include <tsTSScanner.h>
|
| | 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.
|
| |
A class which scans the services of a transport stream.
◆ 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] | duck | TSDuck execution context. The reference is kept inside the scanner. |
| [in,out] | tuner | A tuner which is already tuned to the expected channel. |
| [in] | timeout | Execution timeout in milliseconds. |
| [in] | pat_only | If true, only collect the PAT, do not wait for more information. |
◆ getServices()
| bool ts::TSScanner::getServices |
( |
ServiceList & |
services | ) |
const |
Get the list of services.
- Parameters
-
| [out] | services | Returned list of services. |
- Returns
- True on success, false on error.
◆ getTunerParameters()
Get the tuner parameters of the transport stream.
- Parameters
-
| [out] | tp | Returned 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] | pat | Returned 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] | sdt | Returned 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] | nit | Returned 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] | mgt | Returned 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] | vct | Returned 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: