summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/utils.h
diff options
context:
space:
mode:
authorBin Jin <bjin1990@gmail.com>2015-10-26 22:43:48 +0000
committerwm4 <wm4@nowhere>2015-11-05 17:38:20 +0100
commit4c43c30421b1d713b7a17b437e381fe1efd01902 (patch)
tree073551ba56ccc34be9c093eabab62cb09b1ca496 /video/out/opengl/utils.h
parent7438f208c37deb1a30df54278a6d81227038f33e (diff)
downloadmpv-4c43c30421b1d713b7a17b437e381fe1efd01902.tar.bz2
mpv-4c43c30421b1d713b7a17b437e381fe1efd01902.tar.xz
vo_opengl: add Super-xBR filter for upscaling
Add the Super-xBR filter for image doubling, and the prescaling framework to support it. The shader code was ported from MPDN extensions project, with modification to process luma only. This commit is largely inspired by code from #2266, with `gl_transform_trans()` authored by @haasn taken directly.
Diffstat (limited to 'video/out/opengl/utils.h')
-rw-r--r--video/out/opengl/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/utils.h b/video/out/opengl/utils.h
index ffcaa4da0f..8682366a24 100644
--- a/video/out/opengl/utils.h
+++ b/video/out/opengl/utils.h
@@ -117,6 +117,8 @@ static inline void gl_transform_rect(struct gl_transform t, struct mp_rect_f *r)
gl_transform_vec(t, &r->x1, &r->y1);
}
+void gl_transform_trans(struct gl_transform t, struct gl_transform *x);
+
void gl_set_debug_logger(GL *gl, struct mp_log *log);
struct gl_shader_cache;