Struct x264::Image [−][src]
pub struct Image<'a> { /* fields omitted */ }
Input image data to be given to the encoder.
Methods
impl<'a> Image<'a>
[src]
impl<'a> Image<'a>
pub fn new<E: Into<Encoding>>(
format: E,
width: i32,
height: i32,
planes: &[Plane<'a>]
) -> Self
[src]
pub fn new<E: Into<Encoding>>(
format: E,
width: i32,
height: i32,
planes: &[Plane<'a>]
) -> Self
pub fn bgr(width: i32, height: i32, data: &'a [u8]) -> Self
[src]
pub fn bgr(width: i32, height: i32, data: &'a [u8]) -> Self
Makes a new packed BGR image.
pub fn rgb(width: i32, height: i32, data: &'a [u8]) -> Self
[src]
pub fn rgb(width: i32, height: i32, data: &'a [u8]) -> Self
Makes a new packed RGB image.
pub fn bgra(width: i32, height: i32, data: &'a [u8]) -> Self
[src]
pub fn bgra(width: i32, height: i32, data: &'a [u8]) -> Self
Makes a new packed BGRA image.
pub unsafe fn new_unchecked(
format: Encoding,
width: i32,
height: i32,
planes: &[Plane<'a>]
) -> Self
[src]
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.
pub fn width(&self) -> i32
[src]
pub fn width(&self) -> i32
The width of the image.
pub fn height(&self) -> i32
[src]
pub fn height(&self) -> i32
The height of the image.
pub fn encoding(&self) -> Encoding
[src]
pub fn encoding(&self) -> Encoding
The encoding of the image.