pub struct ImageHeader {
pub height: u32,
pub width: u32,
pub num_components: u16,
pub bits_per_component: u8,
pub compression_type: u8,
pub colorspace_unknown: bool,
pub has_ipr: bool,
}Expand description
Image header box (ihdr)
Fields§
§height: u32Image height
width: u32Image width
num_components: u16Number of components
bits_per_component: u8Bits per component
compression_type: u8Compression type (should be 7 for JPEG2000)
colorspace_unknown: boolColorspace unknown flag
has_ipr: boolIntellectual property flag
Implementations§
Trait Implementations§
Source§impl Clone for ImageHeader
impl Clone for ImageHeader
Source§fn clone(&self) -> ImageHeader
fn clone(&self) -> ImageHeader
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 moreAuto Trait Implementations§
impl Freeze for ImageHeader
impl RefUnwindSafe for ImageHeader
impl Send for ImageHeader
impl Sync for ImageHeader
impl Unpin for ImageHeader
impl UnsafeUnpin for ImageHeader
impl UnwindSafe for ImageHeader
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