Enum drm::buffer::DrmFourcc

source ·
#[repr(u32)]
pub enum DrmFourcc {
Show 105 variants Abgr1555 = 892_420_673, Abgr16161616f = 1_211_384_385, Abgr2101010 = 808_665_665, Abgr4444 = 842_089_025, Abgr8888 = 875_708_993, Argb1555 = 892_424_769, Argb16161616f = 1_211_388_481, Argb2101010 = 808_669_761, Argb4444 = 842_093_121, Argb8888 = 875_713_089, Axbxgxrx106106106106 = 808_534_593, Ayuv = 1_448_433_985, Bgr233 = 944_916_290, Bgr565 = 909_199_170, Bgr565_a8 = 943_797_570, Bgr888 = 875_710_274, Bgr888_a8 = 943_798_338, Bgra1010102 = 808_665_410, Bgra4444 = 842_088_770, Bgra5551 = 892_420_418, Bgra8888 = 875_708_738, Bgrx1010102 = 808_671_298, Bgrx4444 = 842_094_658, Bgrx5551 = 892_426_306, Bgrx8888 = 875_714_626, Bgrx8888_a8 = 943_806_530, Big_endian = 2_147_483_648, C8 = 538_982_467, Gr1616 = 842_224_199, Gr88 = 943_215_175, Nv12 = 842_094_158, Nv15 = 892_425_806, Nv16 = 909_203_022, Nv21 = 825_382_478, Nv24 = 875_714_126, Nv42 = 842_290_766, Nv61 = 825_644_622, P010 = 808_530_000, P012 = 842_084_432, P016 = 909_193_296, P210 = 808_530_512, Q401 = 825_242_705, Q410 = 808_531_025, R16 = 540_422_482, R8 = 538_982_482, Rg1616 = 842_221_394, Rg88 = 943_212_370, Rgb332 = 943_867_730, Rgb565 = 909_199_186, Rgb565_a8 = 943_797_586, Rgb888 = 875_710_290, Rgb888_a8 = 943_798_354, Rgba1010102 = 808_665_426, Rgba4444 = 842_088_786, Rgba5551 = 892_420_434, Rgba8888 = 875_708_754, Rgbx1010102 = 808_671_314, Rgbx4444 = 842_094_674, Rgbx5551 = 892_426_322, Rgbx8888 = 875_714_642, Rgbx8888_a8 = 943_806_546, Uyvy = 1_498_831_189, Vuy101010 = 808_670_550, Vuy888 = 875_713_878, Vyuy = 1_498_765_654, X0l0 = 810_299_480, X0l2 = 843_853_912, Xbgr1555 = 892_420_696, Xbgr16161616f = 1_211_384_408, Xbgr2101010 = 808_665_688, Xbgr4444 = 842_089_048, Xbgr8888 = 875_709_016, Xbgr8888_a8 = 943_800_920, Xrgb1555 = 892_424_792, Xrgb16161616f = 1_211_388_504, Xrgb2101010 = 808_669_784, Xrgb4444 = 842_093_144, Xrgb8888 = 875_713_112, Xrgb8888_a8 = 943_805_016, Xvyu12_16161616 = 909_334_104, Xvyu16161616 = 942_954_072, Xvyu2101010 = 808_670_808, Xyuv8888 = 1_448_434_008, Y0l0 = 810_299_481, Y0l2 = 843_853_913, Y210 = 808_530_521, Y212 = 842_084_953, Y216 = 909_193_817, Y410 = 808_531_033, Y412 = 842_085_465, Y416 = 909_194_329, Yuv410 = 961_959_257, Yuv411 = 825_316_697, Yuv420 = 842_093_913, Yuv420_10bit = 808_539_481, Yuv420_8bit = 942_691_673, Yuv422 = 909_202_777, Yuv444 = 875_713_881, Yuyv = 1_448_695_129, Yvu410 = 961_893_977, Yvu411 = 825_316_953, Yvu420 = 842_094_169, Yvu422 = 909_203_033, Yvu444 = 875_714_137, Yvyu = 1_431_918_169,
}

Variants§

§

Abgr1555 = 892_420_673

§

Abgr16161616f = 1_211_384_385

§

Abgr2101010 = 808_665_665

§

Abgr4444 = 842_089_025

§

Abgr8888 = 875_708_993

§

Argb1555 = 892_424_769

§

Argb16161616f = 1_211_388_481

§

Argb2101010 = 808_669_761

§

Argb4444 = 842_093_121

§

Argb8888 = 875_713_089

§

Axbxgxrx106106106106 = 808_534_593

§

Ayuv = 1_448_433_985

§

Bgr233 = 944_916_290

§

Bgr565 = 909_199_170

§

Bgr565_a8 = 943_797_570

§

Bgr888 = 875_710_274

§

Bgr888_a8 = 943_798_338

§

Bgra1010102 = 808_665_410

§

Bgra4444 = 842_088_770

§

Bgra5551 = 892_420_418

§

Bgra8888 = 875_708_738

§

Bgrx1010102 = 808_671_298

§

Bgrx4444 = 842_094_658

§

Bgrx5551 = 892_426_306

§

Bgrx8888 = 875_714_626

§

Bgrx8888_a8 = 943_806_530

§

Big_endian = 2_147_483_648

§

C8 = 538_982_467

§

Gr1616 = 842_224_199

§

Gr88 = 943_215_175

§

Nv12 = 842_094_158

§

Nv15 = 892_425_806

§

Nv16 = 909_203_022

§

Nv21 = 825_382_478

§

Nv24 = 875_714_126

§

Nv42 = 842_290_766

§

Nv61 = 825_644_622

§

P010 = 808_530_000

§

P012 = 842_084_432

§

P016 = 909_193_296

§

P210 = 808_530_512

§

Q401 = 825_242_705

§

Q410 = 808_531_025

§

R16 = 540_422_482

§

R8 = 538_982_482

§

Rg1616 = 842_221_394

§

Rg88 = 943_212_370

§

Rgb332 = 943_867_730

§

Rgb565 = 909_199_186

§

Rgb565_a8 = 943_797_586

§

Rgb888 = 875_710_290

§

Rgb888_a8 = 943_798_354

§

Rgba1010102 = 808_665_426

§

Rgba4444 = 842_088_786

§

Rgba5551 = 892_420_434

§

Rgba8888 = 875_708_754

§

Rgbx1010102 = 808_671_314

§

Rgbx4444 = 842_094_674

§

Rgbx5551 = 892_426_322

§

Rgbx8888 = 875_714_642

§

Rgbx8888_a8 = 943_806_546

§

Uyvy = 1_498_831_189

§

Vuy101010 = 808_670_550

§

Vuy888 = 875_713_878

§

Vyuy = 1_498_765_654

§

X0l0 = 810_299_480

§

X0l2 = 843_853_912

§

Xbgr1555 = 892_420_696

§

Xbgr16161616f = 1_211_384_408

§

Xbgr2101010 = 808_665_688

§

Xbgr4444 = 842_089_048

§

Xbgr8888 = 875_709_016

§

Xbgr8888_a8 = 943_800_920

§

Xrgb1555 = 892_424_792

§

Xrgb16161616f = 1_211_388_504

§

Xrgb2101010 = 808_669_784

§

Xrgb4444 = 842_093_144

§

Xrgb8888 = 875_713_112

§

Xrgb8888_a8 = 943_805_016

§

Xvyu12_16161616 = 909_334_104

§

Xvyu16161616 = 942_954_072

§

Xvyu2101010 = 808_670_808

§

Xyuv8888 = 1_448_434_008

§

Y0l0 = 810_299_481

§

Y0l2 = 843_853_913

§

Y210 = 808_530_521

§

Y212 = 842_084_953

§

Y216 = 909_193_817

§

Y410 = 808_531_033

§

Y412 = 842_085_465

§

Y416 = 909_194_329

§

Yuv410 = 961_959_257

§

Yuv411 = 825_316_697

§

Yuv420 = 842_093_913

§

Yuv420_10bit = 808_539_481

§

Yuv420_8bit = 942_691_673

§

Yuv422 = 909_202_777

§

Yuv444 = 875_713_881

§

Yuyv = 1_448_695_129

§

Yvu410 = 961_893_977

§

Yvu411 = 825_316_953

§

Yvu420 = 842_094_169

§

Yvu422 = 909_203_033

§

Yvu444 = 875_714_137

§

Yvyu = 1_431_918_169

Implementations§

source§

impl DrmFourcc

source

pub fn string_form(&self) -> String

👎Deprecated since 2.2.0: Use ToString::to_string instead

Get the string representation of the format’s fourcc.

Trait Implementations§

source§

impl Clone for DrmFourcc

source§

fn clone(&self) -> DrmFourcc

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DrmFourcc

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for DrmFourcc

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Hash for DrmFourcc

source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for DrmFourcc

source§

fn eq(&self, other: &DrmFourcc) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<u32> for DrmFourcc

source§

fn try_from(value: u32) -> Result<DrmFourcc, <DrmFourcc as TryFrom<u32>>::Error>

Convert from an u32

assert_eq!(DrmFourcc::try_from(875710274).unwrap(), DrmFourcc::Bgr888);

assert!(DrmFourcc::try_from(0).is_err());

// If the u32 is in the valid format to be a fourcc, you can see its string form
assert_eq!(DrmFourcc::try_from(828601953).unwrap_err().string_form(), Some("avc1".to_string()));
§

type Error = UnrecognizedFourcc

The type returned in the event of a conversion error.
source§

impl Copy for DrmFourcc

source§

impl Eq for DrmFourcc

source§

impl StructuralPartialEq for DrmFourcc

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.