Struct libspa::param::video::VideoFormat
source · pub struct VideoFormat(pub spa_video_format);
Tuple Fields§
§0: spa_video_format
Implementations§
source§impl VideoFormat
impl VideoFormat
pub const Unknown: Self = _
pub const Encoded: Self = _
pub const I420: Self = _
pub const YV12: Self = _
pub const YUY2: Self = _
pub const UYVY: Self = _
pub const AYUV: Self = _
pub const RGBx: Self = _
pub const BGRx: Self = _
pub const xRGB: Self = _
pub const xBGR: Self = _
pub const RGBA: Self = _
pub const BGRA: Self = _
pub const ARGB: Self = _
pub const ABGR: Self = _
pub const RGB: Self = _
pub const BGR: Self = _
pub const Y41B: Self = _
pub const Y42B: Self = _
pub const YVYU: Self = _
pub const Y444: Self = _
pub const v210: Self = _
pub const v216: Self = _
pub const NV12: Self = _
pub const NV21: Self = _
pub const GRAY8: Self = _
pub const GRAY16_BE: Self = _
pub const GRAY16_LE: Self = _
pub const v308: Self = _
pub const RGB16: Self = _
pub const BGR16: Self = _
pub const RGB15: Self = _
pub const BGR15: Self = _
pub const UYVP: Self = _
pub const A420: Self = _
pub const RGB8P: Self = _
pub const YUV9: Self = _
pub const YVU9: Self = _
pub const IYU1: Self = _
pub const ARGB64: Self = _
pub const AYUV64: Self = _
pub const r210: Self = _
pub const I420_10BE: Self = _
pub const I420_10LE: Self = _
pub const I422_10BE: Self = _
pub const I422_10LE: Self = _
pub const Y444_10BE: Self = _
pub const Y444_10LE: Self = _
pub const GBR: Self = _
pub const GBR_10BE: Self = _
pub const GBR_10LE: Self = _
pub const NV16: Self = _
pub const NV24: Self = _
pub const NV12_64Z32: Self = _
pub const A420_10BE: Self = _
pub const A420_10LE: Self = _
pub const A422_10BE: Self = _
pub const A422_10LE: Self = _
pub const A444_10BE: Self = _
pub const A444_10LE: Self = _
pub const NV61: Self = _
pub const P010_10BE: Self = _
pub const P010_10LE: Self = _
pub const IYU2: Self = _
pub const VYUY: Self = _
pub const GBRA: Self = _
pub const GBRA_10BE: Self = _
pub const GBRA_10LE: Self = _
pub const GBR_12BE: Self = _
pub const GBR_12LE: Self = _
pub const GBRA_12BE: Self = _
pub const GBRA_12LE: Self = _
pub const I420_12BE: Self = _
pub const I420_12LE: Self = _
pub const I422_12BE: Self = _
pub const I422_12LE: Self = _
pub const Y444_12BE: Self = _
pub const Y444_12LE: Self = _
pub const RGBA_F16: Self = _
pub const RGBA_F32: Self = _
sourcepub const xRGB_210LE: Self = _
pub const xRGB_210LE: Self = _
32-bit x:R:G:B 2:10:10:10 little endian
sourcepub const xBGR_210LE: Self = _
pub const xBGR_210LE: Self = _
32-bit x:B:G:R 2:10:10:10 little endian
sourcepub const RGBx_102LE: Self = _
pub const RGBx_102LE: Self = _
32-bit R:G:B:x 10:10:10:2 little endian
sourcepub const BGRx_102LE: Self = _
pub const BGRx_102LE: Self = _
32-bit B:G:R:x 10:10:10:2 little endian
sourcepub const ARGB_210LE: Self = _
pub const ARGB_210LE: Self = _
32-bit A:R:G:B 2:10:10:10 little endian
sourcepub const ABGR_210LE: Self = _
pub const ABGR_210LE: Self = _
32-bit A:B:G:R 2:10:10:10 little endian
sourcepub const RGBA_102LE: Self = _
pub const RGBA_102LE: Self = _
32-bit R:G:B:A 10:10:10:2 little endian
sourcepub const BGRA_102LE: Self = _
pub const BGRA_102LE: Self = _
32-bit B:G:R:A 10:10:10:2 little endian
pub const DSP_F32: Self = _
sourcepub fn from_raw(raw: spa_video_format) -> Self
pub fn from_raw(raw: spa_video_format) -> Self
Obtain a VideoFormat
from a raw spa_video_format
variant.
sourcepub fn as_raw(&self) -> spa_video_format
pub fn as_raw(&self) -> spa_video_format
Get the raw spa_sys::spa_video_format
representing this VideoFormat
.
Trait Implementations§
source§impl Clone for VideoFormat
impl Clone for VideoFormat
source§fn clone(&self) -> VideoFormat
fn clone(&self) -> VideoFormat
Returns a copy of the value. Read more
1.0.0 · 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 VideoFormat
impl Debug for VideoFormat
source§impl PartialEq for VideoFormat
impl PartialEq for VideoFormat
source§fn eq(&self, other: &VideoFormat) -> bool
fn eq(&self, other: &VideoFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for VideoFormat
impl Eq for VideoFormat
impl StructuralPartialEq for VideoFormat
Auto Trait Implementations§
impl RefUnwindSafe for VideoFormat
impl Send for VideoFormat
impl Sync for VideoFormat
impl Unpin for VideoFormat
impl UnwindSafe for VideoFormat
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