TSDuck v3.40-3963
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
io.tsduck.TSProcessor Class Reference

A wrapper class for C++ TSProcessor. More...

Inheritance diagram for io.tsduck.TSProcessor:
Collaboration diagram for io.tsduck.TSProcessor:

Public Member Functions

 TSProcessor (Report report)
 Constructor.
 
native void abort ()
 Abort the processing.
 
native void delete ()
 Delete the encapsulated C++ object.
 
native void registerEventHandler (AbstractPluginEventHandler handler, int eventCode)
 Register an event handler by event code.
 
native void registerInputEventHandler (AbstractPluginEventHandler handler)
 Register an event handler for all events from the input plugin.
 
native void registerOutputEventHandler (AbstractPluginEventHandler handler)
 Register an event handler for all events from the output plugin.
 
native boolean start ()
 Start the TS processor.
 
native void waitForTermination ()
 Suspend the calling thread until TS processing is completed.
 

Public Attributes

int addInputStuffingInput = 0
 The inpkt in option --add-input-stuffing nullpkt/inpkt.
 
int addInputStuffingNull = 0
 The nullpkt in option --add-input-stuffing nullpkt/inpkt.
 
int addStartStuffing = 0
 Option --add-start-stuffing.
 
int addStopStuffing = 0
 Option --add-stop-stuffing.
 
String appName = ""
 Application name, for help messages.
 
int bitrate = 0
 Option --bitrate.
 
int bitrateAdjustInterval = 5000
 Option --bitrate-adjust-interval (in milliseconds)
 
int bufferSize = 16 * 1024 * 1024
 Option --buffer-size-mb (in bytes here)
 
boolean ignoreJointTermination = false
 Option --ignore-joint-termination.
 
int initialInputPackets = 0
 Option --initial-input-packets (zero means default)
 
String[] input = null
 Input plugin name and arguments (array of strings)
 
boolean logPluginIndex = false
 Option --log-plugin-index.
 
int maxFlushedPackets = 0
 Option --max-flushed-packets (zero means default)
 
int maxInputPackets = 0
 Option --max-input-packets (zero means default)
 
int maxOutputPackets = 0
 Option --max-output-packets (zero means unlimited)
 
String[] output = null
 Output plugin name and arguments (array of strings)
 
String[][] plugins = null
 Packet processor plugins names and arguments (array of arrays of strings)
 
int receiveTimeout = 0
 Option --receive-timeout.
 

Protected Attributes

long nativeObject = 0
 The address of the underlying C++ object.
 

Detailed Description

A wrapper class for C++ TSProcessor.

Constructor & Destructor Documentation

◆ TSProcessor()

io.tsduck.TSProcessor.TSProcessor ( Report  report)
inline

Constructor.

Parameters
reportThe report object to use. If null, the logs are dropped. Be sure to specify a thread-safe report such has AsyncReport or a subclass of AbstractAsyncReport.

Member Function Documentation

◆ start()

native boolean io.tsduck.TSProcessor.start ( )

Start the TS processor.

All properties shall have been set before calling this method.

Returns
True on success, false on error.

◆ delete()

native void io.tsduck.TSProcessor.delete ( )

Delete the encapsulated C++ object.

Reimplemented from io.tsduck.NativeObject.

◆ registerEventHandler()

native void io.tsduck.PluginEventHandlerRegistry.registerEventHandler ( AbstractPluginEventHandler  handler,
int  eventCode 
)
inherited

Register an event handler by event code.

Parameters
handlerAn instance of AbstractPluginEventHandler.
eventCodeThe code of the events to handle.

◆ registerInputEventHandler()

native void io.tsduck.PluginEventHandlerRegistry.registerInputEventHandler ( AbstractPluginEventHandler  handler)
inherited

Register an event handler for all events from the input plugin.

Parameters
handlerAn instance of AbstractPluginEventHandler.

◆ registerOutputEventHandler()

native void io.tsduck.PluginEventHandlerRegistry.registerOutputEventHandler ( AbstractPluginEventHandler  handler)
inherited

Register an event handler for all events from the output plugin.

Parameters
handlerAn instance of AbstractPluginEventHandler.

Member Data Documentation

◆ nativeObject

long io.tsduck.NativeObject.nativeObject = 0
protectedinherited

The address of the underlying C++ object.

It is normally accessed by native methods only.


The documentation for this class was generated from the following file: