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
UnknownEncodedI420Yv12Yuy2UyvyAyuvRgbxBgrxXrgbXbgrRgbaBgraArgbAbgrRgbBgrY41bY42bYvyuY444V210V216Nv12Nv21Gray8Gray16BeGray16LeV308Rgb16Bgr16Rgb15Bgr15UyvpA420Rgb8pYuv9Yvu9Iyu1Argb64Ayuv64R210I42010beI42010leI42210beI42210leY44410beY44410leGbrGbr10beGbr10leNv16Nv24Nv1264z32A42010beA42010leA42210beA42210leA44410beA44410leNv61P01010beP01010leIyu2VyuyGbraGbra10beGbra10leGbr12beGbr12leGbra12beGbra12leI42012beI42012leI42212beI42212leY44412beY44412leGray10Le32Nv1210le32Nv1610le32
Methods
impl VideoFormat[src]
impl VideoFormatpub fn from_string(s: &str) -> VideoFormat[src]
pub fn from_string(s: &str) -> VideoFormatpub fn from_fourcc(fourcc: u32) -> VideoFormat[src]
pub fn from_fourcc(fourcc: u32) -> VideoFormatpub 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
) -> VideoFormatpub fn to_string<'a>(self) -> &'a str[src]
pub fn to_string<'a>(self) -> &'a strTrait Implementations
impl Debug for VideoFormat[src]
impl Debug for VideoFormatfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for VideoFormat[src]
impl Eq for VideoFormatimpl PartialEq for VideoFormat[src]
impl PartialEq for VideoFormatfn eq(&self, other: &VideoFormat) -> bool[src]
fn eq(&self, other: &VideoFormat) -> boolThis 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) -> boolThis method tests for !=.
impl Ord for VideoFormat[src]
impl Ord for VideoFormatfn cmp(&self, other: &VideoFormat) -> Ordering[src]
fn cmp(&self, other: &VideoFormat) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialOrd for VideoFormat[src]
impl PartialOrd for VideoFormatfn 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) -> boolThis 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) -> boolThis 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) -> boolThis 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) -> boolThis 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 VideoFormatfn 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 VideoFormatfn clone(&self) -> VideoFormat[src]
fn clone(&self) -> VideoFormatReturns 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 VideoFormatimpl StaticType for VideoFormat[src]
impl StaticType for VideoFormatfn static_type() -> Type[src]
fn static_type() -> TypeReturns the type identifier of Self.
impl<'a> FromValueOptional<'a> for VideoFormat[src]
impl<'a> FromValueOptional<'a> for VideoFormatunsafe 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 VideoFormatunsafe fn from_value(value: &Value) -> Self[src]
unsafe fn from_value(value: &Value) -> Selfimpl SetValue for VideoFormat[src]
impl SetValue for VideoFormatimpl FromStr for VideoFormat[src]
impl FromStr for VideoFormattype 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 VideoFormatfn 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 VideoFormatInfofn from(f: VideoFormat) -> Self[src]
fn from(f: VideoFormat) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for VideoFormat
impl Send for VideoFormatimpl Sync for VideoFormat
impl Sync for VideoFormat