pub struct Info {
pub dimensions: (u32, u32),
pub color_space: ColorSpace,
pub sampling: SamplingFactors,
pub sof_kind: SofKind,
pub bit_depth: u8,
pub restart_interval: Option<u16>,
pub mcu_geometry: McuGeometry,
pub scan_count: u16,
}Expand description
Header-derived image metadata. Populated by Decoder::inspect and by
Decoder::new. scan_count is the number of SOS markers observed in
the input — for sequential this is always 1; for progressive it is the
count of refinement passes.
Fields§
§dimensions: (u32, u32)Image dimensions as (width, height) in pixels.
color_space: ColorSpaceHeader-derived color space after APP14 transform handling.
sampling: SamplingFactorsPer-component sampling factors from the SOF marker.
sof_kind: SofKindStart-of-frame variant that selects the decode pipeline.
bit_depth: u8Sample precision in bits.
restart_interval: Option<u16>Restart interval in MCUs, if a DRI marker was present.
mcu_geometry: McuGeometryDerived MCU geometry for the image.
scan_count: u16Number of SOS markers observed in the stream.
Implementations§
Trait Implementations§
impl Eq for Info
impl StructuralPartialEq for Info
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnsafeUnpin for Info
impl UnwindSafe for Info
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more