summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video_shaders.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-23 22:43:27 +0200
committerwm4 <wm4@nowhere>2015-09-23 22:43:27 +0200
commitcb1c0725345d4bf7e0226aceb934f06f40cc0ee1 (patch)
tree5816d4e8e30f845fe0d3637061f8db2722601de4 /video/out/opengl/video_shaders.h
parentc17ff1703a85679e3129b3755318fe926d85d9a6 (diff)
downloadmpv-cb1c0725345d4bf7e0226aceb934f06f40cc0ee1.tar.bz2
mpv-cb1c0725345d4bf7e0226aceb934f06f40cc0ee1.tar.xz
vo_opengl: remove sharpen scalers, add sharpen sub-option
This turns the old scalers (inherited from MPlayer) into a pre- processing step (after color conversion and before scaling). The code for the "sharpen5" scaler is reused for this. The main reason MPlayer implemented this as scalers was perhaps because FBOs were too expensive, and making it a scaler allowed to implement this in 1 pass. But unsharp masking is not really a scaler, and I would guess the result is more like combining bilinear scaling and unsharp masking.
Diffstat (limited to 'video/out/opengl/video_shaders.h')
-rw-r--r--video/out/opengl/video_shaders.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/opengl/video_shaders.h b/video/out/opengl/video_shaders.h
index aa4afa2289..e5f031cb26 100644
--- a/video/out/opengl/video_shaders.h
+++ b/video/out/opengl/video_shaders.h
@@ -37,8 +37,6 @@ void pass_sample_separated_gen(struct gl_shader_cache *sc, struct scaler *scaler
int d_x, int d_y);
void pass_sample_polar(struct gl_shader_cache *sc, struct scaler *scaler);
void pass_sample_bicubic_fast(struct gl_shader_cache *sc);
-void pass_sample_sharpen3(struct gl_shader_cache *sc, struct scaler *scaler);
-void pass_sample_sharpen5(struct gl_shader_cache *sc, struct scaler *scaler);
void pass_sample_oversample(struct gl_shader_cache *sc, struct scaler *scaler,
int w, int h);
@@ -49,4 +47,6 @@ void pass_sample_deband(struct gl_shader_cache *sc, struct deband_opts *opts,
int tex_num, GLenum tex_target, float tex_mul,
float img_w, float img_h, AVLFG *lfg);
+void pass_sample_unsharp(struct gl_shader_cache *sc, float param);
+
#endif