Lines Matching refs:f
380 float R = RGB.R, G = RGB.G, B = RGB.B, w, v, b, f; in RGB_to_HWB() local
389 f = (R == w) ? G - B : ((G == w) ? B - R : R - G); in RGB_to_HWB()
392 RETURN_HWB(i - f / (v - w), w, b); in RGB_to_HWB()
439 float h = HWB.H, w = HWB.W, b = HWB.B, v, n, f;
447 f = h - i;
449 f = 1 - f; /* if i is odd */
451 n = w + f * (v - w); /* linear interpolation between w and v */
1461 void gdImageChar (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) in gdImageChar() argument
1466 const int xuppper = (x > INT_MAX - f->w) ? INT_MAX : x + f->w; in gdImageChar()
1467 const int yuppper = (y > INT_MAX - f->h) ? INT_MAX : y + f->h; in gdImageChar()
1473 if ((c < f->offset) || (c >= (f->offset + f->nchars))) { in gdImageChar()
1476 fline = (c - f->offset) * f->h * f->w; in gdImageChar()
1479 if (f->data[fline + cy * f->w + cx]) { in gdImageChar()
1489 void gdImageCharUp (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) in gdImageCharUp() argument
1494 const int xuppper = (x > INT_MAX - f->h) ? INT_MAX : x + f->h; in gdImageCharUp()
1495 const int ylower = (y < INT_MIN + f->w) ? INT_MIN : y - f->w; in gdImageCharUp()
1501 if ((c < f->offset) || (c >= (f->offset + f->nchars))) { in gdImageCharUp()
1504 fline = (c - f->offset) * f->h * f->w; in gdImageCharUp()
1507 if (f->data[fline + cy * f->w + cx]) { in gdImageCharUp()
1517 void gdImageString (gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color) in gdImageString() argument
1523 gdImageChar(im, f, x, y, s[i], color); in gdImageString()
1524 x += f->w; in gdImageString()
1528 void gdImageStringUp (gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color) in gdImageStringUp() argument
1534 gdImageCharUp(im, f, x, y, s[i], color); in gdImageStringUp()
1535 y -= f->w; in gdImageStringUp()
1541 void gdImageString16 (gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color) in gdImageString16() argument
1547 gdImageChar(im, f, x, y, s[i], color); in gdImageString16()
1548 x += f->w; in gdImageString16()
1552 void gdImageStringUp16 (gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color) in gdImageStringUp16() argument
1558 gdImageCharUp(im, f, x, y, s[i], color); in gdImageStringUp16()
1559 y -= f->w; in gdImageStringUp16()