pub fn draw<R: Read>(
egl: ContextRef,
reader: PixelSource<R>,
source_bpp: Bits,
quirks: Quirks,
(source_width, source_height): (u32, u32),
(width_px, height_px): (u32, u32),
render: impl FnOnce(&ContextRef, &DmabufImage, &mut SimpleFrameBuffer<'_>, Bits, Quirks, (u32, u32)) -> Result<(), GenericError>,
handler: &mut dyn FnMut(&[u8]) -> Result<(), GenericError>,
) -> Result<(), GenericError>