pub struct FrameLayout {
pub format: (Fourcc, u64),
pub size: Resolution,
pub planes: Vec<PlaneLayout>,
}
Expand description
Unambiguously describes the layout of a frame.
A frame can be made of one or several memory buffers, each containing one or several planes. For a given frame, this structure defines where each plane can be found.
Fields§
§format: (Fourcc, u64)
(Fourcc, modifier)
tuple describing the arrangement of the planes.
This member is enough to infer how many planes and buffers the frame has, and which buffer each plane belongs into.
size: Resolution
Size in pixels of the frame.
planes: Vec<PlaneLayout>
Layout of each individual plane.
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FrameLayout
impl Debug for FrameLayout
Source§impl Default for FrameLayout
impl Default for FrameLayout
Source§fn default() -> FrameLayout
fn default() -> FrameLayout
Returns the “default value” for a type. Read more
Source§impl PartialEq for FrameLayout
impl PartialEq for FrameLayout
impl StructuralPartialEq 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 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