Lines Matching refs:c1
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()
377 auto c1 = (C1(s) > C1(d)) ? (C1(s) - C1(d)) : (C1(d) - C1(s)); in opBlendDifference() local
380 return JOIN(255, c1, c2, c3); in opBlendDifference()
386 auto c1 = std::min(255, C1(s) + C1(d) - std::min(255, (C1(s) * C1(d)) << 1)); in opBlendExclusion() local
389 return JOIN(255, c1, c2, c3); in opBlendExclusion()
395 auto c1 = std::min(C1(s) + C1(d), 255); in opBlendAdd() local
398 return JOIN(255, c1, c2, c3); in opBlendAdd()
404 auto c1 = C1(s) + C1(d) - MULTIPLY(C1(s), C1(d)); in opBlendScreen() local
407 return JOIN(255, c1, c2, c3); in opBlendScreen()
413 auto c1 = MULTIPLY(C1(s), C1(d)); in opBlendMultiply() local
416 return JOIN(255, c1, c2, c3); in opBlendMultiply()
423 …auto c1 = (C1(d) < 128) ? std::min(255, 2 * MULTIPLY(C1(s), C1(d))) : (255 - std::min(255, 2 * MUL… in opBlendOverlay() local
426 return JOIN(255, c1, c2, c3); in opBlendOverlay()
432 auto c1 = std::min(C1(s), C1(d)); in opBlendDarken() local
435 return JOIN(255, c1, c2, c3); in opBlendDarken()
441 auto c1 = std::max(C1(s), C1(d)); in opBlendLighten() local
444 return JOIN(255, c1, c2, c3); in opBlendLighten()
451 auto c1 = (C1(is) > 0) ? (C1(d) / C1(is)) : C1(d); in opBlendColorDodge() local
454 return JOIN(255, c1, c2, c3); in opBlendColorDodge()
461 auto c1 = 255 - ((C1(s) > 0) ? (C1(id) / C1(s)) : C1(id)); in opBlendColorBurn() local
464 return JOIN(255, c1, c2, c3); in opBlendColorBurn()
469 …auto c1 = (C1(s) < 128) ? std::min(255, 2 * MULTIPLY(C1(s), C1(d))) : (255 - std::min(255, 2 * MUL… in opBlendHardLight() local
472 return JOIN(255, c1, c2, c3); in opBlendHardLight()
478 …auto c1 = std::min(255, MULTIPLY(255 - std::min(255, 2 * C1(s)), MULTIPLY(C1(d), C1(d))) + 2 * MUL… in opBlendSoftLight() local
481 return JOIN(255, c1, c2, c3); in opBlendSoftLight()