pub enum DecodedFormat {
I420,
NV12,
I422,
I444,
I010,
I012,
I210,
I212,
I410,
I412,
MM21,
}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.
MM21
One Y and one interleaved UV plane, 4:2:0 sampling, 8 bits per sample. In a tiled format.
Trait Implementations§
Source§impl Clone for DecodedFormat
impl Clone for DecodedFormat
Source§fn clone(&self) -> DecodedFormat
fn clone(&self) -> DecodedFormat
1.0.0 (const: unstable) · 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 From<DecodedFormat> for Fourcc
impl From<DecodedFormat> for Fourcc
Source§fn from(format: DecodedFormat) -> Fourcc
fn from(format: DecodedFormat) -> Fourcc
Source§impl From<Fourcc> for DecodedFormat
impl From<Fourcc> for DecodedFormat
Source§fn from(fourcc: Fourcc) -> DecodedFormat
fn from(fourcc: Fourcc) -> DecodedFormat
Source§impl FromStr for DecodedFormat
impl FromStr for DecodedFormat
Source§impl Hash for DecodedFormat
impl Hash for DecodedFormat
Source§impl PartialEq for DecodedFormat
impl PartialEq 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 ==.