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.
Auto Trait Implementations§
impl<'a> Freeze for Image<'a>
impl<'a> RefUnwindSafe for Image<'a>
impl<'a> !Send for Image<'a>
impl<'a> !Sync for Image<'a>
impl<'a> Unpin for Image<'a>
impl<'a> UnwindSafe for Image<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more