#[repr(C)]pub enum moq_video_pixel_format {
MOQ_VIDEO_PIXEL_FORMAT_I420 = 0,
MOQ_VIDEO_PIXEL_FORMAT_RGBA = 1,
}Expand description
Pixel layout of the raw frames handed to moq_publish_video_raw_frame.
The enum is exposed in the C header for readability, but ABI fields that
carry it are typed u32. A C caller passing an unknown discriminant gets
Error::InvalidCode instead of UB.
Variants§
MOQ_VIDEO_PIXEL_FORMAT_I420 = 0
Tightly-packed planar I420: Y, then U, then V, no row padding.
width * height * 3 / 2 bytes, the same layout moq_consume_video_raw
hands back.
MOQ_VIDEO_PIXEL_FORMAT_RGBA = 1
Tightly-packed RGBA, width * height * 4 bytes, no row padding.
Trait Implementations§
Source§impl Clone for moq_video_pixel_format
impl Clone for moq_video_pixel_format
Source§fn clone(&self) -> moq_video_pixel_format
fn clone(&self) -> moq_video_pixel_format
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 moreimpl Copy for moq_video_pixel_format
Auto Trait Implementations§
impl Freeze for moq_video_pixel_format
impl RefUnwindSafe for moq_video_pixel_format
impl Send for moq_video_pixel_format
impl Sync for moq_video_pixel_format
impl Unpin for moq_video_pixel_format
impl UnsafeUnpin for moq_video_pixel_format
impl UnwindSafe for moq_video_pixel_format
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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