summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video.h
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2015-01-06 10:47:26 +0100
committerwm4 <wm4@nowhere>2015-01-09 03:18:21 +0100
commit286340d7d09f72f471d5d1bddcf4d242ed22f4ed (patch)
treee14517963f60820eb38a58dac0d97556dc3e50d0 /video/out/gl_video.h
parent33dd9147ae859b712c52eecfadc8ff97e3d07575 (diff)
downloadmpv-286340d7d09f72f471d5d1bddcf4d242ed22f4ed.tar.bz2
mpv-286340d7d09f72f471d5d1bddcf4d242ed22f4ed.tar.xz
video: Add sigmoidal upscaling to avoid ringing artifacts
This avoids issues when upscaling directly in linear light, and is the recommended way to upscale images according to imagemagick. The default slope of 6.5 offers a reasonable compromise between ringing artifacts eliminated and ringing artifacts introduced by sigmoid-upscaling. Same goes for the default center of 0.75.
Diffstat (limited to 'video/out/gl_video.h')
-rw-r--r--video/out/gl_video.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/gl_video.h b/video/out/gl_video.h
index 1ee0ec9213..37c819ecdb 100644
--- a/video/out/gl_video.h
+++ b/video/out/gl_video.h
@@ -39,6 +39,9 @@ struct gl_video_opts {
int approx_gamma;
int scale_sep;
int fancy_downscaling;
+ int sigmoid_upscaling;
+ float sigmoid_center;
+ float sigmoid_slope;
int scaler_resizes_only;
int npot;
int pbo;