summaryrefslogtreecommitdiffstats
path: root/video/out/filter_kernels.h
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2015-08-20 21:45:58 +0200
committerwm4 <wm4@nowhere>2015-08-20 21:55:19 +0200
commite1fd80097c6c224c9de06182d0a9aa0d21a57a67 (patch)
tree215e0f15984b045d5bc8df4149824b2a891bee30 /video/out/filter_kernels.h
parent96648169e342b9843246075a36fae2ad0bd06f88 (diff)
downloadmpv-e1fd80097c6c224c9de06182d0a9aa0d21a57a67.tar.bz2
mpv-e1fd80097c6c224c9de06182d0a9aa0d21a57a67.tar.xz
vo_opengl: add tscale-clamp option
This significantly reduces the amount of noticeable flashing when using tscale kernels with negative lobes, by cutting them off completely. I'm not sure if this has any negative effects. It needs a bit of subjective testing over a period of time, so I just made it an option. Fixes #2155.
Diffstat (limited to 'video/out/filter_kernels.h')
-rw-r--r--video/out/filter_kernels.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/filter_kernels.h b/video/out/filter_kernels.h
index 9e6176293f..7b101cdd35 100644
--- a/video/out/filter_kernels.h
+++ b/video/out/filter_kernels.h
@@ -33,6 +33,7 @@ struct filter_window {
struct filter_kernel {
struct filter_window f; // the kernel itself
struct filter_window w; // window storage
+ bool clamp; // clamp to the range [0-1]
// Constant values
const char *window; // default window
bool polar; // whether or not the filter uses polar coordinates