Searched refs:dCenter (Results 1 - 1 of 1) sorted by relevance

/PHP_TRUNK/ext/gd/libgd/
H A Dgd_interpolation.c928 const double dCenter = (double)u / scale_d; local
930 register int iLeft = MAX(0, (int)floor (dCenter - width_d));
931 int iRight = MIN((int)ceil(dCenter + width_d), (int)src_size - 1);
948 dTotalWeight += (res->ContribRow[u].Weights[iSrc-iLeft] = scale_f_d * (*pFilter)(scale_f_d * (dCenter - (double)iSrc)));

Completed in 7 milliseconds