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 ++ 1 file changed, 2 insertions(+) (limited to 'options/options.c') 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), -- cgit v1.2.3