pub struct FrameLayout {
pub width: u32,
pub height: u32,
pub subsampling: Subsampling,
pub depth: Depth,
}Fields§
§width: u32§height: u32§subsampling: Subsampling§depth: DepthImplementations§
Source§impl FrameLayout
impl FrameLayout
pub fn luma_pixels(&self) -> usize
pub fn chroma_dims(&self) -> (u32, u32)
pub fn chroma_pixels(&self) -> usize
Sourcepub fn luma_bytes(&self) -> usize
pub fn luma_bytes(&self) -> usize
Wire size of the luma plane.
Sourcepub fn chroma_bytes(&self) -> usize
pub fn chroma_bytes(&self) -> usize
Wire size of one chroma plane.
Sourcepub fn black_luma_plane(&self) -> Vec<u8> ⓘ
pub fn black_luma_plane(&self) -> Vec<u8> ⓘ
A full black luma plane, used when no luma source is available.
Sourcepub fn neutral_chroma_plane(&self) -> Vec<u8> ⓘ
pub fn neutral_chroma_plane(&self) -> Vec<u8> ⓘ
A full neutral chroma plane, used when a source has no chroma.
Trait Implementations§
Source§impl Clone for FrameLayout
impl Clone for FrameLayout
Source§fn clone(&self) -> FrameLayout
fn clone(&self) -> FrameLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameLayout
Auto Trait Implementations§
impl Freeze for FrameLayout
impl RefUnwindSafe for FrameLayout
impl Send for FrameLayout
impl Sync for FrameLayout
impl Unpin for FrameLayout
impl UnsafeUnpin for FrameLayout
impl UnwindSafe for FrameLayout
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