Lines Matching refs:C2
341 static inline uint8_t C2(uint32_t c) in C2() function
378 auto c2 = (C2(s) > C2(d)) ? (C2(s) - C2(d)) : (C2(d) - C2(s)); in opBlendDifference()
387 auto c2 = std::min(255, C2(s) + C2(d) - std::min(255, (C2(s) * C2(d)) << 1)); in opBlendExclusion()
396 auto c2 = std::min(C2(s) + C2(d), 255); in opBlendAdd()
405 auto c2 = C2(s) + C2(d) - MULTIPLY(C2(s), C2(d)); in opBlendScreen()
414 auto c2 = MULTIPLY(C2(s), C2(d)); 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()
433 auto c2 = std::min(C2(s), C2(d)); in opBlendDarken()
442 auto c2 = std::max(C2(s), C2(d)); in opBlendLighten()
452 auto c2 = (C2(is) > 0) ? (C2(d) / C2(is)) : C2(d); in opBlendColorDodge()
462 auto c2 = 255 - ((C2(s) > 0) ? (C2(id) / C2(s)) : C2(id)); 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()
479 … std::min(255, MULTIPLY(255 - std::min(255, 2 * C2(s)), MULTIPLY(C2(d), C2(d))) + 2 * MULTIPLY(C2(… in opBlendSoftLight()