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 Decode for VideoFrameFormat
impl Decode for VideoFrameFormat
Source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<VideoFrameFormat, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<VideoFrameFormat, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Encode for VideoFrameFormat
impl Encode for VideoFrameFormat
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl Hash for VideoFrameFormat
impl Hash for VideoFrameFormat
Source§impl MaxEncodedLen for VideoFrameFormat
impl MaxEncodedLen for VideoFrameFormat
Source§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.
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 EncodeLike 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