diff options
author | wm4 <wm4@nowhere> | 2014-12-08 16:04:08 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-08 16:24:38 +0100 |
commit | 9c484cb080330d131e5a0b0049492f3583f463ff (patch) | |
tree | 7154bd7710f1b39488ea99aeec8435347673094e /video/out/gl_w32.c | |
parent | 4a95be014b8875567e8e800a6075d876ba824081 (diff) | |
download | mpv-9c484cb080330d131e5a0b0049492f3583f463ff.tar.bz2 mpv-9c484cb080330d131e5a0b0049492f3583f463ff.tar.xz |
vo_opengl: refactor: instantiate scaler functions at runtime
Before this commit, the convolution scaler shader functions were pre-
instantiated in the shader file. For every filter size, a corresponding
function (with the filter size as suffix) had to be present.
Change this, and make the C code emit the necessary bits.
This means the shader code is much reduced. (Although hopefully it
doesn't make shader compilation faster - it would require a really dumb
compiler if it spends its time on dead code.)
It also makes it more flexible, which is the main goal.
The DEF_SCALER0 stuff is needed because the C code writes the header of
the shader, at a point where scaler macros are not defined yet.
Diffstat (limited to 'video/out/gl_w32.c')
0 files changed, 0 insertions, 0 deletions