TSDuck v3.46-4965
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches

#include <tsTSValve.h>

Public Member Functions

 TSValve (Report &report)
void change (PacketProcessStatus new_status)
PacketProcessStatus current () const
PacketProcessStatus processPacket (const TSPacket &pkt)
void reset (const TSValveArgs &args, PacketProcessStatus initial_status, PacketProcessStatus first_status)

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: