pub struct Vp8lHeader {
pub width: u32,
pub height: u32,
pub alpha_is_used: bool,
pub version: u8,
}Expand description
VP8L bitstream header.
Fields§
§width: u32Image width in pixels.
height: u32Image height in pixels.
alpha_is_used: boolWhether the image contains non-opaque alpha values.
version: u8Version number (must be 0).
Implementations§
Source§impl Vp8lHeader
impl Vp8lHeader
Sourcepub fn parse(data: &[u8]) -> CodecResult<Self>
pub fn parse(data: &[u8]) -> CodecResult<Self>
Parse a VP8L header from data starting at the signature byte.
Trait Implementations§
Source§impl Clone for Vp8lHeader
impl Clone for Vp8lHeader
Source§fn clone(&self) -> Vp8lHeader
fn clone(&self) -> Vp8lHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Vp8lHeader
impl RefUnwindSafe for Vp8lHeader
impl Send for Vp8lHeader
impl Sync for Vp8lHeader
impl Unpin for Vp8lHeader
impl UnsafeUnpin for Vp8lHeader
impl UnwindSafe for Vp8lHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more