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 iptc_data: Option<Vec<u8>>,
}Expand description
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
iptc_data: Option<Vec<u8>>Implementations§
Source§impl ImageInfo
impl ImageInfo
Sourcepub(crate) fn set_width(&mut self, width: u16)
pub(crate) fn set_width(&mut self, width: u16)
Set width of the image
Found in the start of frame
Sourcepub(crate) fn set_height(&mut self, height: u16)
pub(crate) fn set_height(&mut self, height: u16)
Set height of the image
Found in the start of frame
Sourcepub(crate) fn set_density(&mut self, density: u8)
pub(crate) fn set_density(&mut self, density: u8)
Set the image density
Found in the start of frame
Sourcepub(crate) fn set_sof_marker(&mut self, marker: SOFMarkers)
pub(crate) fn set_sof_marker(&mut self, marker: SOFMarkers)
Set image Start of frame marker
found in the Start of frame header
Trait Implementations§
impl Eq for ImageInfo
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 UnwindSafe for ImageInfo
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