1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-08 16:10:29 +00:00
mpv/video/filter
wm4 d69b39512d vf_eq: fix behavior when changing parameters
Using -vf eq and changing brightness, contrast, etc. using key bindings
with e.g. "add brightness 1" didn't work well: with step width 1, the
property gets easily "stuck". This is a rounding problem: e.g. setting
gamma to 3 would actually make it report that gamma is set to 2, so
the "add" command will obviously never reach 3 with a step width of 1.
Fix this by storing the parameters as integers.

This was broken in cac7702. This commit effectively changed these
properties to use the value as reported by vf_eq, instead of the
previously set value for the "add" command. This was more robust,
but not very correct either, so we keep the new behavior and make
vf_eq report its parameters more accurately.
2013-08-20 16:11:07 +02:00
..
pullup.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
pullup.h
vf_crop.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_delogo.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_divtc.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_dlopen.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_dlopen.h
vf_down3dright.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_dsize.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_eq.c vf_eq: fix behavior when changing parameters 2013-08-20 16:11:07 +02:00
vf_expand.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_flip.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_format.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_gradfun.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_hqdn3d.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_ilpack.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_lavfi.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_mirror.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_noformat.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_noise.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_phase.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_pp.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_pullup.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_rotate.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_scale.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_screenshot.c screenshot: minor simplification, prefer VF over VO 2013-01-30 23:41:22 +01:00
vf_softpulldown.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_stereo3d.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_sub.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_swapuv.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_unsharp.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_vo.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf_yadif.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
vf.h core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00