TSDuck v3.45-4686
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches

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.
 

Detailed Description

Transport stream "valve": pass or drop TS packets with transition period management.

Constructor & Destructor Documentation

◆ TSValve()

ts::TSValve::TSValve ( Report report)
inline

Constructor.

Parameters
[in,out]reportWhere to report debug messages.

Member Function Documentation

◆ reset()

void ts::TSValve::reset ( const TSValveArgs args,
PacketProcessStatus  initial_status,
PacketProcessStatus  first_status 
)

Reset the transmission.

Parameters
[in]argsValve parameters.
[in]initial_statusInitial status, before stating the valve. This is typically TSP_DROP, meaning no packet is passed before starting the processing.
[in]first_statusFirst transmission status.

◆ change()

void ts::TSValve::change ( PacketProcessStatus  new_status)

Change the transmission status.

Parameters
[in]new_statusNew transmission status.

◆ current()

PacketProcessStatus ts::TSValve::current ( ) const
inline

Get current transmission status.

Returns
Current transmission status.

◆ processPacket()

PacketProcessStatus ts::TSValve::processPacket ( const TSPacket pkt)

Process one TS packet.

Parameters
[in]pktCurrent packet in the transport stream.
Returns
What to do with this packet.

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