pub enum InputVideoFrameFormat {
Rgb888 = 0,
}Expand description
The format of the input video frames accesed via read_video_frame.
Variants§
Rgb888 = 0
Each pixel is encoded using red, green, blue components, each component occupies 8 bits. The pixels are stored in row-major order.
Trait Implementations§
Source§impl Clone for InputVideoFrameFormat
impl Clone for InputVideoFrameFormat
Source§fn clone(&self) -> InputVideoFrameFormat
fn clone(&self) -> InputVideoFrameFormat
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 InputVideoFrameFormat
impl Debug for InputVideoFrameFormat
Source§impl Decode for InputVideoFrameFormat
impl Decode for InputVideoFrameFormat
Source§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<InputVideoFrameFormat, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<InputVideoFrameFormat, 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 InputVideoFrameFormat
impl Encode for InputVideoFrameFormat
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 InputVideoFrameFormat
impl Hash for InputVideoFrameFormat
Source§impl MaxEncodedLen for InputVideoFrameFormat
impl MaxEncodedLen for InputVideoFrameFormat
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 InputVideoFrameFormat
impl Ord for InputVideoFrameFormat
Source§fn cmp(&self, other: &InputVideoFrameFormat) -> Ordering
fn cmp(&self, other: &InputVideoFrameFormat) -> 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 InputVideoFrameFormat
impl PartialEq for InputVideoFrameFormat
Source§fn eq(&self, other: &InputVideoFrameFormat) -> bool
fn eq(&self, other: &InputVideoFrameFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for InputVideoFrameFormat
impl PartialOrd for InputVideoFrameFormat
Source§impl TryFrom<u8> for InputVideoFrameFormat
impl TryFrom<u8> for InputVideoFrameFormat
impl Copy for InputVideoFrameFormat
impl EncodeLike for InputVideoFrameFormat
impl Eq for InputVideoFrameFormat
impl StructuralPartialEq for InputVideoFrameFormat
Auto Trait Implementations§
impl Freeze for InputVideoFrameFormat
impl RefUnwindSafe for InputVideoFrameFormat
impl Send for InputVideoFrameFormat
impl Sync for InputVideoFrameFormat
impl Unpin for InputVideoFrameFormat
impl UnsafeUnpin for InputVideoFrameFormat
impl UnwindSafe for InputVideoFrameFormat
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