#[repr(u32)]pub enum PixelFormat {
Show 24 variants
Invalid = 0,
R8G8B8A8 = 1,
R8G8B8X8 = 119,
B8G8R8A8 = 101,
B8G8R8X8 = 120,
I420 = 102,
M420 = 103,
Nv12 = 104,
Yuy2 = 105,
Mjpeg = 106,
Yv12 = 107,
B8G8R8 = 108,
R5G6B5 = 109,
R3G3B2 = 110,
R2G2B2X2 = 111,
L8 = 112,
R8 = 113,
R8G8 = 114,
A2R10G10B10 = 115,
A2B10G10R10 = 116,
P010 = 117,
R8G8B8 = 118,
DoNotCare = 4_294_967_294,
UnknownOrdinal_(u32),
}Expand description
Expresses the manner in which video pixels are encoded.
The ordering of the channels in the format name reflects the actual layout of the channel.
Each of these values is opinionated re. the color spaces that should be contained within (in contrast with Vulkan).
Variants§
Invalid = 0
R8G8B8A8 = 1
R8G8B8X8 = 119
B8G8R8A8 = 101
B8G8R8X8 = 120
I420 = 102
M420 = 103
Nv12 = 104
Yuy2 = 105
Mjpeg = 106
Yv12 = 107
B8G8R8 = 108
R5G6B5 = 109
R3G3B2 = 110
R2G2B2X2 = 111
L8 = 112
R8 = 113
R8G8 = 114
A2R10G10B10 = 115
A2B10G10R10 = 116
P010 = 117
R8G8B8 = 118
DoNotCare = 4_294_967_294
UnknownOrdinal_(u32)
Trait Implementations§
Source§impl Clone for PixelFormat
impl Clone for PixelFormat
Source§fn clone(&self) -> PixelFormat
fn clone(&self) -> PixelFormat
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 PixelFormat
impl Debug for PixelFormat
Source§impl<'a, ___E> Encode<PixelFormat, ___E> for &'a PixelFormatwhere
___E: ?Sized,
impl<'a, ___E> Encode<PixelFormat, ___E> for &'a PixelFormatwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<PixelFormat>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<PixelFormat>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> Encode<PixelFormat, ___E> for PixelFormatwhere
___E: ?Sized,
impl<___E> Encode<PixelFormat, ___E> for PixelFormatwhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<PixelFormat>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<PixelFormat>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl From<PixelFormat> for PixelFormat
impl From<PixelFormat> for PixelFormat
Source§fn from(wire: PixelFormat) -> Self
fn from(wire: PixelFormat) -> Self
Converts to this type from the input type.
Source§impl From<PixelFormat> for PixelFormat
impl From<PixelFormat> for PixelFormat
Source§fn from(natural: PixelFormat) -> Self
fn from(natural: PixelFormat) -> Self
Converts to this type from the input type.
Source§impl From<u32> for PixelFormat
impl From<u32> for PixelFormat
Source§impl FromWire<PixelFormat> for PixelFormat
impl FromWire<PixelFormat> for PixelFormat
Source§fn from_wire(wire: PixelFormat) -> Self
fn from_wire(wire: PixelFormat) -> Self
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<PixelFormat> for PixelFormat
impl FromWireRef<PixelFormat> for PixelFormat
Source§fn from_wire_ref(wire: &PixelFormat) -> Self
fn from_wire_ref(wire: &PixelFormat) -> Self
Converts the given reference to this type.
Source§impl Hash for PixelFormat
impl Hash for PixelFormat
Source§impl Ord for PixelFormat
impl Ord for PixelFormat
Source§fn cmp(&self, other: &PixelFormat) -> Ordering
fn cmp(&self, other: &PixelFormat) -> 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 PixelFormat
impl PartialEq for PixelFormat
Source§fn eq(&self, other: &PixelFormat) -> bool
fn eq(&self, other: &PixelFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PixelFormat
impl PartialOrd for PixelFormat
impl Copy for PixelFormat
impl Eq for PixelFormat
impl StructuralPartialEq for PixelFormat
Auto Trait Implementations§
impl Freeze for PixelFormat
impl RefUnwindSafe for PixelFormat
impl Send for PixelFormat
impl Sync for PixelFormat
impl Unpin for PixelFormat
impl UnsafeUnpin for PixelFormat
impl UnwindSafe for PixelFormat
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,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]