diff options
author | rr- <rr-@sakuya.pl> | 2016-10-04 22:07:19 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-10-07 00:22:23 +0200 |
commit | 403f489f6cccf8e6bf74ac1b57fa083759af60ec (patch) | |
tree | ba03d5a0b98edec382ed086005e73e47ee422d70 /options | |
parent | e9c43258b8efbdc7ba5350dd12426f58599b80c7 (diff) | |
download | mpv-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')
-rw-r--r-- | options/options.c | 9 | ||||
-rw-r--r-- | options/options.h | 3 |
2 files changed, 12 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} }; diff --git a/options/options.h b/options/options.h index db12742f2b..160223d3e1 100644 --- a/options/options.h +++ b/options/options.h @@ -51,6 +51,9 @@ typedef struct mp_vo_opts { struct sws_opts *sws_opts; // vo_opengl, vo_opengl_cb int hwdec_preload_api; + // vo_drm + char *drm_connector_spec; + int drm_mode_id; } mp_vo_opts; struct mp_cache_opts { |