upsampler ========= .. py:module:: upsampler Attributes ---------- .. autoapisummary:: upsampler.plugin_name Classes ------- .. autoapisummary:: upsampler.MyPlugin Module Contents --------------- .. py:data:: plugin_name :value: 'upsampler' .. py:class:: MyPlugin 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 .. py:attribute:: mla .. py:attribute:: unpack_shapes :value: [7864320, 7864320, 3932160, 983040, 245760, 11796480, 2949120, 737280, 245760, 245760] .. py:attribute:: output_shapes :value: [[1, 80, 192, 256], [1, 80, 192, 256], [1, 80, 192, 128], [1, 40, 96, 128], [1, 20, 48, 128],... .. py:attribute:: frame_count :value: 0 .. py:method:: run(input_buffers: List[python_plugin_template.SimaaiPythonBuffer], output_buffer: bytes) -> None 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 .. py:method:: preprocess(l_image, r_image) .. py:method:: apply_colormap(outputflow) .. py:method:: run_model(in_tensor) .. py:method:: unpack_buffer(single_buffer)