| 1403 | const DecimateAlpha* ytab, int ytab_size, const int* yofs); |
| 1404 | |
| 1405 | static inline void interpolate_cubic(float x, float* coeffs) { |
| 1406 | const float A = -0.75f; |
| 1407 | |
| 1408 | coeffs[0] = ((A * (x + 1) - 5 * A) * (x + 1) + 8 * A) * (x + 1) - 4 * A; |
| 1409 | coeffs[1] = ((A + 2) * x - (A + 3)) * x * x + 1; |
| 1410 | coeffs[2] = ((A + 2) * (1 - x) - (A + 3)) * (1 - x) * (1 - x) + 1; |
| 1411 | coeffs[3] = 1.f - coeffs[0] - coeffs[1] - coeffs[2]; |
| 1412 | } |
| 1413 | static inline void interpolate_lanczos4(float x, float* coeffs) { |
| 1414 | static const double s45 = 0.70710678118654752440084436210485; |
| 1415 | static const double cs[][2] = {{1, 0}, {-s45, -s45}, {0, 1}, {s45, -s45}, |
no outgoing calls
no test coverage detected