TSDuck v3.46-4965
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::LatencyMonitor Class Reference

#include <tsLatencyMonitor.h>

Public Member Functions

 LatencyMonitor (const LatencyMonitorArgs &args, Report &report)
void processPacket (const TSPacketVector &pkt, const TSPacketMetadataVector &metadata, size_t count, size_t pluginIndex)
bool start ()

Detailed Description

Implementation of the latency monitor This class is used by the tslatencymonitor utility.

Constructor & Destructor Documentation

◆ LatencyMonitor()

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.

Parameters
[in]argsArguments and options.
[in,out]reportWhere 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).

Member Function Documentation

◆ start()

bool ts::LatencyMonitor::start ( )

Start the PCR comparator session.

Returns
True on success, false on failure to start.

◆ processPacket()

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.

Parameters
[in]pktIncome TS packet.
[in]metadataMetadata of income TS packet.
[in]countTS packet count.
[in]pluginIndexIndex of the input plugin.

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