diff options
author | wm4 <wm4@nowhere> | 2015-09-29 21:12:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-09-29 21:12:26 +0200 |
commit | ee63c9c210683df9cbf17f7bbc5f4de8725260f3 (patch) | |
tree | 4079022e388fb4ff4bf0dfefe03f0f4d3cffbe0c /options | |
parent | b4491c00c4b514e925b6bbf501e26de801f28a39 (diff) | |
download | mpv-ee63c9c210683df9cbf17f7bbc5f4de8725260f3.tar.bz2 mpv-ee63c9c210683df9cbf17f7bbc5f4de8725260f3.tar.xz |
video: replace vf_format outputlevels option with global option
The vf_format suboption is replaced with --video-output-levels (a global
option and property). In particular, the parameter is removed from
mp_image_params. The mechanism is moved to the "video equalizer", which
also handles common video output customization like brightness and
contrast controls.
The new code is slightly cleaner, and the top-level option is slightly
more user-friendly than as vf_format sub-option.
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 2 | ||||
-rw-r--r-- | options/options.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index 5d16019f29..02ee782f75 100644 --- a/options/options.c +++ b/options/options.c @@ -463,6 +463,8 @@ const m_option_t mp_opts[] = { OPT_INTRANGE("contrast", gamma_contrast, 0, -100, 100), OPT_INTRANGE("hue", gamma_hue, 0, -100, 100), OPT_INTRANGE("gamma", gamma_gamma, 0, -100, 100), + OPT_CHOICE_C("video-output-levels", video_output_levels, 0, + mp_csp_levels_names), OPT_FLAG("keepaspect", vo.keepaspect, 0), OPT_FLAG("keepaspect-window", vo.keepaspect_window, 0), diff --git a/options/options.h b/options/options.h index 5cf144a045..2a4bb8302d 100644 --- a/options/options.h +++ b/options/options.h @@ -103,6 +103,7 @@ typedef struct MPOpts { int gamma_contrast; int gamma_saturation; int gamma_hue; + int video_output_levels; int stop_screensaver; int cursor_autohide_delay; |