Enum gstreamer_video::VideoFormat[][src]

#[non_exhaustive]
pub enum VideoFormat {
Show 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, // some variants omitted
}
Expand description

Enum value describing the most common video formats.

See the GStreamer raw video format design document for details about the layout and packing of these formats in memory.

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

Unknown or unset video format id

Encoded

Encoded video format. Only ever use that in caps for special video formats in combination with non-system memory GstCapsFeatures where it does not make sense to specify a real video format.

I420

planar 4:2:0 YUV

Yv12

planar 4:2:0 YVU (like I420 but UV planes swapped)

Yuy2

packed 4:2:2 YUV (Y0-U0-Y1-V0 Y2-U2-Y3-V2 Y4 …)

Uyvy

packed 4:2:2 YUV (U0-Y0-V0-Y1 U2-Y2-V2-Y3 U4 …)

Ayuv

packed 4:4:4 YUV with alpha channel (A0-Y0-U0-V0 …)

Rgbx

sparse rgb packed into 32 bit, space last

Bgrx

sparse reverse rgb packed into 32 bit, space last

Xrgb

sparse rgb packed into 32 bit, space first

Xbgr

sparse reverse rgb packed into 32 bit, space first

Rgba

rgb with alpha channel last

Bgra

reverse rgb with alpha channel last

Argb

rgb with alpha channel first

Abgr

reverse rgb with alpha channel first

Rgb

RGB packed into 24 bits without padding (R-G-B-R-G-B)

Bgr

reverse RGB packed into 24 bits without padding (B-G-R-B-G-R)

Y41b

planar 4:1:1 YUV

Y42b

planar 4:2:2 YUV

Yvyu

packed 4:2:2 YUV (Y0-V0-Y1-U0 Y2-V2-Y3-U2 Y4 …)

Y444

planar 4:4:4 YUV

V210

packed 4:2:2 10-bit YUV, complex format

V216

packed 4:2:2 16-bit YUV, Y0-U0-Y1-V1 order

Nv12

planar 4:2:0 YUV with interleaved UV plane

Nv21

planar 4:2:0 YUV with interleaved VU plane

Gray8

8-bit grayscale

Gray16Be

16-bit grayscale, most significant byte first

Gray16Le

16-bit grayscale, least significant byte first

V308

packed 4:4:4 YUV (Y-U-V …)

Rgb16

rgb 5-6-5 bits per component

Bgr16

reverse rgb 5-6-5 bits per component

Rgb15

rgb 5-5-5 bits per component

Bgr15

reverse rgb 5-5-5 bits per component

Uyvp

packed 10-bit 4:2:2 YUV (U0-Y0-V0-Y1 U2-Y2-V2-Y3 U4 …)

A420

planar 4:4:2:0 AYUV

Rgb8p

8-bit paletted RGB

Yuv9

planar 4:1:0 YUV

Yvu9

planar 4:1:0 YUV (like YUV9 but UV planes swapped)

Iyu1

packed 4:1:1 YUV (Cb-Y0-Y1-Cr-Y2-Y3 …)

Argb64

rgb with alpha channel first, 16 bits per channel

Ayuv64

packed 4:4:4 YUV with alpha channel, 16 bits per channel (A0-Y0-U0-V0 …)

R210

packed 4:4:4 RGB, 10 bits per channel

I42010be

planar 4:2:0 YUV, 10 bits per channel

I42010le

planar 4:2:0 YUV, 10 bits per channel

I42210be

planar 4:2:2 YUV, 10 bits per channel

I42210le

planar 4:2:2 YUV, 10 bits per channel

Y44410be

planar 4:4:4 YUV, 10 bits per channel (Since: 1.2)

Y44410le

planar 4:4:4 YUV, 10 bits per channel (Since: 1.2)

Gbr

planar 4:4:4 RGB, 8 bits per channel (Since: 1.2)

Gbr10be

planar 4:4:4 RGB, 10 bits per channel (Since: 1.2)

Gbr10le

planar 4:4:4 RGB, 10 bits per channel (Since: 1.2)

Nv16

planar 4:2:2 YUV with interleaved UV plane (Since: 1.2)

Nv24

planar 4:4:4 YUV with interleaved UV plane (Since: 1.2)

Nv1264z32

NV12 with 64x32 tiling in zigzag pattern (Since: 1.4)

A42010be

planar 4:4:2:0 YUV, 10 bits per channel (Since: 1.6)

A42010le

planar 4:4:2:0 YUV, 10 bits per channel (Since: 1.6)

A42210be

planar 4:4:2:2 YUV, 10 bits per channel (Since: 1.6)

A42210le

planar 4:4:2:2 YUV, 10 bits per channel (Since: 1.6)

A44410be

planar 4:4:4:4 YUV, 10 bits per channel (Since: 1.6)

A44410le

planar 4:4:4:4 YUV, 10 bits per channel (Since: 1.6)

Nv61

planar 4:2:2 YUV with interleaved VU plane (Since: 1.6)

P01010be
This is supported on crate feature v1_10 only.

planar 4:2:0 YUV with interleaved UV plane, 10 bits per channel (Since: 1.10)

P01010le
This is supported on crate feature v1_10 only.

planar 4:2:0 YUV with interleaved UV plane, 10 bits per channel (Since: 1.10)

Iyu2
This is supported on crate feature v1_10 only.

packed 4:4:4 YUV (U-Y-V …) (Since: 1.10)

Vyuy
This is supported on crate feature v1_12 only.

packed 4:2:2 YUV (V0-Y0-U0-Y1 V2-Y2-U2-Y3 V4 …)

Gbra
This is supported on crate feature v1_12 only.

planar 4:4:4:4 ARGB, 8 bits per channel (Since: 1.12)

Gbra10be
This is supported on crate feature v1_12 only.

planar 4:4:4:4 ARGB, 10 bits per channel (Since: 1.12)

Gbra10le
This is supported on crate feature v1_12 only.

planar 4:4:4:4 ARGB, 10 bits per channel (Since: 1.12)

Gbr12be
This is supported on crate feature v1_12 only.

planar 4:4:4 RGB, 12 bits per channel (Since: 1.12)

Gbr12le
This is supported on crate feature v1_12 only.

planar 4:4:4 RGB, 12 bits per channel (Since: 1.12)

Gbra12be
This is supported on crate feature v1_12 only.

planar 4:4:4:4 ARGB, 12 bits per channel (Since: 1.12)

Gbra12le
This is supported on crate feature v1_12 only.

planar 4:4:4:4 ARGB, 12 bits per channel (Since: 1.12)

I42012be
This is supported on crate feature v1_12 only.

planar 4:2:0 YUV, 12 bits per channel (Since: 1.12)

I42012le
This is supported on crate feature v1_12 only.

planar 4:2:0 YUV, 12 bits per channel (Since: 1.12)

I42212be
This is supported on crate feature v1_12 only.

planar 4:2:2 YUV, 12 bits per channel (Since: 1.12)

I42212le
This is supported on crate feature v1_12 only.

planar 4:2:2 YUV, 12 bits per channel (Since: 1.12)

Y44412be
This is supported on crate feature v1_12 only.

planar 4:4:4 YUV, 12 bits per channel (Since: 1.12)

Y44412le
This is supported on crate feature v1_12 only.

planar 4:4:4 YUV, 12 bits per channel (Since: 1.12)

Gray10Le32
This is supported on crate feature v1_14 only.

10-bit grayscale, packed into 32bit words (2 bits padding) (Since: 1.14)

Nv1210le32
This is supported on crate feature v1_14 only.

10-bit variant of Nv12, packed into 32bit words (MSB 2 bits padding) (Since: 1.14)

Nv1610le32
This is supported on crate feature v1_14 only.

10-bit variant of Nv16, packed into 32bit words (MSB 2 bits padding) (Since: 1.14)

Nv1210le40
This is supported on crate feature v1_16 only.

Fully packed variant of NV12_10LE32 (Since: 1.16)

Y210
This is supported on crate feature v1_16 only.

packed 4:2:2 YUV, 10 bits per channel (Since: 1.16)

Y410
This is supported on crate feature v1_16 only.

packed 4:4:4 YUV, 10 bits per channel(A-V-Y-U…) (Since: 1.16)

Vuya
This is supported on crate feature v1_16 only.

packed 4:4:4 YUV with alpha channel (V0-U0-Y0-A0…) (Since: 1.16)

Bgr10a2Le
This is supported on crate feature v1_16 only.

packed 4:4:4 RGB with alpha channel(B-G-R-A), 10 bits for R/G/B channel and MSB 2 bits for alpha channel (Since: 1.16)

Rgb10a2Le
This is supported on crate feature v1_18 only.

packed 4:4:4 RGB with alpha channel(R-G-B-A), 10 bits for R/G/B channel and MSB 2 bits for alpha channel (Since: 1.18)

Y44416be
This is supported on crate feature v1_18 only.

planar 4:4:4 YUV, 16 bits per channel (Since: 1.18)

Y44416le
This is supported on crate feature v1_18 only.

planar 4:4:4 YUV, 16 bits per channel (Since: 1.18)

P016Be
This is supported on crate feature v1_18 only.

planar 4:2:0 YUV with interleaved UV plane, 16 bits per channel (Since: 1.18)

P016Le
This is supported on crate feature v1_18 only.

planar 4:2:0 YUV with interleaved UV plane, 16 bits per channel (Since: 1.18)

P012Be
This is supported on crate feature v1_18 only.

planar 4:2:0 YUV with interleaved UV plane, 12 bits per channel (Since: 1.18)

P012Le
This is supported on crate feature v1_18 only.

planar 4:2:0 YUV with interleaved UV plane, 12 bits per channel (Since: 1.18)

Y212Be
This is supported on crate feature v1_18 only.

packed 4:2:2 YUV, 12 bits per channel (Y-U-Y-V) (Since: 1.18)

Y212Le
This is supported on crate feature v1_18 only.

packed 4:2:2 YUV, 12 bits per channel (Y-U-Y-V) (Since: 1.18)

Y412Be
This is supported on crate feature v1_18 only.

packed 4:4:4:4 YUV, 12 bits per channel(U-Y-V-A…) (Since: 1.18)

Y412Le
This is supported on crate feature v1_18 only.

packed 4:4:4:4 YUV, 12 bits per channel(U-Y-V-A…) (Since: 1.18)

Nv124l4
This is supported on crate feature v1_18 only.

NV12 with 4x4 tiles in linear order.

Nv1232l32
This is supported on crate feature v1_18 only.

NV12 with 32x32 tiles in linear order.

Rgbp
This is supported on crate feature v1_20 only.

Planar 4:4:4 RGB, R-G-B order

Bgrp
This is supported on crate feature v1_20 only.

Planar 4:4:4 RGB, B-G-R order

Av12
This is supported on crate feature v1_20 only.

Planar 4:2:0 YUV with interleaved UV plane with alpha as 3rd plane.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Value type checker.

Get the contained value from a Value. Read more

Feeds this value into the given Hasher. Read more

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

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Returns the type identifier of Self.

Convert a value to a Value.

Returns the type identifer of self. Read more

Type to get the Type from. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

Returns a SendValue clone of self.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.