gstreamer_video::prelude

Trait VideoAggregatorPadExtManual

Source
pub trait VideoAggregatorPadExtManual: IsA<VideoAggregatorPad> + 'static {
    // Provided methods
    fn has_current_buffer(&self, _token: &AggregateFramesToken<'_>) -> bool { ... }
    fn current_buffer(
        &self,
        _token: &AggregateFramesToken<'_>,
    ) -> Option<Buffer> { ... }
    fn prepared_frame<'a>(
        &self,
        _token: &'a AggregateFramesToken<'_>,
    ) -> Option<VideoFrameRef<&'a BufferRef>> { ... }
    fn video_info(&self) -> Option<VideoInfo> { ... }
}

Provided Methods§

Source

fn has_current_buffer(&self, _token: &AggregateFramesToken<'_>) -> bool

Checks if the pad currently has a buffer queued that is going to be used for the current output frame.

This must only be called from the GstVideoAggregatorClass::aggregate_frames virtual method, or from the GstVideoAggregatorPadClass::prepare_frame virtual method of the aggregator pads.

§Returns

true if the pad has currently a buffer queued

Source

fn current_buffer(&self, _token: &AggregateFramesToken<'_>) -> Option<Buffer>

Returns the currently queued buffer that is going to be used for the current output frame.

This must only be called from the GstVideoAggregatorClass::aggregate_frames virtual method, or from the GstVideoAggregatorPadClass::prepare_frame virtual method of the aggregator pads.

The return value is only valid until GstVideoAggregatorClass::aggregate_frames or GstVideoAggregatorPadClass::prepare_frame returns.

§Returns

The currently queued buffer

Source

fn prepared_frame<'a>( &self, _token: &'a AggregateFramesToken<'_>, ) -> Option<VideoFrameRef<&'a BufferRef>>

Returns the currently prepared video frame that has to be aggregated into the current output frame.

This must only be called from the GstVideoAggregatorClass::aggregate_frames virtual method, or from the GstVideoAggregatorPadClass::prepare_frame virtual method of the aggregator pads.

The return value is only valid until GstVideoAggregatorClass::aggregate_frames or GstVideoAggregatorPadClass::prepare_frame returns.

§Returns

The currently prepared video frame

Source

fn video_info(&self) -> Option<VideoInfo>

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§