summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorBin Jin <bjin1990@gmail.com>2015-12-05 16:37:22 +0000
committerwm4 <wm4@nowhere>2015-12-05 23:53:17 +0100
commit19b0b1df51c1b0d898880dce1d5f48485e4acc2d (patch)
tree4ff45d8ce0a4a19a8d774574e90b6a49aaa087f5 /common
parent30bbcd6452daa4ccc0df90de6a005a7ab0f620a8 (diff)
downloadmpv-19b0b1df51c1b0d898880dce1d5f48485e4acc2d.tar.bz2
mpv-19b0b1df51c1b0d898880dce1d5f48485e4acc2d.tar.xz
vo_opengl: improve boundary check for polar filters
If the sampling point is placed diagonally, the radius difference could be as large as sqrt(2.0). And a loosened check with (radius - 1) would potentially include pixels out of the range. Fix the check to handle those corner case properly to avoid unnecessary texture lookup and improve the performance a bit.
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions