#[non_exhaustive]pub enum VideoFormat {
Show 142 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,
Y216Le,
Y216Be,
Y416Le,
Y416Be,
Gray10Le16,
Nv1610le40,
Bgr10x2Le,
Rgb10x2Le,
}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.Y216Le
Available on crate feature
v1_26 only.Y216Be
Available on crate feature
v1_26 only.Y416Le
Available on crate feature
v1_26 only.Y416Be
Available on crate feature
v1_26 only.Gray10Le16
Available on crate feature
v1_26 only.Nv1610le40
Available on crate feature
v1_28 only.Bgr10x2Le
Available on crate feature
v1_28 only.Rgb10x2Le
Available on crate feature
v1_28 only.Implementations§
Source§impl VideoFormat
impl VideoFormat
pub fn from_fourcc(fourcc: u32) -> VideoFormat
pub fn from_string(format: &str) -> VideoFormat
pub fn to_fourcc(self) -> u32
Source§impl VideoFormat
impl VideoFormat
pub fn from_masks( depth: u32, bpp: u32, endianness: VideoEndianness, red_mask: u32, green_mask: u32, blue_mask: u32, alpha_mask: u32, ) -> Self
pub fn to_str<'a>(self) -> &'a GStr
pub fn iter_raw() -> VideoFormatIterator ⓘ
pub fn iter_any() -> impl Iterator<Item = VideoFormat>
Available on crate feature
v1_24 only.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 Display for VideoFormat
impl Display for VideoFormat
Source§impl From<VideoFormat> for Value
impl From<VideoFormat> for Value
Source§fn from(v: VideoFormat) -> Self
fn from(v: VideoFormat) -> Self
Converts to this type from the input type.
Source§impl From<VideoFormat> for VideoFormatInfo
impl From<VideoFormat> for VideoFormatInfo
Source§fn from(f: VideoFormat) -> Self
fn from(f: VideoFormat) -> Self
Converts to this type from the input type.
Source§impl FromStr for VideoFormat
impl FromStr for VideoFormat
Source§impl<'a> FromValue<'a> for VideoFormat
impl<'a> FromValue<'a> for VideoFormat
Source§type Checker = GenericValueTypeChecker<VideoFormat>
type Checker = GenericValueTypeChecker<VideoFormat>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value. Read moreSource§impl HasParamSpec for VideoFormat
impl HasParamSpec for VideoFormat
type ParamSpec = ParamSpecEnum
Source§type SetValue = VideoFormat
type SetValue = VideoFormat
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(&str, VideoFormat) -> ParamSpecEnumBuilder<'_, VideoFormat>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for VideoFormat
impl Hash for VideoFormat
Source§impl Ord for VideoFormat
impl Ord for VideoFormat
Source§impl PartialEq for VideoFormat
impl PartialEq for VideoFormat
Source§impl PartialOrd for VideoFormat
impl PartialOrd for VideoFormat
Source§impl StaticType for VideoFormat
impl StaticType for VideoFormat
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.Source§impl ToValue for VideoFormat
impl ToValue for VideoFormat
Source§impl ValueType for VideoFormat
impl ValueType for VideoFormat
Source§type Type = VideoFormat
type Type = VideoFormat
Type to get the
Type from. Read moreimpl 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.