pub struct PlaneInfo {
pub format: PlaneFormat,
pub size_scale: (u8, u8),
}Expand description
Storage description of a single plane in a PlaneLayout.
size_scale = (x_denom, y_denom) describes the storage texel
count of this plane relative to the frame’s nominal (W, H): a
UV plane in NV12 has size_scale = (2, 2) because there are
W/2 × H/2 UV-pair texels (each RG8), even though the row stride
in bytes equals the Y plane’s W. Use PixelFormat::plane_size
to materialise dimensions — that is the only contract every backend
agrees on.
Fields§
§format: PlaneFormat§size_scale: (u8, u8)Trait Implementations§
impl Copy for PlaneInfo
impl Eq for PlaneInfo
impl StructuralPartialEq for PlaneInfo
Auto Trait Implementations§
impl Freeze for PlaneInfo
impl RefUnwindSafe for PlaneInfo
impl Send for PlaneInfo
impl Sync for PlaneInfo
impl Unpin for PlaneInfo
impl UnsafeUnpin for PlaneInfo
impl UnwindSafe for PlaneInfo
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.