Enum gstreamer_video::VideoFormat
source · #[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
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, blue_mask: u32, green_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>
Trait Implementations§
source§impl Clone for VideoFormat
impl Clone for VideoFormat
source§fn clone(&self) -> VideoFormat
fn clone(&self) -> VideoFormat
Returns a copy 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
§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
§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§fn eq(&self, other: &VideoFormat) -> bool
fn eq(&self, other: &VideoFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VideoFormat
impl PartialOrd for VideoFormat
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§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
§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 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> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§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
.