kmssink: Remove big endian format inversion
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 17 Sep 2021 19:42:25 +0000 (15:42 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 20 Sep 2021 14:08:56 +0000 (14:08 +0000)
This has been a bad interpretation of the DRM docuemntation. The formats are
fixed regardless the CPU, but for some formats, they expressed in the opposite
order as GStreamer. Same change was done in waylandsink 2 years ago.

https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/commit/b393b650ab9bfb9654fc116163ab331907216d74

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2530>

sys/kms/gstkmsutils.c

index f2bc2d3..cd3f703 100644 (file)
@@ -42,7 +42,6 @@ static const struct
 
   /* DEF_FMT (XRGB1555, ???), */
   /* DEF_FMT (XBGR1555, ???), */
-#if G_BYTE_ORDER == G_LITTLE_ENDIAN
   DEF_FMT (ARGB8888, BGRA),
   DEF_FMT (XRGB8888, BGRx),
   DEF_FMT (ABGR8888, RGBA),
@@ -51,16 +50,6 @@ static const struct
   DEF_FMT (RGB888, BGR),
   DEF_FMT (P010, P010_10LE),
   DEF_FMT (P016, P016_LE),
-#else
-  DEF_FMT (ARGB8888, ARGB),
-  DEF_FMT (XRGB8888, xRGB),
-  DEF_FMT (ABGR8888, ABGR),
-  DEF_FMT (XBGR8888, xBGR),
-  DEF_FMT (RGB888, RGB),
-  DEF_FMT (BGR888, BGR),
-  DEF_FMT (P010, P010_10BE),
-  DEF_FMT (P016, P016_BE),
-#endif
   DEF_FMT (UYVY, UYVY),
   DEF_FMT (YUYV, YUY2),
   DEF_FMT (YVYU, YVYU),