Enum cros_codecs::DecodedFormat
source · pub enum DecodedFormat {
I420,
NV12,
I422,
I444,
I010,
I012,
I210,
I212,
I410,
I412,
}
Expand description
Formats that buffers can be mapped into for the CPU to read.
The conventions here largely follow these of libyuv.
Variants§
I420
Y, U and V planes, 4:2:0 sampling, 8 bits per sample.
NV12
One Y and one interleaved UV plane, 4:2:0 sampling, 8 bits per sample.
I422
Y, U and V planes, 4:2:2 sampling, 8 bits per sample.
I444
Y, U and V planes, 4:4:4 sampling, 8 bits per sample.
I010
Y, U and V planes, 4:2:0 sampling, 16 bits per sample, LE. Only the 10 LSBs are used.
I012
Y, U and V planes, 4:2:0 sampling, 16 bits per sample, LE. Only the 12 LSBs are used.
I210
Y, U and V planes, 4:2:2 sampling, 16 bits per sample, LE. Only the 10 LSBs are used.
I212
Y, U and V planes, 4:2:2 sampling, 16 bits per sample, LE. Only the 12 LSBs are used.
I410
Y, U and V planes, 4:4:4 sampling, 16 bits per sample, LE. Only the 10 LSBs are used.
I412
Y, U and V planes, 4:4:4 sampling, 16 bits per sample, LE. Only the 12 LSBs are used.
Trait Implementations§
source§impl Clone for DecodedFormat
impl Clone for DecodedFormat
source§fn clone(&self) -> DecodedFormat
fn clone(&self) -> DecodedFormat
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DecodedFormat
impl Debug for DecodedFormat
source§impl FromStr for DecodedFormat
impl FromStr for DecodedFormat
source§impl Hash for DecodedFormat
impl Hash for DecodedFormat
source§impl PartialEq<DecodedFormat> for DecodedFormat
impl PartialEq<DecodedFormat> for DecodedFormat
source§fn eq(&self, other: &DecodedFormat) -> bool
fn eq(&self, other: &DecodedFormat) -> bool
self
and other
values to be equal, and is used
by ==
.