payload

Attributes

plugin_name

out_size

Classes

MyPlugin

A Python based gstreamer plugin template. Enables the user to:

Module Contents

payload.plugin_name = 'python_plugin'[source]
payload.out_size = 0[source]
class payload.MyPlugin[source]

A Python based gstreamer plugin template. Enables the user to: - Accept incoming buffers from dynamic pads - Define any custom plugin runtime logic User has to only override the run() function

run(input_buffers: List[python_plugin_template.SimaaiPythonBuffer], output_buffer: bytes) None[source]

Define your plugin logic HERE Inputs: input_buffers List[SimaaiPythonBuffer]: List of input buffers Object of class SimaaiPythonBuffer has three fields: 1. metadata MetaStruct Refer to the structure above 2. data bytes - raw bytes of the incoming buffer 3. size int - size of incoming buffer in bytes