#[non_exhaustive]#[repr(i32)]pub enum FourCCVideo {
UYVY = 1_498_831_189,
UYVA = 1_096_178_005,
P216 = 909_193_808,
PA16 = 909_197_648,
YV12 = 842_094_169,
I420 = 808_596_553,
NV12 = 842_094_158,
RGBA = 1_094_862_674,
RGBX = 1_480_738_642,
BGRA = 1_095_911_234,
BGRX = 1_481_787_202,
}Expand description
Possible FourCC values for video frames.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UYVY = 1_498_831_189
UYVA = 1_096_178_005
P216 = 909_193_808
PA16 = 909_197_648
YV12 = 842_094_169
I420 = 808_596_553
NV12 = 842_094_158
RGBA = 1_094_862_674
Red, Green, Blue, Alpha (8bit)
RGBX = 1_480_738_642
RGBA with ignored alpha channel
BGRA = 1_095_911_234
Blue, Green, Red, Alpha (8bit)
BGRX = 1_481_787_202
BGRA with ignored alpha channel
Implementations§
Source§impl FourCCVideo
impl FourCCVideo
Sourcepub fn buffer_info(
self,
resolution: Resolution,
field_mode: NDIFieldedFrameMode,
) -> Result<BufferInfo, BufferInfoError>
pub fn buffer_info( self, resolution: Resolution, field_mode: NDIFieldedFrameMode, ) -> Result<BufferInfo, BufferInfoError>
Returns information about the memory layout of the frame data
Trait Implementations§
Source§impl Clone for FourCCVideo
impl Clone for FourCCVideo
Source§fn clone(&self) -> FourCCVideo
fn clone(&self) -> FourCCVideo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FourCCVideo
impl Debug for FourCCVideo
Source§impl From<FourCCVideo> for FourCC
impl From<FourCCVideo> for FourCC
Source§fn from(value: FourCCVideo) -> Self
fn from(value: FourCCVideo) -> Self
Converts to this type from the input type.
Source§impl From<FourCCVideo> for i32
impl From<FourCCVideo> for i32
Source§fn from(enum_value: FourCCVideo) -> Self
fn from(enum_value: FourCCVideo) -> Self
Converts to this type from the input type.
Source§impl Hash for FourCCVideo
impl Hash for FourCCVideo
Source§impl PartialEq for FourCCVideo
impl PartialEq for FourCCVideo
Source§impl TryFrom<FourCC> for FourCCVideo
impl TryFrom<FourCC> for FourCCVideo
Source§impl TryFrom<i32> for FourCCVideo
impl TryFrom<i32> for FourCCVideo
Source§type Error = TryFromPrimitiveError<FourCCVideo>
type Error = TryFromPrimitiveError<FourCCVideo>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for FourCCVideo
impl TryFromPrimitive for FourCCVideo
const NAME: &'static str = "FourCCVideo"
type Primitive = i32
type Error = TryFromPrimitiveError<FourCCVideo>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for FourCCVideo
impl Eq for FourCCVideo
impl StructuralPartialEq for FourCCVideo
Auto Trait Implementations§
impl Freeze for FourCCVideo
impl RefUnwindSafe for FourCCVideo
impl Send for FourCCVideo
impl Sync for FourCCVideo
impl Unpin for FourCCVideo
impl UnwindSafe for FourCCVideo
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)