pub struct Image {
pub width: usize,
pub height: usize,
pub channels: usize,
pub data: Vec<u8>,
pub adobe_inverted: bool,
}Expand description
A decoded image: channels is 1 (gray) or 3 (RGB, or the raw component
triplets when no colour transform applies), rows of width pixels.
Fields§
§width: usize§height: usize§channels: usize§data: Vec<u8>§adobe_inverted: boolA four-component image carried an Adobe APP14 marker: its CMYK samples are stored inverted (Adobe’s convention), as libjpeg hands them out.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Image
impl Freeze for Image
impl Move for Image
impl RefUnwindSafe for Image
impl Send for Imagewhere
RawVecInner: Send,
impl Sync for Imagewhere
RawVecInner: Sync,
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Imagewhere
RawVecInner: UnwindSafe,
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