gstreamer_video::subclass::prelude

Trait VideoAggregatorPadImpl

Source
pub trait VideoAggregatorPadImpl: AggregatorPadImpl + ObjectSubclass<Type: IsA<VideoAggregatorPad>> {
    // Provided methods
    fn update_conversion_info(&self) { ... }
    fn prepare_frame(
        &self,
        aggregator: &VideoAggregator,
        token: &AggregateFramesToken<'_>,
        buffer: &Buffer,
    ) -> Option<VideoFrame<Readable>> { ... }
    fn clean_frame(
        &self,
        aggregator: &VideoAggregator,
        token: &AggregateFramesToken<'_>,
        frame: Option<VideoFrame<Readable>>,
    ) { ... }
}

Provided Methods§

Source

fn update_conversion_info(&self)

Called when either the input or output formats have changed.

Source

fn prepare_frame( &self, aggregator: &VideoAggregator, token: &AggregateFramesToken<'_>, buffer: &Buffer, ) -> Option<VideoFrame<Readable>>

Prepare the frame from the pad buffer and sets it to prepared_frame. Implementations should always return TRUE. Returning FALSE will cease iteration over subsequent pads.

Source

fn clean_frame( &self, aggregator: &VideoAggregator, token: &AggregateFramesToken<'_>, frame: Option<VideoFrame<Readable>>, )

clean the frame previously prepared in prepare_frame

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§