waylandsink: fix incorrect RGB and BGR mapping about GST DRM and WL_SHM
authorHuQian <qian.hu@mediatek.com>
Wed, 8 Nov 2023 09:53:17 +0000 (09:53 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 14 Dec 2023 11:14:09 +0000 (11:14 +0000)
commit01cc9d97d786010bdeffd999d7012f6f0de2038c
tree46f54d3c75f85535ece8f76d4d2dcc0a085a847f
parent2aefdac9956823eec7bba6b23485cda470688388
waylandsink: fix incorrect RGB and BGR mapping about GST DRM and WL_SHM

This commit corrects the mapping relationship between RGB and BGR in GST and DRM.
The previous mapping was incorrect, causing potential color mismatches in the output.

The changes are as follows:

  {WL_SHM_FORMAT_RGB888, DRM_FORMAT_RGB888, GST_VIDEO_FORMAT_BGR},
  {WL_SHM_FORMAT_BGR888, DRM_FORMAT_BGR888, GST_VIDEO_FORMAT_RGB},

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5792>
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlvideoformat.c