Enum x264::Colorspace

source ·
#[repr(u32)]
pub enum Colorspace {
Show 15 variants I420, YV12, NV12, NV21, I422, YV16, NV16, YUYV, UYVY, V210, I444, YV24, BGR, BGRA, RGB,
}
Expand description

The colorspace of an image, which details how its colors are represented.

Variants§

§

I420

A Y plane followed by 2x2 subsampled U and V planes.

§

YV12

A Y plane followed by 2x2 subsampled V and U planes.

§

NV12

A Y plane followed by a packed 2x2 subsampled UV plane.

§

NV21

A Y plane followed by a packed 2x2 subsampled VU plane.

§

I422

A Y plane followed by 2x1 subsampled U and V planes.

§

YV16

A Y plane followed by 2x1 subsampled V and U planes.

§

NV16

A Y plane followed by a packed 2x1 subsampled UV plane.

§

YUYV

A single plane whose bytes follow the pattern YUYV pattern, which means the U and V parts are 2x1 subsampled.

§

UYVY

A single plane whose bytes follow the pattern UYVY pattern, which means the U and V parts are 2x1 subsampled.

§

V210

A packed 32-bit UYVY plane with 10-bit components, and 2 padding bits.

§

I444

A Y plane followed by U and V planes.

§

YV24

A Y plane followed by V and U planes.

§

BGR

A packed 24-bit BGR plane.

§

BGRA

A packed 32-bit BGR plane, where the latter byte is padding.

§

RGB

A packed 24-bit RGB plane.

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
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. 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.