hc
2024-03-22 619f0f87159c5dbd2755b1b0a0eb35784be84e7a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
From af685a0732c4bbcba5b961026359e59359837c75 Mon Sep 17 00:00:00 2001
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Date: Fri, 17 Sep 2021 15:42:25 -0400
Subject: [PATCH 07/42] kmssink: Remove big endian format inversion
 
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>
(cherry picked from commit 107b8f3ba2bfd0d692e1e3e5f9d22e5ce3a92a66)
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---
 sys/kms/gstkmsutils.c | 11 -----------
 1 file changed, 11 deletions(-)
 
diff --git a/sys/kms/gstkmsutils.c b/sys/kms/gstkmsutils.c
index f2bc2d355..cd3f703f2 100644
--- a/sys/kms/gstkmsutils.c
+++ b/sys/kms/gstkmsutils.c
@@ -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),
-- 
2.20.1