![]() |
TSDuck v3.46-4930
MPEG Transport Stream Toolkit
|
#include <tsTSProcessor.h>


Public Member Functions | |
| TSProcessor (Report &report) | |
| ~TSProcessor () | |
| void | abort () |
| delete (self) | |
| Explicitly free the underlying C++ object. | |
| bool | isStarted () |
| registerEventHandler (self, handler, event_code) | |
| Register an event handler by event code. | |
| registerInputEventHandler (self, handler) | |
| Register an event handler for all events from the input plugin. | |
| registerOutputEventHandler (self, handler) | |
| Register an event handler for all events from the output plugin. | |
| Report & | report () const |
| bool | start (const TSProcessorArgs &args) |
| void | waitForTermination () |
Protected Member Functions | |
| _getNative (self) | |
| Get the native object. | |
| _setNative (self, obj) | |
| Set the native object. | |
Core of the TSP Transport Stream Processor. This class is used by the tsp utility. It can also be used in other applications to run a chain of plugins.
| ts::TSProcessor::TSProcessor | ( | Report & | report | ) |
Constructor.
| [in,out] | report | Where to report errors, logs, etc. This object will be used concurrently by all plugin execution threads. Consequently, it must be thread-safe. For performance reasons, it should be asynchronous (see for instance class AsyncReport). |
| ts::TSProcessor::~TSProcessor | ( | ) |
Destructor. It waits for termination of the TS processing if it is running.
|
inline |
Get a reference to the report object for the TS processor.
| bool ts::TSProcessor::start | ( | const TSProcessorArgs & | args | ) |
Start the TS processing.
| [in] | args | Arguments and options. |
| bool ts::TSProcessor::isStarted | ( | ) |
Check if the TS processing is started.
| void ts::TSProcessor::abort | ( | ) |
Abort the processing. The method can be invoked from any thread, including an interrupt handler for instance.
| void ts::TSProcessor::waitForTermination | ( | ) |
Suspend the calling thread until TS processing is completed.
|
inherited |
Register an event handler by event code.
| handler | An instance of AbstractPluginEventHandler. |
| event_code | The code of the events to handle. |
|
inherited |
Register an event handler for all events from the input plugin.
| handler | An instance of AbstractPluginEventHandler. |
|
inherited |
Register an event handler for all events from the output plugin.
| handler | An instance of AbstractPluginEventHandler. |
|
inherited |
Explicitly free the underlying C++ object.
After this call, the object becomes unusable. Most usages are unpredictable but most likely will do nothing.
Reimplemented in tsduck.AbstractPluginEventHandler, tsduck.AsyncReport, tsduck.DuckContext, tsduck.InputSwitcher, tsduck.SectionFile, tsduck.SystemMonitor, and tsduck.TSProcessor.
|
protectedinherited |
Set the native object.
This is typically done by subclass constructors.
| obj | Address of the C++ native object to store. |
|
protectedinherited |
Get the native object.
This is typically used by subclasses.