Browse Source

linux-pipewire: Use DRM fourcc defines directly

It was naive to add these defines here to avoid a direct include when
the entire platform already depends on the DRM subsystem. Just include
it and let it provide the image formats.
Georges Basile Stavracas Neto 4 years ago
parent
commit
e41e845272
1 changed files with 0 additions and 17 deletions
  1. 0 17
      plugins/linux-capture/pipewire.c

+ 0 - 17
plugins/linux-capture/pipewire.c

@@ -44,23 +44,6 @@
 	(sizeof(struct spa_meta_cursor) + sizeof(struct spa_meta_bitmap) + \
 	 width * height * 4)
 
-#define fourcc_code(a, b, c, d)                                \
-	((__u32)(a) | ((__u32)(b) << 8) | ((__u32)(c) << 16) | \
-	 ((__u32)(d) << 24))
-
-#define DRM_FORMAT_XRGB8888        \
-	fourcc_code('X', 'R', '2', \
-		    '4') /* [31:0] x:R:G:B 8:8:8:8 little endian */
-#define DRM_FORMAT_XBGR8888        \
-	fourcc_code('X', 'B', '2', \
-		    '4') /* [31:0] x:B:G:R 8:8:8:8 little endian */
-#define DRM_FORMAT_ARGB8888        \
-	fourcc_code('A', 'R', '2', \
-		    '4') /* [31:0] A:R:G:B 8:8:8:8 little endian */
-#define DRM_FORMAT_ABGR8888        \
-	fourcc_code('A', 'B', '2', \
-		    '4') /* [31:0] A:B:G:R 8:8:8:8 little endian */
-
 struct obs_pw_version {
 	int major;
 	int minor;