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 more