pub trait VideoAggregatorPadExtManual: Sealed + 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>

Object Safety§

This trait is not object safe.

Implementors§