#9421 closed enhancement (fixed)
Add support for X2BGR10LE pixel format
Reported by: | mstoeckl | Owned by: | |
---|---|---|---|
Priority: | wish | Component: | swscale |
Version: | git-master | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
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
Attachments (1)
Change History (3)
by , 3 years ago
Attachment: | 0001-avutil-swscale-kmsgrab-add-AV_PIX_FMT_X2BGR10-LE-BE.patch added |
---|
comment:1 by , 3 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in 32329397e289cc70550f110b72820ef3d219f7e0.
comment:2 by , 2 years ago
Component: | undetermined → swscale |
---|---|
Keywords: | format removed |
Priority: | normal → wish |
Version: | unspecified → git-master |
A patch which worksforme; will send to ffmpeg-devel after cleanup