Struct cros_codecs::SurfaceLayout
source · pub struct SurfaceLayout {
pub format: (Fourcc, u64),
pub size: Resolution,
pub planes: Vec<PlaneLayout>,
}
Expand description
Unambiguously describes the layout of a surface.
A surface can be made of one or several memory buffers, each containing one or several planes. For a given surface, 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 surface has, and which buffer each plane belongs into.
size: Resolution
Size in pixels of the surface.
planes: Vec<PlaneLayout>
Layout of each individual plane.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SurfaceLayout
impl Send for SurfaceLayout
impl Sync for SurfaceLayout
impl Unpin for SurfaceLayout
impl UnwindSafe for SurfaceLayout
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