Enum x264::Colorspace [−][src]
#[repr(u32)]pub enum Colorspace { I420, YV12, NV12, NV21, I422, YV16, NV16, V210, I444, YV24, BGR, BGRA, RGB, }
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.
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
impl Debug for Colorspace
[src]
impl Debug for Colorspace
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for Colorspace
[src]
impl Hash for Colorspace
fn 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 Eq for Colorspace
[src]
impl Eq for Colorspace
impl PartialEq for Colorspace
[src]
impl PartialEq for Colorspace
fn eq(&self, other: &Colorspace) -> bool
[src]
fn eq(&self, other: &Colorspace) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Copy for Colorspace
[src]
impl Copy for Colorspace
impl Clone for Colorspace
[src]
impl Clone for Colorspace
fn clone(&self) -> Colorspace
[src]
fn clone(&self) -> Colorspace
Returns 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 From<Colorspace> for Encoding
[src]
impl From<Colorspace> for Encoding
fn from(csp: Colorspace) -> Self
[src]
fn from(csp: Colorspace) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for Colorspace
impl Send for Colorspace
impl Sync for Colorspace
impl Sync for Colorspace