Struct cros_codecs::FrameLayout
source · 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: ResolutionSize in pixels of the frame.
planes: Vec<PlaneLayout>Layout of each individual plane.
Trait Implementations§
Auto Trait Implementations§
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