mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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.
This commit is contained in:
@@ -161,6 +161,7 @@ enum mp_csp_equalizer_param {
|
||||
MP_CSP_EQ_HUE,
|
||||
MP_CSP_EQ_SATURATION,
|
||||
MP_CSP_EQ_GAMMA,
|
||||
MP_CSP_EQ_OUTPUT_LEVELS,
|
||||
MP_CSP_EQ_COUNT,
|
||||
};
|
||||
|
||||
@@ -168,7 +169,8 @@ enum mp_csp_equalizer_param {
|
||||
( (1 << MP_CSP_EQ_BRIGHTNESS) \
|
||||
| (1 << MP_CSP_EQ_CONTRAST) \
|
||||
| (1 << MP_CSP_EQ_HUE) \
|
||||
| (1 << MP_CSP_EQ_SATURATION) )
|
||||
| (1 << MP_CSP_EQ_SATURATION) \
|
||||
| (1 << MP_CSP_EQ_OUTPUT_LEVELS) )
|
||||
|
||||
#define MP_CSP_EQ_CAPS_GAMMA (1 << MP_CSP_EQ_GAMMA)
|
||||
#define MP_CSP_EQ_CAPS_BRIGHTNESS (1 << MP_CSP_EQ_BRIGHTNESS)
|
||||
|
||||
Reference in New Issue
Block a user