#[non_exhaustive]
pub enum VideoFormat {
Show 134 variants Unknown, Encoded, I420, Yv12, Yuy2, Uyvy, Ayuv, Rgbx, Bgrx, Xrgb, Xbgr, Rgba, Bgra, Argb, Abgr, Rgb, Bgr, Y41b, Y42b, Yvyu, Y444, V210, V216, Nv12, Nv21, Gray8, Gray16Be, Gray16Le, V308, Rgb16, Bgr16, Rgb15, Bgr15, Uyvp, A420, Rgb8p, Yuv9, Yvu9, Iyu1, Argb64, Ayuv64, R210, I42010be, I42010le, I42210be, I42210le, Y44410be, Y44410le, Gbr, Gbr10be, Gbr10le, Nv16, Nv24, Nv1264z32, A42010be, A42010le, A42210be, A42210le, A44410be, A44410le, Nv61, P01010be, P01010le, Iyu2, Vyuy, Gbra, Gbra10be, Gbra10le, Gbr12be, Gbr12le, Gbra12be, Gbra12le, I42012be, I42012le, I42212be, I42212le, Y44412be, Y44412le, Gray10Le32, Nv1210le32, Nv1610le32, Nv1210le40, Y210, Y410, Vuya, Bgr10a2Le, Rgb10a2Le, Y44416be, Y44416le, P016Be, P016Le, P012Be, P012Le, Y212Be, Y212Le, Y412Be, Y412Le, Nv124l4, Nv1232l32, Rgbp, Bgrp, Av12, Argb64Le, Argb64Be, Rgba64Le, Rgba64Be, Bgra64Le, Bgra64Be, Abgr64Le, Abgr64Be, Nv1216l32s, Nv128l128, Nv1210be8l128, Nv1210le404l4, DmaDrm, Mt2110t, Mt2110r, A422, A444, A44412le, A44412be, A42212le, A42212be, A42012le, A42012be, A44416le, A44416be, A42216le, A42216be, A42016le, A42016be, Gbr16le, Gbr16be, Rbga,
}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Unknown

§

Encoded

§

I420

§

Yv12

§

Yuy2

§

Uyvy

§

Ayuv

§

Rgbx

§

Bgrx

§

Xrgb

§

Xbgr

§

Rgba

§

Bgra

§

Argb

§

Abgr

§

Rgb

§

Bgr

§

Y41b

§

Y42b

§

Yvyu

§

Y444

§

V210

§

V216

§

Nv12

§

Nv21

§

Gray8

§

Gray16Be

§

Gray16Le

§

V308

§

Rgb16

§

Bgr16

§

Rgb15

§

Bgr15

§

Uyvp

§

A420

§

Rgb8p

§

Yuv9

§

Yvu9

§

Iyu1

§

Argb64

§

Ayuv64

§

R210

§

I42010be

§

I42010le

§

I42210be

§

I42210le

§

Y44410be

§

Y44410le

§

Gbr

§

Gbr10be

§

Gbr10le

§

Nv16

§

Nv24

§

Nv1264z32

§

A42010be

§

A42010le

§

A42210be

§

A42210le

§

A44410be

§

A44410le

§

Nv61

§

P01010be

§

P01010le

§

Iyu2

§

Vyuy

§

Gbra

§

Gbra10be

§

Gbra10le

§

Gbr12be

§

Gbr12le

§

Gbra12be

§

Gbra12le

§

I42012be

§

I42012le

§

I42212be

§

I42212le

§

Y44412be

§

Y44412le

§

Gray10Le32

§

Nv1210le32

§

Nv1610le32

§

Nv1210le40

Available on crate feature v1_16 only.
§

Y210

Available on crate feature v1_16 only.
§

Y410

Available on crate feature v1_16 only.
§

Vuya

Available on crate feature v1_16 only.
§

Bgr10a2Le

Available on crate feature v1_16 only.
§

Rgb10a2Le

Available on crate feature v1_18 only.
§

Y44416be

Available on crate feature v1_18 only.
§

Y44416le

Available on crate feature v1_18 only.
§

P016Be

Available on crate feature v1_18 only.
§

P016Le

Available on crate feature v1_18 only.
§

P012Be

Available on crate feature v1_18 only.
§

P012Le

Available on crate feature v1_18 only.
§

Y212Be

Available on crate feature v1_18 only.
§

Y212Le

Available on crate feature v1_18 only.
§

Y412Be

Available on crate feature v1_18 only.
§

Y412Le

Available on crate feature v1_18 only.
§

Nv124l4

Available on crate feature v1_18 only.
§

Nv1232l32

Available on crate feature v1_18 only.
§

Rgbp

Available on crate feature v1_20 only.
§

Bgrp

Available on crate feature v1_20 only.
§

Av12

Available on crate feature v1_20 only.
§

Argb64Le

Available on crate feature v1_20 only.
§

Argb64Be

Available on crate feature v1_20 only.
§

Rgba64Le

Available on crate feature v1_20 only.
§

Rgba64Be

Available on crate feature v1_20 only.
§

Bgra64Le

Available on crate feature v1_20 only.
§

Bgra64Be

Available on crate feature v1_20 only.
§

Abgr64Le

Available on crate feature v1_20 only.
§

Abgr64Be

Available on crate feature v1_20 only.
§

Nv1216l32s

Available on crate feature v1_22 only.
§

Nv128l128

Available on crate feature v1_22 only.
§

Nv1210be8l128

Available on crate feature v1_22 only.
§

Nv1210le404l4

Available on crate feature v1_24 only.
§

DmaDrm

Available on crate feature v1_24 only.
§

Mt2110t

Available on crate feature v1_24 only.
§

Mt2110r

Available on crate feature v1_24 only.
§

A422

Available on crate feature v1_24 only.
§

A444

Available on crate feature v1_24 only.
§

A44412le

Available on crate feature v1_24 only.
§

A44412be

Available on crate feature v1_24 only.
§

A42212le

Available on crate feature v1_24 only.
§

A42212be

Available on crate feature v1_24 only.
§

A42012le

Available on crate feature v1_24 only.
§

A42012be

Available on crate feature v1_24 only.
§

A44416le

Available on crate feature v1_24 only.
§

A44416be

Available on crate feature v1_24 only.
§

A42216le

Available on crate feature v1_24 only.
§

A42216be

Available on crate feature v1_24 only.
§

A42016le

Available on crate feature v1_24 only.
§

A42016be

Available on crate feature v1_24 only.
§

Gbr16le

Available on crate feature v1_24 only.
§

Gbr16be

Available on crate feature v1_24 only.
§

Rbga

Available on crate feature v1_24 only.

Implementations§

source§

impl VideoFormat

source

pub fn from_fourcc(fourcc: u32) -> VideoFormat

source

pub fn from_string(format: &str) -> VideoFormat

source

pub fn to_fourcc(self) -> u32

source§

impl VideoFormat

source

pub fn from_masks( depth: u32, bpp: u32, endianness: VideoEndianness, red_mask: u32, blue_mask: u32, green_mask: u32, alpha_mask: u32 ) -> Self

source

pub fn to_str<'a>(self) -> &'a GStr

source

pub fn iter_raw() -> VideoFormatIterator

source

pub fn iter_any() -> impl Iterator<Item = 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 Display for VideoFormat

source§

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

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

impl From<VideoFormat> for Value

source§

fn from(v: VideoFormat) -> Self

Converts to this type from the input type.
source§

impl From<VideoFormat> for VideoFormatInfo

source§

fn from(f: VideoFormat) -> Self

Converts to this type from the input type.
source§

impl FromStr for VideoFormat

§

type Err = BoolError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl<'a> FromValue<'a> for VideoFormat

§

type Checker = GenericValueTypeChecker<VideoFormat>

Value type checker.
source§

unsafe fn from_value(value: &'a Value) -> Self

Get the contained value from a Value. Read more
source§

impl HasParamSpec for VideoFormat

§

type ParamSpec = ParamSpecEnum

§

type SetValue = VideoFormat

Preferred value to be used as setter for the associated ParamSpec.
§

type BuilderFn = fn(_: &str, _: VideoFormat) -> ParamSpecEnumBuilder<'_, VideoFormat>

source§

fn param_spec_builder() -> Self::BuilderFn

source§

impl Hash for VideoFormat

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for VideoFormat

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. 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 PartialOrd for VideoFormat

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl StaticType for VideoFormat

source§

fn static_type() -> Type

Returns the type identifier of Self.
source§

impl ToValue for VideoFormat

source§

fn to_value(&self) -> Value

Convert a value to a Value.
source§

fn value_type(&self) -> Type

Returns the type identifier of self. Read more
source§

impl ValueType for VideoFormat

§

type Type = VideoFormat

Type to get the Type from. Read more
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> IntoClosureReturnValue for T
where T: Into<Value>,

source§

impl<T> Property for T
where T: HasParamSpec,

§

type Value = T

source§

impl<T> PropertyGet for T
where T: HasParamSpec,

§

type Value = T

source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

source§

impl<T> StaticTypeExt for T
where T: StaticType,

source§

fn ensure_type()

Ensures that the type has been registered with the type system.
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> ToSendValue for T
where T: Send + ToValue + ?Sized,

source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. 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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

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.