Transport stream file input with command-line arguments.
More...
#include <tsTSFileInputArgs.h>
Transport stream file input with command-line arguments.
◆ defineArgs()
void ts::TSFileInputArgs::defineArgs |
( |
Args & |
args | ) |
|
Add command line option definitions in an Args.
- Parameters
-
[in,out] | args | Command line arguments to update. |
◆ loadArgs()
Load arguments from command line.
Args error indicator is set in case of incorrect arguments.
- Parameters
-
[in,out] | duck | TSDuck execution context. |
[in,out] | args | Command line arguments. |
- Returns
- True on success, false on error in argument line.
◆ open()
bool ts::TSFileInputArgs::open |
( |
Report & |
report | ) |
|
Open the input file or files.
All parameters where loaded from the command line by loadArgs().
- Parameters
-
[in,out] | report | Where to report errors. |
- Returns
- True on success, false on error.
◆ close()
bool ts::TSFileInputArgs::close |
( |
Report & |
report | ) |
|
Close the input file or files.
- Parameters
-
[in,out] | report | Where to report errors. |
- Returns
- True on success, false on error.
◆ read()
Read packets.
- Parameters
-
[out] | buffer | Address of the buffer for incoming packets. |
[in,out] | pkt_data | Array of metadata for incoming packets. |
[in] | max_packets | Size of buffer in number of packets. |
[in,out] | report | Where to report errors. |
- Returns
- The number of actually received packets (in the range 1 to max_packets). Returning zero means error or end of input.
◆ abort()
void ts::TSFileInputArgs::abort |
( |
| ) |
|
Abort the input operation currently in progress.
This method is typically invoked from another thread. The only acceptable operation after an abort() is a close().
The documentation for this class was generated from the following file: