python_plugin_template
Attributes
Classes
Generic enumeration. |
|
A Python based gstreamer plugin template. Enables the user to: |
Module Contents
- class python_plugin_template.SimaaiPythonBuffer(metadata: MetaStruct, map: gi.repository.Gst.MapInfo)[source]
- class python_plugin_template.ValueType[source]
Generic enumeration.
Derive from this class to define new enumerations.
- class python_plugin_template.AggregatorTemplate(plugin_name, out_size)[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
- request_new_pad(templ, direction=None, name=None)[source]
Handle dynamic pad requests. Pads are created when a new input stream is added dynamically.
- extract_metadata(buffer: gi.repository.Gst.Buffer) None [source]
Input: buffer Gst.Buffer: Input buffer from which metadata will be extracted.
- insert_metadata(buffer: gi.repository.Gst.Buffer) None [source]
Input: buffer Gst.Buffer: Buffer to be inserted with custom metadata
- do_aggregate(timeout)[source]
Called when buffers are queued on all sinkpads. Calls the run() function defined by the user
- abstract run(input_buffers: List[gi.repository.Gst.Buffer], output_buffer: gi.repository.Gst.Buffer) None [source]
Input: input_buffers: List[Gst.Buffer] List of input buffers, source from each pad. output_buffer: Gst.Buffer Output buffer that needs to be overwritten.
Implement your logic within this function. Process the input buffers, and modify the output buffer.