Enum gstreamer_video::auto::enums::VideoFormat
source · #[non_exhaustive]pub enum VideoFormat {
Show 81 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,
}
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
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
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
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 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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
.