Struct VideoFormat

Source
pub struct VideoFormat(pub spa_video_format);

Tuple Fields§

§0: spa_video_format

Implementations§

Source§

impl VideoFormat

Source

pub const Unknown: Self

Source

pub const Encoded: Self

Source

pub const I420: Self

Source

pub const YV12: Self

Source

pub const YUY2: Self

Source

pub const UYVY: Self

Source

pub const AYUV: Self

Source

pub const RGBx: Self

Source

pub const BGRx: Self

Source

pub const xRGB: Self

Source

pub const xBGR: Self

Source

pub const RGBA: Self

Source

pub const BGRA: Self

Source

pub const ARGB: Self

Source

pub const ABGR: Self

Source

pub const RGB: Self

Source

pub const BGR: Self

Source

pub const Y41B: Self

Source

pub const Y42B: Self

Source

pub const YVYU: Self

Source

pub const Y444: Self

Source

pub const v210: Self

Source

pub const v216: Self

Source

pub const NV12: Self

Source

pub const NV21: Self

Source

pub const GRAY8: Self

Source

pub const GRAY16_BE: Self

Source

pub const GRAY16_LE: Self

Source

pub const v308: Self

Source

pub const RGB16: Self

Source

pub const BGR16: Self

Source

pub const RGB15: Self

Source

pub const BGR15: Self

Source

pub const UYVP: Self

Source

pub const A420: Self

Source

pub const RGB8P: Self

Source

pub const YUV9: Self

Source

pub const YVU9: Self

Source

pub const IYU1: Self

Source

pub const ARGB64: Self

Source

pub const AYUV64: Self

Source

pub const r210: Self

Source

pub const I420_10BE: Self

Source

pub const I420_10LE: Self

Source

pub const I422_10BE: Self

Source

pub const I422_10LE: Self

Source

pub const Y444_10BE: Self

Source

pub const Y444_10LE: Self

Source

pub const GBR: Self

Source

pub const GBR_10BE: Self

Source

pub const GBR_10LE: Self

Source

pub const NV16: Self

Source

pub const NV24: Self

Source

pub const NV12_64Z32: Self

Source

pub const A420_10BE: Self

Source

pub const A420_10LE: Self

Source

pub const A422_10BE: Self

Source

pub const A422_10LE: Self

Source

pub const A444_10BE: Self

Source

pub const A444_10LE: Self

Source

pub const NV61: Self

Source

pub const P010_10BE: Self

Source

pub const P010_10LE: Self

Source

pub const IYU2: Self

Source

pub const VYUY: Self

Source

pub const GBRA: Self

Source

pub const GBRA_10BE: Self

Source

pub const GBRA_10LE: Self

Source

pub const GBR_12BE: Self

Source

pub const GBR_12LE: Self

Source

pub const GBRA_12BE: Self

Source

pub const GBRA_12LE: Self

Source

pub const I420_12BE: Self

Source

pub const I420_12LE: Self

Source

pub const I422_12BE: Self

Source

pub const I422_12LE: Self

Source

pub const Y444_12BE: Self

Source

pub const Y444_12LE: Self

Source

pub const RGBA_F16: Self

Source

pub const RGBA_F32: Self

Source

pub const xRGB_210LE: Self

32-bit x:R:G:B 2:10:10:10 little endian

Source

pub const xBGR_210LE: Self

32-bit x:B:G:R 2:10:10:10 little endian

Source

pub const RGBx_102LE: Self

32-bit R:G:B:x 10:10:10:2 little endian

Source

pub const BGRx_102LE: Self

32-bit B:G:R:x 10:10:10:2 little endian

Source

pub const ARGB_210LE: Self

32-bit A:R:G:B 2:10:10:10 little endian

Source

pub const ABGR_210LE: Self

32-bit A:B:G:R 2:10:10:10 little endian

Source

pub const RGBA_102LE: Self

32-bit R:G:B:A 10:10:10:2 little endian

Source

pub const BGRA_102LE: Self

32-bit B:G:R:A 10:10:10:2 little endian

Source

pub const DSP_F32: Self

Source

pub fn from_raw(raw: spa_video_format) -> Self

Obtain a VideoFormat from a raw spa_video_format variant.

Source

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

Source§

fn clone(&self) -> VideoFormat

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VideoFormat

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for VideoFormat

Source§

fn eq(&self, other: &VideoFormat) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for VideoFormat

Source§

impl Eq for VideoFormat

Source§

impl StructuralPartialEq for VideoFormat

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.