pub struct JpegInfo {
pub width: u16,
pub height: u16,
pub components: Vec<ComponentInfo>,
}Expand description
Image metadata extracted from a JPEG without decoding the entropy stream.
Obtained from inspect. Cheaper than read_coefficients when you
only need dimensions, component count, or block counts.
Fields§
§width: u16Image width in pixels.
height: u16Image height in pixels.
components: Vec<ComponentInfo>Per-component metadata, in SOF order (typically Y, Cb, Cr).
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