From ee63c9c210683df9cbf17f7bbc5f4de8725260f3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 29 Sep 2015 21:12:26 +0200 Subject: 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. --- options/options.c | 2 ++ options/options.h | 1 + 2 files changed, 3 insertions(+) (limited to 'options') 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; -- cgit v1.2.3