summaryrefslogtreecommitdiffstats
path: root/video/mp_image_pool.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-30 13:36:11 +0200
committerwm4 <wm4@nowhere>2013-05-30 15:38:07 +0200
commite08bf272ee100911001530aa605b8cf6b381c47e (patch)
tree77efcd9f67f63d82f098082d639921ab38cf7232 /video/mp_image_pool.h
parent6bfbca9912c2d86d6b28dc5000bb878fb5fbe849 (diff)
downloadmpv-e08bf272ee100911001530aa605b8cf6b381c47e.tar.bz2
mpv-e08bf272ee100911001530aa605b8cf6b381c47e.tar.xz
gl_video: fix some dithering bugs
The internal texture format GL_RED is typically 8 bit, which is clearly not good enough for the new dither matrix. The idea was to use a float texture format, but this was somehow "forgotten". Use GL_R16, since 16 bit textures are more robust, and provide more precision for the same memory usage. Change how the offset for centering the dither matrix is applied. This is needed for making it possible to round up values to the target depth. Before this commit, this changed the output even if the input was exact and input and output depth were the same, which is not really what you want. Now it doesn't do that anymore.
Diffstat (limited to 'video/mp_image_pool.h')
0 files changed, 0 insertions, 0 deletions