[FFmpeg-trac] #9421(undetermined:new): Add support for X2BGR10LE pixel format

FFmpeg trac at avcodec.org
Tue Sep 14 06:35:16 EEST 2021


#9421: Add support for X2BGR10LE pixel format
-------------------------------------+-------------------------------------
             Reporter:  mstoeckl     |                     Type:
                                     |  enhancement
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  format       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 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:
 https://github.com/ammen99/wf-recorder/issues/155
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9421>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list