summaryrefslogtreecommitdiffstats
path: root/video/out/drm_common.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:13:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:13:14 +0000
commit60e8a3d404f0640fa5a3f834eae54b4f1fb9127d (patch)
tree1da89a218d0ecf010c67a87cb2f625c4cb18e7d7 /video/out/drm_common.h
parentAdding upstream version 0.37.0. (diff)
downloadmpv-60e8a3d404f0640fa5a3f834eae54b4f1fb9127d.tar.xz
mpv-60e8a3d404f0640fa5a3f834eae54b4f1fb9127d.zip
Adding upstream version 0.38.0.upstream/0.38.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'video/out/drm_common.h')
-rw-r--r--video/out/drm_common.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/video/out/drm_common.h b/video/out/drm_common.h
index 581151f..9418b3f 100644
--- a/video/out/drm_common.h
+++ b/video/out/drm_common.h
@@ -23,10 +23,13 @@
#include <xf86drmMode.h>
#include "vo.h"
-#define DRM_OPTS_FORMAT_XRGB8888 0
-#define DRM_OPTS_FORMAT_XRGB2101010 1
-#define DRM_OPTS_FORMAT_XBGR8888 2
-#define DRM_OPTS_FORMAT_XBGR2101010 3
+enum {
+ DRM_OPTS_FORMAT_XRGB8888,
+ DRM_OPTS_FORMAT_XRGB2101010,
+ DRM_OPTS_FORMAT_XBGR8888,
+ DRM_OPTS_FORMAT_XBGR2101010,
+ DRM_OPTS_FORMAT_YUYV,
+};
struct framebuffer {
int fd;