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: u32
Width of the image
height: u32
Height of the image
intensity_target: f32
Upper bound on the intensity level present in the image in nits
min_nits: f32
Lower bound on the intensity level present in the image
orientation: Orientation
Orientation
num_color_channels: u32
Number of color channels per pixel without alpha channel, from metadata
has_alpha_channel: bool
Whether the image has an alpha channel, from metadata
intrinsic_width: u32
Intrinsic width of the image. Applications are advised to resample the decoded image to the intrinsic dimensions
intrinsic_height: u32
Intrinsic 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