Add support for X2BGR10LE pixel format
|Reproduced by developer:
|Analyzed by developer:
Adding X2BGR10LE to the list of pixel formats would make it possible
to represent data copied from a buffer which has format
DRM_FORMAT_XBGR2101010 = GL_RGB10. Support in swscale(?) may also
be necessary to make it possible to encode buffers in this format.
Such data can for example be created when recording the screen or the
output of an OpenGL game directly. On Wayland, some compositors may
support 10 bit color depth in the near future, and Mesa sometimes
picks EGL configs with 10 bit depth for OpenGL programs. The natural
OpenGL internal format here is GL_RGB10, which when exported to a
DMABUF has format DRM_FORMAT_XBGR2101010.
For specific motivation, see:
Change History (3)
by , 2 years ago