pub struct DecodeInfo {
pub width: u16,
pub height: u16,
pub color_space: ColorSpace,
pub subsampling: ChromaSubsampling,
pub y_bytes: usize,
pub cb_bytes: usize,
pub cr_bytes: usize,
}Expand description
Decode result describing the decoded image.
Fields§
§width: u16Image width in pixels.
height: u16Image height in pixels.
color_space: ColorSpaceColor space found in the JPEG header.
subsampling: ChromaSubsamplingChroma subsampling found in the JPEG header.
y_bytes: usizeBytes written to the Y plane.
cb_bytes: usizeBytes written to the Cb plane (0 for grayscale).
cr_bytes: usizeBytes written to the Cr plane (0 for grayscale).
Trait Implementations§
Source§impl Clone for DecodeInfo
impl Clone for DecodeInfo
Source§fn clone(&self) -> DecodeInfo
fn clone(&self) -> DecodeInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecodeInfo
impl Debug for DecodeInfo
Source§impl Format for DecodeInfo
impl Format for DecodeInfo
impl Copy for DecodeInfo
Auto Trait Implementations§
impl Freeze for DecodeInfo
impl RefUnwindSafe for DecodeInfo
impl Send for DecodeInfo
impl Sync for DecodeInfo
impl Unpin for DecodeInfo
impl UnwindSafe for DecodeInfo
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