a9c24ff653
It's the 10 bit equivalent to NV12 and uses the same layout as P016, i.e. 16 bit components with the lowest 6 bits set to 0 (padding), allowing us to use 16 bit "subformats". Thus adding support is quite trivial as we can reuse the NV12 shader. The format is widely supported in decoding and display hardware (on Intel since Kaby Lake), as well as modern codecs (AV1, VP9, HEVC) and has visible quality advantages over NV12. Note that the additional colors are lost if composited to a 8 bit RGB framebuffer. Switching between direct scanout and compositing can thus cause quality differences. This is no new phenomena, however, as the same is the case already for e.g. GL clients using 10 bit formats - including video players. Also note that P012 and P016 could trivially added as well - it's not done here as they are uncommen and thus hard to test. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3244> |
||
---|---|---|
.. | ||
meta-cogl-drm-formats.c | ||
meta-cogl-drm-formats.h |