![]() |
TSDuck v3.45-4686
MPEG Transport Stream Toolkit
|
Transport stream "valve": pass or drop TS packets with transition period management. More...
#include <tsTSValve.h>
Public Member Functions | |
| TSValve (Report &report) | |
| Constructor. | |
| void | change (PacketProcessStatus new_status) |
| Change the transmission status. | |
| PacketProcessStatus | current () const |
| Get current transmission status. | |
| PacketProcessStatus | processPacket (const TSPacket &pkt) |
| Process one TS packet. | |
| void | reset (const TSValveArgs &args, PacketProcessStatus initial_status, PacketProcessStatus first_status) |
| Reset the transmission. | |
Transport stream "valve": pass or drop TS packets with transition period management.
|
inline |
Constructor.
| [in,out] | report | Where to report debug messages. |
| void ts::TSValve::reset | ( | const TSValveArgs & | args, |
| PacketProcessStatus | initial_status, | ||
| PacketProcessStatus | first_status | ||
| ) |
Reset the transmission.
| [in] | args | Valve parameters. |
| [in] | initial_status | Initial status, before stating the valve. This is typically TSP_DROP, meaning no packet is passed before starting the processing. |
| [in] | first_status | First transmission status. |
| void ts::TSValve::change | ( | PacketProcessStatus | new_status | ) |
Change the transmission status.
| [in] | new_status | New transmission status. |
|
inline |
Get current transmission status.
| PacketProcessStatus ts::TSValve::processPacket | ( | const TSPacket & | pkt | ) |
Process one TS packet.
| [in] | pkt | Current packet in the transport stream. |