LibImage: Cleanup bicubic calculations

This commit is contained in:
Bananymous 2024-06-25 09:49:25 +03:00
parent d7b8458a56
commit 95681a7a05
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ namespace LibImage
const auto b = p[0] + (p[1] * -2.5) + (p[2] * 2.0) + (p[3] * -0.5);
const auto c = (p[0] * -0.5) + (p[2] * 0.5);
const auto d = p[1];
return (a * x * x * x) + (b * x * x) + (c * x) + d;
return ((a * x + b) * x + c) * x + d;
};
for (uint64_t y = 0; y < new_height; y++)