Lines Matching defs:rgb
376 static inline uint8_t rgb_to_a8(CGRGBPixel rgb, const uint8_t* table8) {
377 U8CPU r = 0xFF - ((rgb >> 16) & 0xFF);
378 U8CPU g = 0xFF - ((rgb >> 8) & 0xFF);
379 U8CPU b = 0xFF - ((rgb >> 0) & 0xFF);
405 static uint16_t RGBToLcd16(CGRGBPixel rgb,
407 U8CPU r = sk_apply_lut_if<APPLY_PREBLEND>(0xFF - ((rgb >> 16) & 0xFF), tableR);
408 U8CPU g = sk_apply_lut_if<APPLY_PREBLEND>(0xFF - ((rgb >> 8) & 0xFF), tableG);
409 U8CPU b = sk_apply_lut_if<APPLY_PREBLEND>(0xFF - ((rgb >> 0) & 0xFF), tableB);
436 static SkPMColor cgpixels_to_pmcolor(CGRGBPixel rgb) {
437 U8CPU a = (rgb >> 24) & 0xFF;
438 U8CPU r = (rgb >> 16) & 0xFF;
439 U8CPU g = (rgb >> 8) & 0xFF;
440 U8CPU b = (rgb >> 0) & 0xFF;