pub enum VideoFrameFormat {
Rgb888Indexed8 = 1,
}Expand description
The format of the frames emitted via [yield_video_frame].
Variants§
Rgb888Indexed8 = 1
Indexed RGB colors.
Format: [ palette(256*3) | indices(width*height) ].
Each frame consists of a pallete and indices into it.
The pallete has 256 colors and each color has 3 components. Each color in the palette is encoded as a sequence of red, green, blue components, each component occupies 8 bits.
The frame itself goes after the palette. It is encoded as a sequence of 8-bit indices into
the palette in row-major order, there are width * height indices in total.
Trait Implementations§
Source§impl Clone for VideoFrameFormat
impl Clone for VideoFrameFormat
Source§fn clone(&self) -> VideoFrameFormat
fn clone(&self) -> VideoFrameFormat
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 moreSource§impl Debug for VideoFrameFormat
impl Debug for VideoFrameFormat
Source§impl Hash for VideoFrameFormat
impl Hash for VideoFrameFormat
Source§impl Ord for VideoFrameFormat
impl Ord for VideoFrameFormat
Source§fn cmp(&self, other: &VideoFrameFormat) -> Ordering
fn cmp(&self, other: &VideoFrameFormat) -> Ordering
1.21.0 (const: unstable) · 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 PartialEq for VideoFrameFormat
impl PartialEq for VideoFrameFormat
Source§fn eq(&self, other: &VideoFrameFormat) -> bool
fn eq(&self, other: &VideoFrameFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for VideoFrameFormat
impl PartialOrd for VideoFrameFormat
Source§impl TryFrom<u8> for VideoFrameFormat
impl TryFrom<u8> for VideoFrameFormat
impl Copy for VideoFrameFormat
impl Eq for VideoFrameFormat
impl StructuralPartialEq for VideoFrameFormat
Auto Trait Implementations§
impl Freeze for VideoFrameFormat
impl RefUnwindSafe for VideoFrameFormat
impl Send for VideoFrameFormat
impl Sync for VideoFrameFormat
impl Unpin for VideoFrameFormat
impl UnsafeUnpin for VideoFrameFormat
impl UnwindSafe for VideoFrameFormat
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