0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

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.
This commit is contained in:
Georges Basile Stavracas Neto 2021-09-07 06:53:57 -03:00 committed by Georges Basile Stavracas Neto
parent 167f539416
commit e41e845272

View File

@ -44,23 +44,6 @@
(sizeof(struct spa_meta_cursor) + sizeof(struct spa_meta_bitmap) + \ (sizeof(struct spa_meta_cursor) + sizeof(struct spa_meta_bitmap) + \
width * height * 4) 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 { struct obs_pw_version {
int major; int major;
int minor; int minor;