pub struct Metadata {
pub width: u32,
pub height: u32,
pub intensity_target: f32,
pub min_nits: f32,
pub orientation: Orientation,
pub num_color_channels: u32,
pub has_alpha_channel: bool,
pub intrinsic_width: u32,
pub intrinsic_height: u32,
pub icc_profile: Option<Vec<u8>>,
}Expand description
Result of decoding
Fields§
§width: u32Width of the image
height: u32Height of the image
intensity_target: f32Upper bound on the intensity level present in the image in nits
min_nits: f32Lower bound on the intensity level present in the image
orientation: OrientationOrientation
num_color_channels: u32Number of color channels per pixel without alpha channel, from metadata
has_alpha_channel: boolWhether the image has an alpha channel, from metadata
intrinsic_width: u32Intrinsic width of the image. Applications are advised to resample the decoded image to the intrinsic dimensions
intrinsic_height: u32Intrinsic height of the image. Applications are advised to resample the decoded image to the intrinsic dimensions
icc_profile: Option<Vec<u8>>ICC profile
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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