TSDuck v3.40-3963
MPEG Transport Stream Toolkit
|
Command line arguments for transport stream packets dump. More...
#include <tsTSDumpArgs.h>
Public Member Functions | |
TSDumpArgs ()=default | |
Default constructor. | |
void | defineArgs (Args &args) |
Add command line option definitions in an Args. | |
void | dump (DuckContext &duck, std::ostream &strm, const TSPacket &pkt, const TSPacketMetadata *mdata=nullptr) const |
This method displays the content of a transport packet according to the command line options. | |
bool | loadArgs (DuckContext &duck, Args &args) |
Load arguments from command line. | |
Public Attributes | |
uint32_t | dump_flags = 0 |
Dump options for Hexa and Packet::dump. | |
bool | log = false |
Option --log. | |
size_t | log_size = 0 |
Size to display with --log. | |
PIDSet | pids {} |
PID values to dump. | |
bool | rs204 = false |
Option --rs204. | |
Command line arguments for transport stream packets dump.
void ts::TSDumpArgs::defineArgs | ( | Args & | args | ) |
Add command line option definitions in an Args.
[in,out] | args | Command line arguments to update. |
bool ts::TSDumpArgs::loadArgs | ( | DuckContext & | duck, |
Args & | args | ||
) |
Load arguments from command line.
Args error indicator is set in case of incorrect arguments.
[in,out] | duck | TSDuck execution context. |
[in,out] | args | Command line arguments. |
void ts::TSDumpArgs::dump | ( | DuckContext & | duck, |
std::ostream & | strm, | ||
const TSPacket & | pkt, | ||
const TSPacketMetadata * | mdata = nullptr |
||
) | const |
This method displays the content of a transport packet according to the command line options.
[in,out] | duck | TSDuck execution context. |
[in,out] | strm | A standard stream in output mode (text mode). |
[in] | pkt | TS packet to dump. |
[in] | mdata | Optional metadata. |