TSDuck v3.40-4033
MPEG Transport Stream Toolkit
|
An efficient TSDuck-specific TS packets decapsulation from a PID. More...
#include <tsPacketDecapsulation.h>
Public Member Functions | |
PacketDecapsulation (PID pid=PID_NULL) | |
Constructor. | |
bool | hasError () const |
Check if a previous error is pending. | |
PID | inputPID () const |
Get the input PID. | |
const UString & | lastError () const |
Get the last error message. | |
bool | processPacket (TSPacket &pkt) |
Process a TS packet from the input stream. | |
void | reset (PID pid=PID_NULL) |
Reset the decapsulation. | |
void | resetError () |
Reset the last error. | |
An efficient TSDuck-specific TS packets decapsulation from a PID.
This class extract packets which were encapsulated using PacketEncapsulation.
Constructor.
[in] | pid | The PID containing encapsulated packets. When PID_NULL, no decapsulation is done. |
Reset the decapsulation.
[in] | pid | The PID containing encapsulated packets. When PID_NULL, no decapsulation is done. |
bool ts::PacketDecapsulation::processPacket | ( | TSPacket & | pkt | ) |
Process a TS packet from the input stream.
[in,out] | pkt | A TS packet. If the packet belongs to the encapsulated PID, it is replaced by an decapsulating packet. |
|
inline |
Get the last error message.
|
inline |
Check if a previous error is pending.
|
inline |
Get the input PID.