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§
sourcefn has_current_buffer(&self, _token: &AggregateFramesToken<'_>) -> bool
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
sourcefn current_buffer(&self, _token: &AggregateFramesToken<'_>) -> Option<Buffer>
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
sourcefn prepared_frame<'a>(
&self,
_token: &'a AggregateFramesToken<'_>,
) -> Option<VideoFrameRef<&'a BufferRef>>
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