pub struct Image<'a> { /* private fields */ }
Expand description
Input image data to be given to the encoder.
Implementations§
source§impl<'a> Image<'a>
impl<'a> Image<'a>
sourcepub fn new<E: Into<Encoding>>(
format: E,
width: i32,
height: i32,
planes: &[Plane<'a>]
) -> Self
pub fn new<E: Into<Encoding>>(
format: E,
width: i32,
height: i32,
planes: &[Plane<'a>]
) -> Self
sourcepub unsafe fn new_unchecked(
format: Encoding,
width: i32,
height: i32,
planes: &[Plane<'a>]
) -> Self
pub unsafe fn new_unchecked(
format: Encoding,
width: i32,
height: i32,
planes: &[Plane<'a>]
) -> Self
Makes a new image with the given planes and colorspace.
Unsafety
The caller must ensure that the plane fulfils all the invariants that
x264 expects it to fulfil. I don’t actually know what all of those are,
but the source of Encoder::new
is my best guess.