summaryrefslogtreecommitdiffstats
path: root/video/out/drm_common.h
diff options
context:
space:
mode:
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;