![]() |
TSDuck v3.46-4965
MPEG Transport Stream Toolkit
|
#include <tsIATAnalyzer.h>
Classes | |
| class | Status |
Public Member Functions | |
| IATAnalyzer (Report &report) | |
| void | feedPacket (const TSPacket &pkt, const TSPacketMetadata &mdata) |
| bool | getStatus (Status &status) |
| bool | getStatusRestart (Status &status) |
| bool | isValid () const |
| void | reset () |
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::reset | ( | ) |
Reset all collected information.
| 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. |