pub enum NativePlaneLayout {
CpuYuv(YuvFormat),
CpuRgba8,
CpuLinearRgbaF16,
GpuI420,
GpuNv12,
GpuP010,
}Expand description
Plane organization of a native export frame.
Variants§
CpuYuv(YuvFormat)
Owned CPU YCbCr planes.
CpuRgba8
Owned CPU RGBA pixels, 8 bits each, straight alpha
(PixelFormat::Rgba8).
CpuLinearRgbaF16
Owned CPU premultiplied linear-light RGBA, a half float each
(PixelFormat::LinearRgbaF16).
GpuI420
Three imported R8 GPU planes.
GpuNv12
Imported R8 luma and RG8 chroma planes.
GpuP010
Imported R16 luma and RG16 chroma planes holding 10 significant bits.
Implementations§
Trait Implementations§
Source§impl Clone for NativePlaneLayout
impl Clone for NativePlaneLayout
impl Copy for NativePlaneLayout
Source§impl Debug for NativePlaneLayout
impl Debug for NativePlaneLayout
impl Eq for NativePlaneLayout
Source§impl PartialEq for NativePlaneLayout
impl PartialEq for NativePlaneLayout
impl StructuralPartialEq for NativePlaneLayout
Auto Trait Implementations§
impl Freeze for NativePlaneLayout
impl RefUnwindSafe for NativePlaneLayout
impl Send for NativePlaneLayout
impl Sync for NativePlaneLayout
impl Unpin for NativePlaneLayout
impl UnsafeUnpin for NativePlaneLayout
impl UnwindSafe for NativePlaneLayout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.