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 duplicate 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
impl Copy for VideoFormat
impl Eq for VideoFormat
impl StructuralPartialEq for VideoFormat
Auto Trait Implementations§
impl Freeze for VideoFormat
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