pub struct Info {
pub dimensions: (u32, u32),
pub components: u8,
pub colorspace: Colorspace,
pub bit_depth: u8,
pub tile_layout: Option<TileLayout>,
pub coded_unit_layout: Option<CodedUnitLayout>,
pub restart_interval: Option<u32>,
pub resolution_levels: u8,
}Expand description
Basic image metadata returned by inspect/parse operations.
Fields§
§dimensions: (u32, u32)Image dimensions in pixels.
components: u8Number of image components.
colorspace: ColorspaceColor interpretation of the components.
bit_depth: u8Bits per component sample.
tile_layout: Option<TileLayout>Optional compressed tile grid.
coded_unit_layout: Option<CodedUnitLayout>Optional coded-unit grid.
restart_interval: Option<u32>Optional restart interval for formats that expose one.
resolution_levels: u8Number of resolution levels available in the codestream.
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