Skip to main content

register

Function register 

Source
pub fn register(registry: &mut Registry)
Expand description

Register the hosted Python elements as gst-launch / autoplug factories on registry, so they are instantiable by name like any built-in:

  • pyelement module=... class=... draw-label=... — a transform;
  • pysrc module=... class=... format=... width=... height=... framerate=... num-buffers=... — a source;
  • pyaggregator module=... class=... draw-label=... — an N-in/1-out batching muxer (its input count comes from link degree).

The parser default-constructs each and applies its key=value properties via the property system, then negotiation + configure_pipeline spawn the worker. Call after [g2g_plugins::default_registry] (or any Registry). Building the per-frame path still needs the python feature.