[PATCH] Add m1bpp (monochrome, 1 bit/pixel) pixel format
eric.engestrom at imgtec.com
Fri Sep 15 15:33:53 UTC 2017
On Friday, 2017-09-15 11:17:29 -0400, Drew DeVault wrote:
> On 2017-09-15 6:06 PM, Pekka Paalanen wrote:
> > Indeed, 2 and 4 bit formats are also missing, but 8 and 16 bit ones are
> > already defined unless you meant some new variation.
> The 8 and 16 bit ones, so far as I can tell, are 8/16 bits per component
> of an RGB(A) triple (quadruple), rather than 8/16 bits per pixel.
You're thinking about 24/32 bpp formats there, such as DRM_FORMAT_RGB888
or DRM_FORMAT_ARGB8888, but there are smaller ones. Since you only care
about one component, you could also use DRM_FORMAT_R8  or
DRM_FORMAT_R16, which are 8 and 16 bits per pixel.
More information about the wayland-devel