TSDuck v3.40-3963
MPEG Transport Stream Toolkit
|
Implementation of the latency monitor This class is used by the tslatencymonitor utility. More...
#include <tsLatencyMonitor.h>
Public Member Functions | |
LatencyMonitor (const LatencyMonitorArgs &args, Report &report) | |
Constructor. | |
void | processPacket (const TSPacketVector &pkt, const TSPacketMetadataVector &metadata, size_t count, size_t pluginIndex) |
Called by an input plugin when it received input packets. | |
bool | start () |
Start the PCR comparator session. | |
Implementation of the latency monitor This class is used by the tslatencymonitor utility.
ts::LatencyMonitor::LatencyMonitor | ( | const LatencyMonitorArgs & | args, |
Report & | report | ||
) |
Constructor.
The complete input comparing session is performed in this constructor. The constructor returns only when the PCR comparator session terminates or fails tp start.
[in] | args | Arguments and options. |
[in,out] | report | Where to report errors, logs, etc. This object will be used concurrently by all plugin execution threads. Consequently, it must be thread-safe. For performance reasons, it should be asynchronous (see for instance class AsyncReport). |
bool ts::LatencyMonitor::start | ( | ) |
Start the PCR comparator session.
void ts::LatencyMonitor::processPacket | ( | const TSPacketVector & | pkt, |
const TSPacketMetadataVector & | metadata, | ||
size_t | count, | ||
size_t | pluginIndex | ||
) |
Called by an input plugin when it received input packets.
[in] | pkt | Income TS packet. |
[in] | metadata | Metadata of income TS packet. |
[in] | count | TS packet count. |
[in] | pluginIndex | Index of the input plugin. |