diff options
author | Bin Jin <bjin1990@gmail.com> | 2015-12-05 18:54:25 +0000 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-12-07 23:48:15 +0100 |
commit | c1a96de41c9e3b38d0946d5c02c1faf5b39d4074 (patch) | |
tree | e5f5b4b955943f48a535d5b87a9a72711dec50c4 /video/out/opengl/video.h | |
parent | 18fe6e6dc8784348cf4f55b3a07c191a0ed8943d (diff) | |
download | mpv-c1a96de41c9e3b38d0946d5c02c1faf5b39d4074.tar.bz2 mpv-c1a96de41c9e3b38d0946d5c02c1faf5b39d4074.tar.xz |
vo_opengl: Fix minor LUT sampling error
Define a macro to correct the coordinate for lookup texture. Cache
the corrected coordinate for 1D filter and use mix() to minimize the
performance impact.
Diffstat (limited to 'video/out/opengl/video.h')
-rw-r--r-- | video/out/opengl/video.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/video.h b/video/out/opengl/video.h index c7c567d50c..a56c0c1c09 100644 --- a/video/out/opengl/video.h +++ b/video/out/opengl/video.h @@ -62,6 +62,7 @@ struct scaler { GLenum gl_target; struct fbotex sep_fbo; bool insufficient; + int lut_size; // kernel points here struct filter_kernel kernel_storage; |