mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@11881 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
350ea2c47a
commit
6772f0968f
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ double BicubicKernel(double x)
|
|||
r += 6 * x * x * x;
|
||||
if(xm1 > 0)
|
||||
r -= 4 * xm1 * xm1 * xm1;
|
||||
return 1 / 6.0 * r;
|
||||
return 0.16666666666666666 * r;
|
||||
}
|
||||
|
||||
Image RescaleBicubic(const Image& img, Size sz, const Rect& sr, Gate<int, int> progress)
|
||||
|
|
@ -49,7 +49,7 @@ Image RescaleBicubic(const Image& img, Size sz, const Rect& sr, Gate<int, int> p
|
|||
blue += weight * s.b;
|
||||
alpha += weight * s.a;
|
||||
}
|
||||
}
|
||||
}
|
||||
t->r = (int)fround(red);
|
||||
t->g = (int)fround(green);
|
||||
t->b = (int)fround(blue);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue