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§
source§impl Clone for Colorspace
impl Clone for Colorspace
source§fn clone(&self) -> Colorspace
fn clone(&self) -> Colorspace
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more