Trait rav1e::prelude::IntoFrame[][src]

pub trait IntoFrame<T: Pixel> {
    fn into(self) -> (Option<Arc<Frame<T>>>, Option<FrameParameters>);
}

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

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

Converts the type into a tuple of frame and parameters.

Loading content...

Implementations on Foreign Types

impl<T: Pixel> IntoFrame<T> for Option<Arc<Frame<T>>>[src]

impl<T: Pixel> IntoFrame<T> for Arc<Frame<T>>[src]

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

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

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

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

Loading content...

Implementors

Loading content...