Home | History | Annotate | Download | only in gfx

Lines Matching full:denom

381   const int32_t denom = 65536;
382 int32_t s_numer = static_cast<int32_t>(hsl_shift.s * 2 * denom);
398 // Use denom * L to avoid rounding.
399 int32_t denom_l = (vmax + vmin) * (denom / 2);
402 r = (denom_l + r * s_numer - s_numer_l) / denom;
403 g = (denom_l + g * s_numer - s_numer_l) / denom;
404 b = (denom_l + b * s_numer - s_numer_l) / denom;
418 // Can't be too big since we need room for denom*denom and a bit for sign.
419 const int32_t denom = 1024;
420 denom);
421 int32_t s_numer = static_cast<int32_t>(hsl_shift.s * 2 * denom);
437 // Use denom * L to avoid rounding.
438 int32_t denom_l = (vmax + vmin) * (denom / 2);
441 r = (denom_l + r * s_numer - s_numer_l) * l_numer / (denom * denom);
442 g = (denom_l + g * s_numer - s_numer_l) * l_numer / (denom * denom);
443 b = (denom_l + b * s_numer - s_numer_l) * l_numer / (denom * denom);
457 // Can't be too big since we need room for denom*denom and a bit for sign.
458 const int32_t denom = 1024;
459 int32_t l_numer = static_cast<int32_t>((hsl_shift.l - 0.5) * 2 * denom);
460 int32_t s_numer = static_cast<int32_t>(hsl_shift.s * 2 * denom);
476 // Use denom * L to avoid rounding.
477 int32_t denom_l = (vmax + vmin) * (denom / 2);
484 r = (r * denom + (a * denom - r) * l_numer) / (denom * denom);
485 g = (g * denom + (a * denom - g) * l_numer) / (denom * denom);
486 b = (b * denom + (a * denom - b) * l_numer) / (denom * denom);