Lines Matching refs:c2

300 static inline uint32_t JOIN(uint8_t c0, uint8_t c1, uint8_t c2, uint8_t c3)  in JOIN()  argument
302 return (c0 << 24 | c1 << 16 | c2 << 8 | c3); in JOIN()
378 auto c2 = (C2(s) > C2(d)) ? (C2(s) - C2(d)) : (C2(d) - C2(s)); in opBlendDifference() local
380 return JOIN(255, c1, c2, c3); in opBlendDifference()
387 auto c2 = std::min(255, C2(s) + C2(d) - std::min(255, (C2(s) * C2(d)) << 1)); in opBlendExclusion() local
389 return JOIN(255, c1, c2, c3); in opBlendExclusion()
396 auto c2 = std::min(C2(s) + C2(d), 255); in opBlendAdd() local
398 return JOIN(255, c1, c2, c3); in opBlendAdd()
405 auto c2 = C2(s) + C2(d) - MULTIPLY(C2(s), C2(d)); in opBlendScreen() local
407 return JOIN(255, c1, c2, c3); in opBlendScreen()
414 auto c2 = MULTIPLY(C2(s), C2(d)); in opBlendMultiply() local
416 return JOIN(255, c1, c2, c3); in opBlendMultiply()
424 …auto c2 = (C2(d) < 128) ? std::min(255, 2 * MULTIPLY(C2(s), C2(d))) : (255 - std::min(255, 2 * MUL… in opBlendOverlay() local
426 return JOIN(255, c1, c2, c3); in opBlendOverlay()
433 auto c2 = std::min(C2(s), C2(d)); in opBlendDarken() local
435 return JOIN(255, c1, c2, c3); in opBlendDarken()
442 auto c2 = std::max(C2(s), C2(d)); in opBlendLighten() local
444 return JOIN(255, c1, c2, c3); in opBlendLighten()
452 auto c2 = (C2(is) > 0) ? (C2(d) / C2(is)) : C2(d); in opBlendColorDodge() local
454 return JOIN(255, c1, c2, c3); in opBlendColorDodge()
462 auto c2 = 255 - ((C2(s) > 0) ? (C2(id) / C2(s)) : C2(id)); in opBlendColorBurn() local
464 return JOIN(255, c1, c2, c3); in opBlendColorBurn()
470 …auto c2 = (C2(s) < 128) ? std::min(255, 2 * MULTIPLY(C2(s), C2(d))) : (255 - std::min(255, 2 * MUL… in opBlendHardLight() local
472 return JOIN(255, c1, c2, c3); in opBlendHardLight()
479 …auto c2 = std::min(255, MULTIPLY(255 - std::min(255, 2 * C2(s)), MULTIPLY(C2(d), C2(d))) + 2 * MUL… in opBlendSoftLight() local
481 return JOIN(255, c1, c2, c3); in opBlendSoftLight()