Trait rav1e::prelude::IntoFrame

source ·
pub trait IntoFrame<T: Pixel> {
    // Required method
    fn into(self) -> (Option<Arc<Frame<T>>>, Option<FrameParameters>);
}
Expand description

Types which can be converted into frames.

This trait is used in Context::send_frame to allow for passing in frames with optional frame parameters and optionally frames wrapped in Arc (to allow for zero-copy, since the encoder uses frames in Arc internally).

Required Methods§

source

fn into(self) -> (Option<Arc<Frame<T>>>, Option<FrameParameters>)

Converts the type into a tuple of frame and parameters.

Implementations on Foreign Types§

source§

impl<T: Pixel> IntoFrame<T> for (Frame<T>, Option<FrameParameters>)

source§

impl<T: Pixel> IntoFrame<T> for (Frame<T>, FrameParameters)

source§

impl<T: Pixel> IntoFrame<T> for (Arc<Frame<T>>, Option<FrameParameters>)

source§

impl<T: Pixel> IntoFrame<T> for (Arc<Frame<T>>, FrameParameters)

source§

impl<T: Pixel> IntoFrame<T> for Option<Arc<Frame<T>>>

source§

impl<T: Pixel> IntoFrame<T> for Arc<Frame<T>>

Implementors§

source§

impl<T: Pixel> IntoFrame<T> for Frame<T>