pub struct ImageMetadata {
pub bit_depth: BitDepth,
pub color_encoding: ColorEncoding,
pub extra_channels: Vec<ExtraChannelInfo>,
pub orientation: Orientation,
pub animation: Option<AnimationHeader>,
pub intensity_target: f32,
pub min_nits: f32,
pub have_intrinsic_size: bool,
pub intrinsic_width: u32,
pub intrinsic_height: u32,
pub xyb_encoded: bool,
}Expand description
Image metadata that appears once per file.
Fields§
§bit_depth: BitDepthBit depth configuration.
color_encoding: ColorEncodingColor encoding (color space, transfer function, etc.).
extra_channels: Vec<ExtraChannelInfo>Extra channels (alpha, depth, etc.).
orientation: OrientationImage orientation.
animation: Option<AnimationHeader>Animation parameters (None if not animated).
intensity_target: f32Intensity target for HDR in nits.
min_nits: f32Minimum nits for tone mapping.
have_intrinsic_size: boolWhether intrinsic size differs from coded size.
intrinsic_width: u32Intrinsic width (if have_intrinsic_size).
intrinsic_height: u32Intrinsic height (if have_intrinsic_size).
xyb_encoded: boolWhether image uses XYB color encoding (true for lossy, false for lossless).
Trait Implementations§
Source§impl Clone for ImageMetadata
impl Clone for ImageMetadata
Source§fn clone(&self) -> ImageMetadata
fn clone(&self) -> ImageMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageMetadata
impl Debug for ImageMetadata
Auto Trait Implementations§
impl Freeze for ImageMetadata
impl RefUnwindSafe for ImageMetadata
impl Send for ImageMetadata
impl Sync for ImageMetadata
impl Unpin for ImageMetadata
impl UnwindSafe for ImageMetadata
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