pub struct WebpHeader {Show 18 fields
pub width: usize,
pub height: usize,
pub canvas_width: usize,
pub canvas_height: usize,
pub image_chunksize: usize,
pub has_icc_profile: bool,
pub has_alpha: bool,
pub has_exif: bool,
pub has_xmp: bool,
pub has_animation: bool,
pub lossy: bool,
pub image: Vec<u8>,
pub icc_profile: Option<Vec<u8>>,
pub alpha: Option<Vec<u8>>,
pub exif: Option<Vec<u8>>,
pub xmp: Option<Vec<u8>>,
pub animation: Option<AnimationControl>,
pub animation_frame: Option<Vec<AnimationFrame>>,
}Expand description
Container-level metadata returned by read_header.
Fields§
§width: usizeImage width for still images.
height: usizeImage height for still images.
canvas_width: usizeCanvas width from VP8X, when present.
canvas_height: usizeCanvas height from VP8X, when present.
image_chunksize: usizeEncoded size of the primary image chunk.
has_icc_profile: boolWhether an ICC profile is advertised.
has_alpha: boolWhether alpha is advertised or present.
has_exif: boolWhether EXIF metadata is advertised.
has_xmp: boolWhether XMP metadata is advertised.
has_animation: boolWhether animation is advertised.
lossy: booltrue for VP8 , false for VP8L.
image: Vec<u8>Raw primary image payload.
icc_profile: Option<Vec<u8>>Optional ICC profile payload.
alpha: Option<Vec<u8>>Optional still-image ALPH payload.
exif: Option<Vec<u8>>Optional EXIF payload.
xmp: Option<Vec<u8>>Optional XMP payload.
animation: Option<AnimationControl>Optional animation control block.
animation_frame: Option<Vec<AnimationFrame>>Optional parsed animation frame entries.
Implementations§
Source§impl WebpHeader
impl WebpHeader
Auto Trait Implementations§
impl Freeze for WebpHeader
impl RefUnwindSafe for WebpHeader
impl Send for WebpHeader
impl Sync for WebpHeader
impl Unpin for WebpHeader
impl UnsafeUnpin for WebpHeader
impl UnwindSafe for WebpHeader
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