pub struct JpegInfo {
pub width: u32,
pub height: u32,
pub num_components: u8,
pub bits_per_component: u8,
pub has_adobe_marker: bool,
pub adobe_color_transform: u8,
}Expand description
Information extracted from JPEG markers before decoding.
Fields§
§width: u32Image width in pixels.
height: u32Image height in pixels.
num_components: u8Number of color components (e.g. 1 for grayscale, 3 for RGB/YCbCr, 4 for CMYK).
bits_per_component: u8Bits per component (typically 8).
has_adobe_marker: boolWhether an Adobe APP14 marker was found.
adobe_color_transform: u8Adobe color transform flag (0=Unknown, 1=YCbCr, 2=YCCK).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JpegInfo
impl RefUnwindSafe for JpegInfo
impl Send for JpegInfo
impl Sync for JpegInfo
impl Unpin for JpegInfo
impl UnsafeUnpin for JpegInfo
impl UnwindSafe for JpegInfo
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