Trait Preprocessor

Source
pub trait Preprocessor {
    type Subsys: Subsystem;
    type Frame: Clone + Send + Sync + 'static;

    // Required methods
    fn new(pipeline: &Pipeline) -> Self;
    fn link(&self, src: Element, sink: Element);
    fn unlink(&self, src: Element, sink: Element);
    fn sampler(
        appsink: &AppSink,
        tx: Sender<Option<Arc<Self::Frame>>>,
    ) -> Result<Option<()>, Error>;
}
Expand description

A set of Gstreamer elements used to preprocess the stream for a Subsystem

Required Associated Types§

Source

type Subsys: Subsystem

Source

type Frame: Clone + Send + Sync + 'static

Required Methods§

Source

fn new(pipeline: &Pipeline) -> Self

Source

fn sampler( appsink: &AppSink, tx: Sender<Option<Arc<Self::Frame>>>, ) -> Result<Option<()>, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§