Enum gstreamer_video::VideoFormat [−][src]
pub enum VideoFormat { 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, // some variants omitted }
Enum value describing the most common video formats.
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
Methods
impl VideoFormat
[src]
impl VideoFormat
pub fn from_string(s: &str) -> VideoFormat
[src]
pub fn from_string(s: &str) -> VideoFormat
pub fn from_fourcc(fourcc: u32) -> VideoFormat
[src]
pub fn from_fourcc(fourcc: u32) -> VideoFormat
pub fn from_masks(
depth: u32,
bpp: u32,
endianness: VideoEndianness,
red_mask: u32,
blue_mask: u32,
green_mask: u32,
alpha_mask: u32
) -> VideoFormat
[src]
pub fn from_masks(
depth: u32,
bpp: u32,
endianness: VideoEndianness,
red_mask: u32,
blue_mask: u32,
green_mask: u32,
alpha_mask: u32
) -> VideoFormat
pub fn to_string<'a>(self) -> &'a str
[src]
pub fn to_string<'a>(self) -> &'a str
Trait Implementations
impl Debug for VideoFormat
[src]
impl Debug for VideoFormat
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for VideoFormat
[src]
impl Eq for VideoFormat
impl PartialEq for VideoFormat
[src]
impl PartialEq for VideoFormat
fn eq(&self, other: &VideoFormat) -> bool
[src]
fn eq(&self, other: &VideoFormat) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &VideoFormat) -> bool
[src]
fn ne(&self, other: &VideoFormat) -> bool
This method tests for !=
.
impl Ord for VideoFormat
[src]
impl Ord for VideoFormat
fn cmp(&self, other: &VideoFormat) -> Ordering
[src]
fn cmp(&self, other: &VideoFormat) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for VideoFormat
[src]
impl PartialOrd for VideoFormat
fn partial_cmp(&self, other: &VideoFormat) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &VideoFormat) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &VideoFormat) -> bool
[src]
fn lt(&self, other: &VideoFormat) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &VideoFormat) -> bool
[src]
fn le(&self, other: &VideoFormat) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &VideoFormat) -> bool
[src]
fn gt(&self, other: &VideoFormat) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &VideoFormat) -> bool
[src]
fn ge(&self, other: &VideoFormat) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for VideoFormat
[src]
impl Hash for VideoFormat
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for VideoFormat
[src]
impl Clone for VideoFormat
fn clone(&self) -> VideoFormat
[src]
fn clone(&self) -> VideoFormat
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for VideoFormat
[src]
impl Copy for VideoFormat
impl StaticType for VideoFormat
[src]
impl StaticType for VideoFormat
fn static_type() -> Type
[src]
fn static_type() -> Type
Returns the type identifier of Self
.
impl<'a> FromValueOptional<'a> for VideoFormat
[src]
impl<'a> FromValueOptional<'a> for VideoFormat
unsafe fn from_value_optional(value: &Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &Value) -> Option<Self>
impl<'a> FromValue<'a> for VideoFormat
[src]
impl<'a> FromValue<'a> for VideoFormat
unsafe fn from_value(value: &Value) -> Self
[src]
unsafe fn from_value(value: &Value) -> Self
impl SetValue for VideoFormat
[src]
impl SetValue for VideoFormat
impl FromStr for VideoFormat
[src]
impl FromStr for VideoFormat
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, ()>
[src]
fn from_str(s: &str) -> Result<Self, ()>
Parses a string s
to return a value of this type. Read more
impl Display for VideoFormat
[src]
impl Display for VideoFormat
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<VideoFormat> for VideoFormatInfo
[src]
impl From<VideoFormat> for VideoFormatInfo
fn from(f: VideoFormat) -> Self
[src]
fn from(f: VideoFormat) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for VideoFormat
impl Send for VideoFormat
impl Sync for VideoFormat
impl Sync for VideoFormat