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

/PHP_TRUNK/ext/gd/libgd/
H A Dgd_interpolation.c109 double *Weights; /* Normalized weights of neighboring pixels */ member in struct:__anon1
893 res->ContribRow[u].Weights = (double *) gdMalloc(windows_size * sizeof(double));
902 gdFree(p->ContribRow[u].Weights);
948 dTotalWeight += (res->ContribRow[u].Weights[iSrc-iLeft] = scale_f_d * (*pFilter)(scale_f_d * (dCenter - (double)iSrc)));
958 res->ContribRow[u].Weights[iSrc-iLeft] /= dTotalWeight;
980 r += (unsigned char)(contrib->ContribRow[x].Weights[left_channel] * (double)(gdTrueColorGetRed(p_src_row[i])));
981 g += (unsigned char)(contrib->ContribRow[x].Weights[left_channel] * (double)(gdTrueColorGetGreen(p_src_row[i])));
982 b += (unsigned char)(contrib->ContribRow[x].Weights[left_channel] * (double)(gdTrueColorGetBlue(p_src_row[i])));
983 a += (unsigned char)(contrib->ContribRow[x].Weights[left_channel] * (double)(gdTrueColorGetAlpha(p_src_row[i])));
1027 r += (unsigned char)(contrib->ContribRow[y].Weights[i_iLef
[all...]

Completed in 5 milliseconds