mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 00:42:57 +00:00
options: --field-dominance: replace magic number values with choices
--field-dominance=-1 becomes --field-dominance=auto --field-dominance=0 becomes --field-dominance=top --field-dominance=1 becomes --field-dominance=bottom
This commit is contained in:
parent
51503a0577
commit
269f7df18b
@ -528,15 +528,14 @@
|
||||
reliable enough), the filename extension is used to select the demuxer.
|
||||
Always falls back on content-based demuxer selection.
|
||||
|
||||
--field-dominance=<-1-1>
|
||||
--field-dominance=<auto|top|bottom>
|
||||
Set first field for interlaced content. Useful for deinterlacers that
|
||||
double the framerate: ``--vf=tfields=1``, ``--vf=yadif=1`` and
|
||||
``--vo=vdpau:deint``.
|
||||
double the framerate: ``--vf=yadif=1`` and ``--vo=vdpau:deint``.
|
||||
|
||||
:-1: auto (default): If the decoder does not export the appropriate
|
||||
information, it falls back to 0 (top field first).
|
||||
:0: top field first
|
||||
:1: bottom field first
|
||||
:auto: (default) If the decoder does not export the appropriate
|
||||
information, it falls back to 0 (top field first).
|
||||
:top: top field first
|
||||
:bottom: bottom field first
|
||||
|
||||
--no-fixed-vo, --fixed-vo
|
||||
``--no-fixed-vo`` enforces closing and reopening the video window for
|
||||
|
@ -489,7 +489,8 @@ const m_option_t common_opts[] = {
|
||||
OPT_MAKE_FLAGS("slices", vd_use_slices, 0),
|
||||
// use (probably completely broken) decoder direct rendering
|
||||
OPT_MAKE_FLAGS("dr1", vd_use_dr1, 0),
|
||||
{"field-dominance", &field_dominance, CONF_TYPE_INT, CONF_RANGE, -1, 1, NULL},
|
||||
{"field-dominance", &field_dominance, CONF_TYPE_CHOICE, 0,
|
||||
M_CHOICES(({"auto", -1}, {"top", 0}, {"bottom", 1}))},
|
||||
|
||||
{"lavdopts", (void *) lavc_decode_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
|
||||
{"lavfdopts", (void *) lavfdopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
|
||||
|
Loading…
Reference in New Issue
Block a user