![]() |
TSDuck v3.43-4462
MPEG Transport Stream Toolkit
|
Inter-packet Arrival Time (IAT) analysis for datagram-based inputs. More...
#include <tsIATAnalyzer.h>
Classes | |
class | Status |
Structure containing the IAT analysis results. More... | |
Public Member Functions | |
IATAnalyzer (Report &report) | |
Constructor. | |
void | feedPacket (const TSPacket &pkt, const TSPacketMetadata &mdata) |
The following method feeds the analyzer with a TS packet. | |
bool | getStatus (Status &status) |
Get the IAT since start or the last getStatusRestart(). | |
bool | getStatusRestart (Status &status) |
Get the IAT since start or the last getStatusRestart(). | |
bool | isValid () const |
Check if the IAT analysis in progress is valid. | |
void | reset () |
Reset all collected information. | |
Inter-packet Arrival Time (IAT) analysis for datagram-based inputs.
IAT measures the interval between two input datagrams. Each datagram typically contains several TS packets. Therefore, the IAT is not an interval between TS packets. IAT analysis is possible only when the origin of the TS packets is a datagram-based input such as UDP (live or from pcap file), SRT, RIST.
ts::IATAnalyzer::IATAnalyzer | ( | Report & | report | ) |
Constructor.
[in,out] | report | Where to report errors. A reference is kept in this object instance. |
void ts::IATAnalyzer::feedPacket | ( | const TSPacket & | pkt, |
const TSPacketMetadata & | mdata | ||
) |
The following method feeds the analyzer with a TS packet.
[in] | pkt | A new transport stream packet. |
[in] | mdata | Associated metadata. |
|
inline |
Check if the IAT analysis in progress is valid.
bool ts::IATAnalyzer::getStatus | ( | Status & | status | ) |
Get the IAT since start or the last getStatusRestart().
This is just a snapshot. The status will continue to evolve.
[out] | status | Returned status. |
bool ts::IATAnalyzer::getStatusRestart | ( | Status & | status | ) |
Get the IAT since start or the last getStatusRestart().
The status is reset and a new measurement period starts.
[out] | status | Returned status. |