Home
last modified time | relevance | path

Searched refs:abs_t (Results 1 – 1 of 1) sorted by relevance

/PHP-7.2/ext/gd/libgd/
H A Dgd_interpolation.c341 const double abs_t = (double)fabs(t); in filter_bicubic() local
342 const double abs_t_sq = abs_t * abs_t; in filter_bicubic()
343 if (abs_t<1) return 1-2*abs_t_sq+abs_t_sq*abs_t; in filter_bicubic()
344 if (abs_t<2) return 4 - 8*abs_t +5*abs_t_sq - abs_t_sq*abs_t; in filter_bicubic()
362 double abs_t = (double)fabs(t); in filter_generalized_cubic() local
363 double abs_t_sq = abs_t * abs_t; in filter_generalized_cubic()
364 if (abs_t < 1) return (a + 2) * abs_t_sq * abs_t - (a + 3) * abs_t_sq + 1; in filter_generalized_cubic()
365 if (abs_t < 2) return a * abs_t_sq * abs_t - 5 * a * abs_t_sq + 8 * a * abs_t - 4 * a; in filter_generalized_cubic()

Completed in 18 milliseconds