Struct ImageInfo
pub struct ImageInfo { pub width: u16, pub height: u16, pub pixel_density: u8, pub sof: SOFMarkers, pub x_density: u16, pub y_density: u16, pub components: u8, pub gain_map_info: Vec<GainMapInfo>, pub multi_picture_information: Option<Vec<u8>>, pub exif_data: Option<Vec<u8>>, pub xmp_data: Option<Vec<u8>>, pub iptc_data: Option<Vec<u8>>, pub extended_xmp: Option<Vec<u8>>, pub extended_xmp_guid: Option<Vec<u8>>, pub sample_ratio: SampleRatios, pub multi_picture_information_offset: Option<u64> }
A struct representing Image Information
Fields
width: u16Width of the image
height: u16Height of image
pixel_density: u8PixelDensity
sof: SOFMarkersStart of frame markers
x_density: u16Horizontal sample
y_density: u16Vertical sample
components: u8Number of components
gain_map_info: Vec<GainMapInfo>Gain Map information, useful for UHDR images
multi_picture_information: Option<Vec<u8>>Multi picture information, useful for UHDR images
exif_data: Option<Vec<u8>>Exif Data
xmp_data: Option<Vec<u8>>XMP Data
iptc_data: Option<Vec<u8>>IPTC Data
extended_xmp: Option<Vec<u8>>Extended XMP Data
extended_xmp_guid: Option<Vec<u8>>Extended XMP Guid
sample_ratio: SampleRatiosImage sub-sampling ratio
multi_picture_information_offset: Option<u64>The offset at which Multi picture information was found
Trait Implementations
impl Clone for ImageInfo
fn clone(&self) -> ImageInfo
impl Default for ImageInfo
fn default() -> ImageInfo
impl Eq for ImageInfo
impl PartialEq for ImageInfo
fn eq(&self, other: &ImageInfo) -> bool
impl StructuralPartialEq for ImageInfo
Auto Trait Implementations
impl Freeze for ImageInfo
impl RefUnwindSafe for ImageInfo
impl Send for ImageInfo
impl Sync for ImageInfo
impl Unpin for ImageInfo
impl UnsafeUnpin for ImageInfo
impl UnwindSafe for ImageInfo
Blanket Implementations
impl<T> Any for ImageInfo
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ImageInfo
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ImageInfo
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ImageInfo
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ImageInfo
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for ImageInfo
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ImageInfo
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ImageInfo
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ImageInfo
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>