pub struct ExternalImageDesc {
pub planes: Vec<DmaBufPlane>,
pub fourcc: Fourcc,
pub modifier: Modifier,
}Expand description
An image that already exists, to be imported rather than allocated.
This is the first of the two requirements that exist in the HAL from day one for the sake of the DRM path. The renderer must be able to draw into images it did not allocate — buffers GBM made, or buffers another device allocated and shared — because on a split render/display SoC the display controller and the GPU are different devices with different ideas about memory layout.
Fields§
§planes: Vec<DmaBufPlane>Planes making up the image. Most formats are single-plane.
fourcc: FourccThe DRM format code the buffer was allocated with.
modifier: ModifierThe layout the buffer was allocated with.
Modifier::INVALID is accepted only where no negotiation took place;
a buffer that came out of format negotiation always carries the
explicit modifier that was agreed on.