drm_common: Add proper help option to drm-mode

This was implemented by using OPT_STRING_VALIDATE for drm-mode,
instead of OPT_INT. Using a string here also prepares for future
additions to drm-mode that aim to allow specifying a mode by its
resolution.
This commit is contained in:
Anton Kindestam
2018-06-02 12:53:58 +02:00
committed by sfan5
parent a776628d88
commit 8261924db9
5 changed files with 95 additions and 26 deletions

View File

@@ -479,13 +479,14 @@ Available video output drivers are:
``--drm-connector=[<gpu_number>.]<name>``
Select the connector to use (usually this is a monitor.) If ``<name>``
is empty or ``auto``, mpv renders the output on the first available
connector. Use ``--drm-connector=help`` to get list of available
connector. Use ``--drm-connector=help`` to get a list of available
connectors. When using multiple graphic cards, use the ``<gpu_number>``
argument to disambiguate.
(default: empty)
``--drm-mode=<number>``
Mode ID to use (resolution and frame rate).
Mode ID to use (resolution and frame rate). Use ``--drm-mode=help`` to
get a list of available modes for all active connectors.
(default: 0)
``--drm-atomic=<no|auto>``