pub trait VideoAggregatorPadImpl: VideoAggregatorPadImplExt + AggregatorPadImpl {
// 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§
sourcefn update_conversion_info(&self)
fn update_conversion_info(&self)
Called when either the input or output formats have changed.
sourcefn prepare_frame(
&self,
aggregator: &VideoAggregator,
token: &AggregateFramesToken<'_>,
buffer: &Buffer,
) -> Option<VideoFrame<Readable>>
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.
sourcefn clean_frame(
&self,
aggregator: &VideoAggregator,
token: &AggregateFramesToken<'_>,
frame: Option<VideoFrame<Readable>>,
)
fn clean_frame( &self, aggregator: &VideoAggregator, token: &AggregateFramesToken<'_>, frame: Option<VideoFrame<Readable>>, )
clean the frame previously prepared in prepare_frame
Object Safety§
This trait is not object safe.