Struct libspa::param::video::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 copy 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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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> 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,

§

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>,

§

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>,

§

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.