Skip to main content

scanout_shm

Function scanout_shm 

Source
pub(crate) fn scanout_shm<R: Renderer + ImportAll>(
    surface: &WaylandSurfaceRenderElement<R>,
    size: (i32, i32),
) -> Result<(Buffer, String), &'static str>
Expand description

A client’s shm buffer the readback path encodes where it lies, with its description for the log, or why not: the rows have to be what the pool’s are, B,G,R,A (ARGB8888 or XRGB8888) packed at the capture’s width, since the encoders read them at that pitch.