#include <tsPacketDecapsulation.h>
An efficient TSDuck-specific TS packets decapsulation from a PID. This class extract packets which were encapsulated using PacketEncapsulation.
- See also
- PacketEncapsulation
◆ PacketDecapsulation()
Constructor.
- Parameters
-
| [in,out] | report | Where to log error or debug messages. |
| [in] | pid | The PID containing encapsulated packets. When PID_NULL, no decapsulation is done. |
◆ reset()
| void ts::PacketDecapsulation::reset |
( |
PID | pid = PID_NULL | ) |
|
Reset the decapsulation.
- Parameters
-
| [in] | pid | The PID containing encapsulated packets. When PID_NULL, no decapsulation is done. |
◆ processPacket()
| bool ts::PacketDecapsulation::processPacket |
( |
TSPacket & | pkt | ) |
|
Process a TS packet from the input stream.
- Parameters
-
| [in,out] | pkt | A TS packet. If the packet belongs to the encapsulated PID, it is replaced by an decapsulating packet. |
- Returns
- True on success, false on error (PID conflict). In case of error, use lastError().
◆ lastError()
| const UString & ts::PacketDecapsulation::lastError |
( |
| ) |
const |
|
inline |
Get the last error message.
- Returns
- The last error message.
◆ hasError()
| bool ts::PacketDecapsulation::hasError |
( |
| ) |
const |
|
inline |
Check if a previous error is pending.
- Returns
- True if a previous error is pending.
- See also
- resetError()
◆ resetError()
| void ts::PacketDecapsulation::resetError |
( |
| ) |
|
|
inline |
◆ inputPID()
| PID ts::PacketDecapsulation::inputPID |
( |
| ) |
const |
|
inline |
Get the input PID.
- Returns
- The input PID.
The documentation for this class was generated from the following file: