Lines Matching refs:gd_mulfx

112 #define gd_mulfx(x,y) (((x) * (y)) >> 8)  macro
1109 const gdFixed f_a = gd_mulfx(f_i, f_dy); in gdImageScaleNearestNeighbour()
1110 const gdFixed f_b = gd_mulfx(f_j, f_dx); in gdImageScaleNearestNeighbour()
1120 const gdFixed f_a = gd_mulfx(f_i, f_dy); in gdImageScaleNearestNeighbour()
1121 const gdFixed f_b = gd_mulfx(f_j, f_dx); in gdImageScaleNearestNeighbour()
1168 const gdFixed f_a = gd_mulfx(f_i, f_dy); in gdImageScaleBilinearPalette()
1176 gdFixed f_b = gd_mulfx(f_j, f_dx); in gdImageScaleBilinearPalette()
1182 const gdFixed f_w1 = gd_mulfx(f_1-f_f, f_1-f_g); in gdImageScaleBilinearPalette()
1183 const gdFixed f_w2 = gd_mulfx(f_1-f_f, f_g); in gdImageScaleBilinearPalette()
1184 const gdFixed f_w3 = gd_mulfx(f_f, f_1-f_g); in gdImageScaleBilinearPalette()
1185 const gdFixed f_w4 = gd_mulfx(f_f, f_g); in gdImageScaleBilinearPalette()
1219 …d char red = (unsigned char) gd_fxtoi(gd_mulfx(f_w1, f_r1) + gd_mulfx(f_w2, f_r2) + gd_mulfx(f_w3,… in gdImageScaleBilinearPalette()
1220 …char green = (unsigned char) gd_fxtoi(gd_mulfx(f_w1, f_g1) + gd_mulfx(f_w2, f_g2) + gd_mulfx(f_w3,… in gdImageScaleBilinearPalette()
1221 … char blue = (unsigned char) gd_fxtoi(gd_mulfx(f_w1, f_b1) + gd_mulfx(f_w2, f_b2) + gd_mulfx(f_w3,… in gdImageScaleBilinearPalette()
1222 …char alpha = (unsigned char) gd_fxtoi(gd_mulfx(f_w1, f_a1) + gd_mulfx(f_w2, f_a2) + gd_mulfx(f_w3,… in gdImageScaleBilinearPalette()
1266 gdFixed f_a = gd_mulfx(f_i, f_dy); in gdImageScaleBilinearTC()
1267 gdFixed f_b = gd_mulfx(f_j, f_dx); in gdImageScaleBilinearTC()
1273 const gdFixed f_w1 = gd_mulfx(f_1-f_f, f_1-f_g); in gdImageScaleBilinearTC()
1274 const gdFixed f_w2 = gd_mulfx(f_1-f_f, f_g); in gdImageScaleBilinearTC()
1275 const gdFixed f_w3 = gd_mulfx(f_f, f_1-f_g); in gdImageScaleBilinearTC()
1276 const gdFixed f_w4 = gd_mulfx(f_f, f_g); in gdImageScaleBilinearTC()
1308 …char red = (unsigned char) gd_fxtoi(gd_mulfx(f_w1, f_r1) + gd_mulfx(f_w2, f_r2) + gd_mulfx(f_w3,… in gdImageScaleBilinearTC()
1309 …char green = (unsigned char) gd_fxtoi(gd_mulfx(f_w1, f_g1) + gd_mulfx(f_w2, f_g2) + gd_mulfx(f_w3,… in gdImageScaleBilinearTC()
1310 …char blue = (unsigned char) gd_fxtoi(gd_mulfx(f_w1, f_b1) + gd_mulfx(f_w2, f_b2) + gd_mulfx(f_w3,… in gdImageScaleBilinearTC()
1311 …char alpha = (unsigned char) gd_fxtoi(gd_mulfx(f_w1, f_a1) + gd_mulfx(f_w2, f_a2) + gd_mulfx(f_w3,… in gdImageScaleBilinearTC()
1375 const gdFixed f_a = gd_mulfx(gd_itofx(i), f_dy); in gdImageScaleBicubicFixed()
1376 const gdFixed f_b = gd_mulfx(gd_itofx(j), f_dx); in gdImageScaleBicubicFixed()
1503 if (f_fp2 > 0) f_a = gd_mulfx(f_fp2, gd_mulfx(f_fp2,f_fp2)); in gdImageScaleBicubicFixed()
1504 if (f_fp1 > 0) f_b = gd_mulfx(f_fp1, gd_mulfx(f_fp1,f_fp1)); in gdImageScaleBicubicFixed()
1505 if (f > 0) f_c = gd_mulfx(f, gd_mulfx(f,f)); in gdImageScaleBicubicFixed()
1506 if (f_fm1 > 0) f_d = gd_mulfx(f_fm1, gd_mulfx(f_fm1,f_fm1)); in gdImageScaleBicubicFixed()
1508 f_RY = gd_divfx((f_a - gd_mulfx(f_4,f_b) + gd_mulfx(f_6,f_c) - gd_mulfx(f_4,f_d)),f_6); in gdImageScaleBicubicFixed()
1520 if (f_fp2 > 0) f_a = gd_mulfx(f_fp2,gd_mulfx(f_fp2,f_fp2)); in gdImageScaleBicubicFixed()
1522 if (f_fp1 > 0) f_b = gd_mulfx(f_fp1,gd_mulfx(f_fp1,f_fp1)); in gdImageScaleBicubicFixed()
1524 if (f > 0) f_c = gd_mulfx(f,gd_mulfx(f,f)); in gdImageScaleBicubicFixed()
1526 if (f_fm1 > 0) f_d = gd_mulfx(f_fm1,gd_mulfx(f_fm1,f_fm1)); in gdImageScaleBicubicFixed()
1528 f_RX = gd_divfx((f_a-gd_mulfx(f_4,f_b)+gd_mulfx(f_6,f_c)-gd_mulfx(f_4,f_d)),f_6); in gdImageScaleBicubicFixed()
1529 f_R = gd_mulfx(f_RY,f_RX); in gdImageScaleBicubicFixed()
1537 f_red += gd_mulfx(f_rs,f_R); in gdImageScaleBicubicFixed()
1538 f_green += gd_mulfx(f_gs,f_R); in gdImageScaleBicubicFixed()
1539 f_blue += gd_mulfx(f_bs,f_R); in gdImageScaleBicubicFixed()
1540 f_alpha += gd_mulfx(f_ba,f_R); in gdImageScaleBicubicFixed()
1544 red = (unsigned char) CLAMP(gd_fxtoi(gd_mulfx(f_red, f_gamma)), 0, 255); in gdImageScaleBicubicFixed()
1545 green = (unsigned char) CLAMP(gd_fxtoi(gd_mulfx(f_green, f_gamma)), 0, 255); in gdImageScaleBicubicFixed()
1546 blue = (unsigned char) CLAMP(gd_fxtoi(gd_mulfx(f_blue, f_gamma)), 0, 255); in gdImageScaleBicubicFixed()
1547 alpha = (unsigned char) CLAMP(gd_fxtoi(gd_mulfx(f_alpha, f_gamma)), 0, 127); in gdImageScaleBicubicFixed()
1649 gdFixed f_m = gd_mulfx(f_j,f_sin) + gd_mulfx(f_i,f_cos) + f_0_5 + f_H; in gdImageRotateNearestNeighbour()
1650 gdFixed f_n = gd_mulfx(f_j,f_cos) - gd_mulfx(f_i,f_sin) + f_0_5 + f_W; in gdImageRotateNearestNeighbour()
1714 gdFixed f_m = gd_mulfx(f_j,f_sin) + gd_mulfx(f_i,f_cos) + f_0_5 + f_H; in gdImageRotateGeneric()
1715 gdFixed f_n = gd_mulfx(f_j,f_cos) - gd_mulfx(f_i,f_sin) + f_0_5 + f_W; in gdImageRotateGeneric()
1772 const gdFixed f_m = gd_mulfx(f_j,f_sin) + gd_mulfx(f_i,f_cos) + f_0_5 + f_H; in gdImageRotateBilinear()
1773 const gdFixed f_n = gd_mulfx(f_j,f_cos) - gd_mulfx(f_i,f_sin) + f_0_5 + f_W; in gdImageRotateBilinear()
1780 const gdFixed f_w1 = gd_mulfx(f_1-f_f, f_1-f_g); in gdImageRotateBilinear()
1781 const gdFixed f_w2 = gd_mulfx(f_1-f_f, f_g); in gdImageRotateBilinear()
1782 const gdFixed f_w3 = gd_mulfx(f_f, f_1-f_g); in gdImageRotateBilinear()
1783 const gdFixed f_w4 = gd_mulfx(f_f, f_g); in gdImageRotateBilinear()
1828 …const gdFixed f_red = gd_mulfx(f_w1, f_r1) + gd_mulfx(f_w2, f_r2) + gd_mulfx(f_w3, f_r3) + gd_mulf… in gdImageRotateBilinear()
1829 …const gdFixed f_green = gd_mulfx(f_w1, f_g1) + gd_mulfx(f_w2, f_g2) + gd_mulfx(f_w3, f_g3) + gd_mu… in gdImageRotateBilinear()
1830 …const gdFixed f_blue = gd_mulfx(f_w1, f_b1) + gd_mulfx(f_w2, f_b2) + gd_mulfx(f_w3, f_b3) + gd_mul… in gdImageRotateBilinear()
1831 …const gdFixed f_alpha = gd_mulfx(f_w1, f_a1) + gd_mulfx(f_w2, f_a2) + gd_mulfx(f_w3, f_a3) + gd_mu… in gdImageRotateBilinear()
1890 const gdFixed f_m = gd_mulfx(f_j,f_sin) + gd_mulfx(f_i,f_cos) + f_0_5 + f_H; in gdImageRotateBicubicFixed()
1891 const gdFixed f_n = gd_mulfx(f_j,f_cos) - gd_mulfx(f_i,f_sin) + f_0_5 + f_W; in gdImageRotateBicubicFixed()
2030 f_a = gd_mulfx(f_fp2,gd_mulfx(f_fp2,f_fp2)); in gdImageRotateBicubicFixed()
2034 f_b = gd_mulfx(f_fp1,gd_mulfx(f_fp1,f_fp1)); in gdImageRotateBicubicFixed()
2038 f_c = gd_mulfx(f,gd_mulfx(f,f)); in gdImageRotateBicubicFixed()
2042 f_d = gd_mulfx(f_fm1,gd_mulfx(f_fm1,f_fm1)); in gdImageRotateBicubicFixed()
2044 f_RY = gd_divfx((f_a-gd_mulfx(f_4,f_b)+gd_mulfx(f_6,f_c)-gd_mulfx(f_4,f_d)),f_6); in gdImageRotateBicubicFixed()
2058 f_a = gd_mulfx(f_fp2,gd_mulfx(f_fp2,f_fp2)); in gdImageRotateBicubicFixed()
2062 f_b = gd_mulfx(f_fp1,gd_mulfx(f_fp1,f_fp1)); in gdImageRotateBicubicFixed()
2066 f_c = gd_mulfx(f,gd_mulfx(f,f)); in gdImageRotateBicubicFixed()
2070 f_d = gd_mulfx(f_fm1,gd_mulfx(f_fm1,f_fm1)); in gdImageRotateBicubicFixed()
2073 f_RX = gd_divfx((f_a - gd_mulfx(f_4, f_b) + gd_mulfx(f_6, f_c) - gd_mulfx(f_4, f_d)), f_6); in gdImageRotateBicubicFixed()
2074 f_R = gd_mulfx(f_RY, f_RX); in gdImageRotateBicubicFixed()
2081 c = c | (( (int) (gd_fxtof(gd_mulfx(f_R, f_127)) + 50.5f)) << 24); in gdImageRotateBicubicFixed()
2092 f_red += gd_mulfx(f_rs, f_R); in gdImageRotateBicubicFixed()
2093 f_green += gd_mulfx(f_gs, f_R); in gdImageRotateBicubicFixed()
2094 f_blue += gd_mulfx(f_bs, f_R); in gdImageRotateBicubicFixed()
2095 f_alpha += gd_mulfx(f_as, f_R); in gdImageRotateBicubicFixed()
2099 red = (unsigned char) CLAMP(gd_fxtoi(gd_mulfx(f_red, f_gama)), 0, 255); in gdImageRotateBicubicFixed()
2100 green = (unsigned char) CLAMP(gd_fxtoi(gd_mulfx(f_green, f_gama)), 0, 255); in gdImageRotateBicubicFixed()
2101 blue = (unsigned char) CLAMP(gd_fxtoi(gd_mulfx(f_blue, f_gama)), 0, 255); in gdImageRotateBicubicFixed()
2102 alpha = (unsigned char) CLAMP(gd_fxtoi(gd_mulfx(f_alpha, f_gama)), 0, 127); in gdImageRotateBicubicFixed()