summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorrr- <rr-@sakuya.pl>2016-10-04 22:07:19 +0200
committerwm4 <wm4@nowhere>2016-10-07 00:22:23 +0200
commit403f489f6cccf8e6bf74ac1b57fa083759af60ec (patch)
treeba03d5a0b98edec382ed086005e73e47ee422d70 /options/options.c
parente9c43258b8efbdc7ba5350dd12426f58599b80c7 (diff)
downloadmpv-403f489f6cccf8e6bf74ac1b57fa083759af60ec.tar.bz2
mpv-403f489f6cccf8e6bf74ac1b57fa083759af60ec.tar.xz
vo_drm: change CLI options + refactors
- Change connector selection to accept human readable names (such as eDP-1, HDMI-A-2) rather than arbitrary numbers. - Change GPU selection to accept GPU number rather than device paths. - Merge connector and GPU selection into one --drm-connector. - Add support for --drm-connector=help. - Add support for --drm-* in EGL backend. - Refactor KMS; reduce state sharing across drm_common.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 93a76e5d41..38f5d16721 100644
--- a/options/options.c
+++ b/options/options.c
@@ -48,6 +48,10 @@
#include "player/command.h"
#include "stream/stream.h"
+#if HAVE_DRM
+#include "video/out/drm_common.h"
+#endif
+
extern const char mp_help_text[];
static void print_version(struct mp_log *log)
@@ -190,6 +194,11 @@ static const m_option_t mp_vo_opt_list[] = {
#if HAVE_WIN32
OPT_STRING("vo-mmcss-profile", mmcss_profile, 0),
#endif
+#if HAVE_DRM
+ OPT_STRING_VALIDATE("drm-connector", drm_connector_spec,
+ 0, drm_validate_connector_opt),
+ OPT_INT("drm-mode", drm_mode_id, 0),
+#endif
{0}
};