pub enum DecodedImageData<'a> {
Data8b(YUVImageData<'a, u8>),
Data16b(YUVImageData<'a, u16>),
}Expand description
Encapsulates the specific pixel type returned in the decoded image.
libvpx will return u16 pixel data from high-bit-depth (10-bit
and 12-bit) video streams.
Variants§
Data8b(YUVImageData<'a, u8>)
Underlying data is 8-bits per sample. This variant is generated for a normal bit depth (8-bit) video stream.
Data16b(YUVImageData<'a, u16>)
Underlying data is 16-bits per sample. This variant is generated for a high bit depth (10-bit/12-bit) video stream.
Trait Implementations§
Source§impl<'a> Clone for DecodedImageData<'a>
impl<'a> Clone for DecodedImageData<'a>
Source§fn clone(&self) -> DecodedImageData<'a>
fn clone(&self) -> DecodedImageData<'a>
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 moreSource§impl<'a> Debug for DecodedImageData<'a>
impl<'a> Debug for DecodedImageData<'a>
Source§impl<'a> Hash for DecodedImageData<'a>
impl<'a> Hash for DecodedImageData<'a>
Source§impl<'a> Ord for DecodedImageData<'a>
impl<'a> Ord for DecodedImageData<'a>
Source§fn cmp(&self, other: &DecodedImageData<'a>) -> Ordering
fn cmp(&self, other: &DecodedImageData<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for DecodedImageData<'a>
impl<'a> PartialEq for DecodedImageData<'a>
Source§impl<'a> PartialOrd for DecodedImageData<'a>
impl<'a> PartialOrd for DecodedImageData<'a>
impl<'a> Eq for DecodedImageData<'a>
impl<'a> StructuralPartialEq for DecodedImageData<'a>
Auto Trait Implementations§
impl<'a> Freeze for DecodedImageData<'a>
impl<'a> RefUnwindSafe for DecodedImageData<'a>
impl<'a> Send for DecodedImageData<'a>
impl<'a> Sync for DecodedImageData<'a>
impl<'a> Unpin for DecodedImageData<'a>
impl<'a> UnwindSafe for DecodedImageData<'a>
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