/third_party/flutter/skia/experimental/docs/ |
D | exampleSlides.js | 9 { "offset":0, "color": argb(76,0,0,255) }, 10 { "offset":1, "color": argb( 0,0,0,255) } 15 { "offset":0, "color": argb(76,0,255,0) }, 16 { "offset":1, "color": argb( 0,0,255,0) } 21 { "offset":0, "color": argb(76,255,0,0) }, 22 { "offset":1, "color": argb( 0,255,0,0) } 27 { "offset":0, "color": argb(76,192,63,192) }, 28 { "offset":1, "color": argb( 0,192,63,192) } 33 { "offset":0, "color": argb(76,127,127,0) }, 34 { "offset":1, "color": argb( 0,127,127,0) } [all …]
|
/third_party/skia/experimental/docs/ |
D | exampleSlides.js | 9 { "offset":0, "color": argb(76,0,0,255) }, 10 { "offset":1, "color": argb( 0,0,0,255) } 15 { "offset":0, "color": argb(76,0,255,0) }, 16 { "offset":1, "color": argb( 0,0,255,0) } 21 { "offset":0, "color": argb(76,255,0,0) }, 22 { "offset":1, "color": argb( 0,255,0,0) } 27 { "offset":0, "color": argb(76,192,63,192) }, 28 { "offset":1, "color": argb( 0,192,63,192) } 33 { "offset":0, "color": argb(76,127,127,0) }, 34 { "offset":1, "color": argb( 0,127,127,0) } [all …]
|
/third_party/vk-gl-cts/framework/delibs/deimage/ |
D | deARGB.h | 44 DE_INLINE int deARGB_getRed (deARGB argb) { return (int)((argb >> 16) & 0xFF); } in deARGB_getRed() argument 45 DE_INLINE int deARGB_getGreen (deARGB argb) { return (int)((argb >> 8) & 0xFF); } in deARGB_getGreen() argument 46 DE_INLINE int deARGB_getBlue (deARGB argb) { return (int)((argb >> 0) & 0xFF); } in deARGB_getBlue() argument 47 DE_INLINE int deARGB_getAlpha (deARGB argb) { return (int)((argb >> 24) & 0xFF); } in deARGB_getAlpha() argument 49 DE_INLINE deARGB deARGB_multiply (deARGB argb, int f) in deARGB_multiply() argument 53 int r = (deARGB_getRed(argb) * f + 128) >> 8; in deARGB_multiply() 54 int g = (deARGB_getGreen(argb) * f + 128) >> 8; in deARGB_multiply() 55 int b = (deARGB_getBlue(argb) * f + 128) >> 8; in deARGB_multiply() 56 int a = (deARGB_getAlpha(argb) * f + 128) >> 8; in deARGB_multiply()
|
/third_party/flutter/skia/third_party/externals/libwebp/src/utils/ |
D | color_cache_utils.h | 37 int VP8LHashPix(uint32_t argb, int shift) { in VP8LHashPix() argument 38 return (int)((argb * kHashMul) >> shift); in VP8LHashPix() 48 uint32_t key, uint32_t argb) { in VP8LColorCacheSet() argument 50 cc->colors_[key] = argb; in VP8LColorCacheSet() 54 uint32_t argb) { in VP8LColorCacheInsert() argument 55 const int key = VP8LHashPix(argb, cc->hash_shift_); in VP8LColorCacheInsert() 56 cc->colors_[key] = argb; in VP8LColorCacheInsert() 60 uint32_t argb) { in VP8LColorCacheGetIndex() argument 61 return VP8LHashPix(argb, cc->hash_shift_); in VP8LColorCacheGetIndex() 66 uint32_t argb) { in VP8LColorCacheContains() argument [all …]
|
/third_party/skia/third_party/externals/libwebp/src/utils/ |
D | color_cache_utils.h | 37 int VP8LHashPix(uint32_t argb, int shift) { in VP8LHashPix() argument 38 return (int)((argb * kHashMul) >> shift); in VP8LHashPix() 48 uint32_t key, uint32_t argb) { in VP8LColorCacheSet() argument 50 cc->colors_[key] = argb; in VP8LColorCacheSet() 54 uint32_t argb) { in VP8LColorCacheInsert() argument 55 const int key = VP8LHashPix(argb, cc->hash_shift_); in VP8LColorCacheInsert() 56 cc->colors_[key] = argb; in VP8LColorCacheInsert() 60 uint32_t argb) { in VP8LColorCacheGetIndex() argument 61 return VP8LHashPix(argb, cc->hash_shift_); in VP8LColorCacheGetIndex() 66 uint32_t argb) { in VP8LColorCacheContains() argument [all …]
|
/third_party/skia/third_party/externals/libwebp/src/enc/ |
D | predictor_enc.c | 58 static WEBP_INLINE void UpdateHisto(int histo_argb[4][256], uint32_t argb) { in UpdateHisto() argument 59 ++histo_argb[0][argb >> 24]; in UpdateHisto() 60 ++histo_argb[1][(argb >> 16) & 0xff]; in UpdateHisto() 61 ++histo_argb[2][(argb >> 8) & 0xff]; in UpdateHisto() 62 ++histo_argb[3][argb & 0xff]; in UpdateHisto() 112 static uint32_t AddGreenToBlueAndRed(uint32_t argb) { in AddGreenToBlueAndRed() argument 113 const uint32_t green = (argb >> 8) & 0xff; in AddGreenToBlueAndRed() 114 uint32_t red_blue = argb & 0x00ff00ffu; in AddGreenToBlueAndRed() 117 return (argb & 0xff00ff00u) | red_blue; in AddGreenToBlueAndRed() 120 static void MaxDiffsForRow(int width, int stride, const uint32_t* const argb, in MaxDiffsForRow() argument [all …]
|
D | backward_references_enc.c | 229 uint32_t GetPixPairHash64(const uint32_t* const argb) { in GetPixPairHash64() argument 231 key = argb[1] * kHashMultiplierHi; in GetPixPairHash64() 232 key += argb[0] * kHashMultiplierLo; in GetPixPairHash64() 257 const uint32_t* const argb, int xsize, int ysize, in VP8LHashChainFill() argument 284 argb_comp = (argb[0] == argb[1]); in VP8LHashChainFill() 287 const int argb_comp_next = (argb[pos + 1] == argb[pos + 2]); in VP8LHashChainFill() 294 tmp[0] = argb[pos]; in VP8LHashChainFill() 299 while (pos + (int)len + 2 < size && argb[pos + len + 2] == argb[pos]) { in VP8LHashChainFill() 321 hash_code = GetPixPairHash64(argb + pos); in VP8LHashChainFill() 328 chain[pos] = hash_to_first_index[GetPixPairHash64(argb + pos)]; in VP8LHashChainFill() [all …]
|
D | picture_tools_enc.c | 89 uint32_t* argb = pic->argb; in WebPReplaceTransparentPixels() local 93 WebPAlphaReplace(argb, pic->width, color); in WebPReplaceTransparentPixels() 94 argb += pic->argb_stride; in WebPReplaceTransparentPixels() 112 if (IsTransparentARGBArea(pic->argb + off, pic->argb_stride, SIZE)) { in WebPCleanupTransparentArea() 114 argb_value = pic->argb[off]; in WebPCleanupTransparentArea() 117 FlattenARGB(pic->argb + off, argb_value, pic->argb_stride, SIZE); in WebPCleanupTransparentArea() 246 uint32_t* argb = pic->argb; in WebPBlendAlpha() local 250 const int alpha = (argb[x] >> 24) & 0xff; in WebPBlendAlpha() 253 int r = (argb[x] >> 16) & 0xff; in WebPBlendAlpha() 254 int g = (argb[x] >> 8) & 0xff; in WebPBlendAlpha() [all …]
|
/third_party/flutter/skia/third_party/externals/libwebp/src/enc/ |
D | predictor_enc.c | 58 static WEBP_INLINE void UpdateHisto(int histo_argb[4][256], uint32_t argb) { in UpdateHisto() argument 59 ++histo_argb[0][argb >> 24]; in UpdateHisto() 60 ++histo_argb[1][(argb >> 16) & 0xff]; in UpdateHisto() 61 ++histo_argb[2][(argb >> 8) & 0xff]; in UpdateHisto() 62 ++histo_argb[3][argb & 0xff]; in UpdateHisto() 112 static uint32_t AddGreenToBlueAndRed(uint32_t argb) { in AddGreenToBlueAndRed() argument 113 const uint32_t green = (argb >> 8) & 0xff; in AddGreenToBlueAndRed() 114 uint32_t red_blue = argb & 0x00ff00ffu; in AddGreenToBlueAndRed() 117 return (argb & 0xff00ff00u) | red_blue; in AddGreenToBlueAndRed() 120 static void MaxDiffsForRow(int width, int stride, const uint32_t* const argb, in MaxDiffsForRow() argument [all …]
|
D | backward_references_enc.c | 198 uint32_t GetPixPairHash64(const uint32_t* const argb) { in GetPixPairHash64() argument 200 key = argb[1] * kHashMultiplierHi; in GetPixPairHash64() 201 key += argb[0] * kHashMultiplierLo; in GetPixPairHash64() 226 const uint32_t* const argb, int xsize, int ysize, in VP8LHashChainFill() argument 253 argb_comp = (argb[0] == argb[1]); in VP8LHashChainFill() 256 const int argb_comp_next = (argb[pos + 1] == argb[pos + 2]); in VP8LHashChainFill() 263 tmp[0] = argb[pos]; in VP8LHashChainFill() 268 while (pos + (int)len + 2 < size && argb[pos + len + 2] == argb[pos]) { in VP8LHashChainFill() 290 hash_code = GetPixPairHash64(argb + pos); in VP8LHashChainFill() 297 chain[pos] = hash_to_first_index[GetPixPairHash64(argb + pos)]; in VP8LHashChainFill() [all …]
|
D | picture_tools_enc.c | 99 if (IsTransparentARGBArea(pic->argb + off, pic->argb_stride, SIZE)) { in WebPCleanupTransparentArea() 101 argb_value = pic->argb[off]; in WebPCleanupTransparentArea() 104 FlattenARGB(pic->argb + off, argb_value, pic->argb_stride, SIZE); in WebPCleanupTransparentArea() 170 uint32_t* argb; in WebPCleanupTransparentAreaLossless() local 174 argb = pic->argb; in WebPCleanupTransparentAreaLossless() 178 if ((argb[x] & 0xff000000) == 0) { in WebPCleanupTransparentAreaLossless() 179 argb[x] = 0x00000000; in WebPCleanupTransparentAreaLossless() 182 argb += pic->argb_stride; in WebPCleanupTransparentAreaLossless() 251 uint32_t* argb = pic->argb; in WebPBlendAlpha() local 255 const int alpha = (argb[x] >> 24) & 0xff; in WebPBlendAlpha() [all …]
|
/third_party/skia/third_party/externals/libwebp/src/dsp/ |
D | lossless_enc_mips_dsp_r2.c | 84 uint32_t argb, argb1, new_red, new_red1; in TransformColor_MIPSdspR2() local 142 [argb]"=&r"(argb), [argb1]"=&r"(argb1), [data]"+&r"(data) in TransformColor_MIPSdspR2() 165 uint32_t argb) { in TransformColorBlue() argument 166 const uint32_t green = argb >> 8; in TransformColorBlue() 167 const uint32_t red = argb >> 16; in TransformColorBlue() 168 uint8_t new_blue = argb; in TransformColorBlue() 174 static void CollectColorBlueTransforms_MIPSdspR2(const uint32_t* argb, in CollectColorBlueTransforms_MIPSdspR2() argument 186 const uint32_t* p_argb = argb; in CollectColorBlueTransforms_MIPSdspR2() 187 argb += stride; in CollectColorBlueTransforms_MIPSdspR2() 221 uint32_t argb) { in TransformColorRed() argument [all …]
|
D | lossless.c | 251 const uint32_t argb = src[i]; in VP8LAddGreenToBlueAndRed_C() local 252 const uint32_t green = ((argb >> 8) & 0xff); in VP8LAddGreenToBlueAndRed_C() 253 uint32_t red_blue = (argb & 0x00ff00ffu); in VP8LAddGreenToBlueAndRed_C() 256 dst[i] = (argb & 0xff00ff00u) | red_blue; in VP8LAddGreenToBlueAndRed_C() 277 const uint32_t argb = src[i]; in VP8LTransformColorInverse_C() local 278 const int8_t green = (int8_t)(argb >> 8); in VP8LTransformColorInverse_C() 279 const uint32_t red = argb >> 16; in VP8LTransformColorInverse_C() 281 int new_blue = argb & 0xff; in VP8LTransformColorInverse_C() 287 dst[i] = (argb & 0xff00ff00u) | (new_red << 16) | (new_blue); in VP8LTransformColorInverse_C() 434 const uint32_t argb = *src++; in VP8LConvertBGRAToRGB_C() local [all …]
|
D | lossless_enc_neon.c | 39 static WEBP_INLINE uint8x16_t DoGreenShuffle_NEON(const uint8x16_t argb, in DoGreenShuffle_NEON() argument 41 return vcombine_u8(vtbl1q_u8(argb, vget_low_u8(shuffle)), in DoGreenShuffle_NEON() 42 vtbl1q_u8(argb, vget_high_u8(shuffle))); in DoGreenShuffle_NEON() 48 static WEBP_INLINE uint8x16_t DoGreenShuffle_NEON(const uint8x16_t argb, in DoGreenShuffle_NEON() argument 50 return vcombine_u8(vtbl1_u8(vget_low_u8(argb), shuffle), in DoGreenShuffle_NEON() 51 vtbl1_u8(vget_high_u8(argb), shuffle)); in DoGreenShuffle_NEON() 64 const uint8x16_t argb = vld1q_u8((uint8_t*)argb_data); in SubtractGreenFromBlueAndRed_NEON() local 65 const uint8x16_t greens = DoGreenShuffle_NEON(argb, shuffle); in SubtractGreenFromBlueAndRed_NEON() 66 vst1q_u8((uint8_t*)argb_data, vsubq_u8(argb, greens)); in SubtractGreenFromBlueAndRed_NEON()
|
D | lossless_enc.c | 525 const int argb = argb_data[i]; in VP8LSubtractGreenFromBlueAndRed_C() local 526 const int green = (argb >> 8) & 0xff; in VP8LSubtractGreenFromBlueAndRed_C() 527 const uint32_t new_r = (((argb >> 16) & 0xff) - green) & 0xff; in VP8LSubtractGreenFromBlueAndRed_C() 528 const uint32_t new_b = (((argb >> 0) & 0xff) - green) & 0xff; in VP8LSubtractGreenFromBlueAndRed_C() 529 argb_data[i] = (argb & 0xff00ff00u) | (new_r << 16) | new_b; in VP8LSubtractGreenFromBlueAndRed_C() 545 const uint32_t argb = data[i]; in VP8LTransformColor_C() local 546 const int8_t green = U32ToS8(argb >> 8); in VP8LTransformColor_C() 547 const int8_t red = U32ToS8(argb >> 16); in VP8LTransformColor_C() 549 int new_blue = argb & 0xff; in VP8LTransformColor_C() 555 data[i] = (argb & 0xff00ff00u) | (new_red << 16) | (new_blue); in VP8LTransformColor_C() [all …]
|
D | alpha_processing.c | 143 const uint32_t argb = ptr[x]; in WebPMultARGBRow_C() local 144 if (argb < 0xff000000u) { // alpha < 255 in WebPMultARGBRow_C() 145 if (argb <= 0x00ffffffu) { // alpha == 0 in WebPMultARGBRow_C() 148 const uint32_t alpha = (argb >> 24) & 0xff; in WebPMultARGBRow_C() 150 uint32_t out = argb & 0xff000000u; in WebPMultARGBRow_C() 151 out |= Mult(argb >> 0, scale) << 0; in WebPMultARGBRow_C() 152 out |= Mult(argb >> 8, scale) << 8; in WebPMultARGBRow_C() 153 out |= Mult(argb >> 16, scale) << 16; in WebPMultARGBRow_C() 328 static int ExtractAlpha_C(const uint8_t* WEBP_RESTRICT argb, int argb_stride, in ExtractAlpha_C() argument 336 const uint8_t alpha_value = argb[4 * i]; in ExtractAlpha_C() [all …]
|
/third_party/flutter/skia/third_party/externals/libwebp/src/dsp/ |
D | lossless_enc_mips_dsp_r2.c | 84 uint32_t argb, argb1, new_red, new_red1; in TransformColor_MIPSdspR2() local 142 [argb]"=&r"(argb), [argb1]"=&r"(argb1), [data]"+&r"(data) in TransformColor_MIPSdspR2() 165 uint32_t argb) { in TransformColorBlue() argument 166 const uint32_t green = argb >> 8; in TransformColorBlue() 167 const uint32_t red = argb >> 16; in TransformColorBlue() 168 uint8_t new_blue = argb; in TransformColorBlue() 174 static void CollectColorBlueTransforms_MIPSdspR2(const uint32_t* argb, in CollectColorBlueTransforms_MIPSdspR2() argument 186 const uint32_t* p_argb = argb; in CollectColorBlueTransforms_MIPSdspR2() 187 argb += stride; in CollectColorBlueTransforms_MIPSdspR2() 221 uint32_t argb) { in TransformColorRed() argument [all …]
|
D | lossless.c | 246 const uint32_t argb = src[i]; in VP8LAddGreenToBlueAndRed_C() local 247 const uint32_t green = ((argb >> 8) & 0xff); in VP8LAddGreenToBlueAndRed_C() 248 uint32_t red_blue = (argb & 0x00ff00ffu); in VP8LAddGreenToBlueAndRed_C() 251 dst[i] = (argb & 0xff00ff00u) | red_blue; in VP8LAddGreenToBlueAndRed_C() 272 const uint32_t argb = src[i]; in VP8LTransformColorInverse_C() local 273 const int8_t green = (int8_t)(argb >> 8); in VP8LTransformColorInverse_C() 274 const uint32_t red = argb >> 16; in VP8LTransformColorInverse_C() 276 int new_blue = argb & 0xff; in VP8LTransformColorInverse_C() 282 dst[i] = (argb & 0xff00ff00u) | (new_red << 16) | (new_blue); in VP8LTransformColorInverse_C() 429 const uint32_t argb = *src++; in VP8LConvertBGRAToRGB_C() local [all …]
|
D | lossless_enc_neon.c | 39 static WEBP_INLINE uint8x16_t DoGreenShuffle_NEON(const uint8x16_t argb, in DoGreenShuffle_NEON() argument 41 return vcombine_u8(vtbl1q_u8(argb, vget_low_u8(shuffle)), in DoGreenShuffle_NEON() 42 vtbl1q_u8(argb, vget_high_u8(shuffle))); in DoGreenShuffle_NEON() 48 static WEBP_INLINE uint8x16_t DoGreenShuffle_NEON(const uint8x16_t argb, in DoGreenShuffle_NEON() argument 50 return vcombine_u8(vtbl1_u8(vget_low_u8(argb), shuffle), in DoGreenShuffle_NEON() 51 vtbl1_u8(vget_high_u8(argb), shuffle)); in DoGreenShuffle_NEON() 64 const uint8x16_t argb = vld1q_u8((uint8_t*)argb_data); in SubtractGreenFromBlueAndRed_NEON() local 65 const uint8x16_t greens = DoGreenShuffle_NEON(argb, shuffle); in SubtractGreenFromBlueAndRed_NEON() 66 vst1q_u8((uint8_t*)argb_data, vsubq_u8(argb, greens)); in SubtractGreenFromBlueAndRed_NEON()
|
D | alpha_processing.c | 143 const uint32_t argb = ptr[x]; in WebPMultARGBRow_C() local 144 if (argb < 0xff000000u) { // alpha < 255 in WebPMultARGBRow_C() 145 if (argb <= 0x00ffffffu) { // alpha == 0 in WebPMultARGBRow_C() 148 const uint32_t alpha = (argb >> 24) & 0xff; in WebPMultARGBRow_C() 150 uint32_t out = argb & 0xff000000u; in WebPMultARGBRow_C() 151 out |= Mult(argb >> 0, scale) << 0; in WebPMultARGBRow_C() 152 out |= Mult(argb >> 8, scale) << 8; in WebPMultARGBRow_C() 153 out |= Mult(argb >> 16, scale) << 16; in WebPMultARGBRow_C() 325 static int ExtractAlpha_C(const uint8_t* argb, int argb_stride, in ExtractAlpha_C() argument 333 const uint8_t alpha_value = argb[4 * i]; in ExtractAlpha_C() [all …]
|
/third_party/flutter/skia/docs/examples/ |
D | RGBA4f_toSkColor.cpp | 9 SkColor argb = color4f.toSkColor(); in draw() local 10 SkDebugf("red=%d green=%d blue=%d alpha=%d\n", SkColorGetR(argb), in draw() 11 SkColorGetG(argb), SkColorGetB(argb), SkColorGetA(argb)); in draw() 12 SkColor4f fromSkColor = SkColor4f::FromColor(argb); in draw()
|
/third_party/skia/docs/examples/ |
D | RGBA4f_toSkColor.cpp | 9 SkColor argb = color4f.toSkColor(); in draw() local 10 SkDebugf("red=%d green=%d blue=%d alpha=%d\n", SkColorGetR(argb), in draw() 11 SkColorGetG(argb), SkColorGetB(argb), SkColorGetA(argb)); in draw() 12 SkColor4f fromSkColor = SkColor4f::FromColor(argb); in draw()
|
/third_party/pixman/pixman/ |
D | pixman-access.c | 601 argb_t *argb = buffer; in fetch_scanline_a8r8g8b8_sRGB_float() local 603 argb->a = pixman_unorm_to_float ((p >> 24) & 0xff, 8); in fetch_scanline_a8r8g8b8_sRGB_float() 605 argb->r = to_linear [(p >> 16) & 0xff]; in fetch_scanline_a8r8g8b8_sRGB_float() 606 argb->g = to_linear [(p >> 8) & 0xff]; in fetch_scanline_a8r8g8b8_sRGB_float() 607 argb->b = to_linear [(p >> 0) & 0xff]; in fetch_scanline_a8r8g8b8_sRGB_float() 857 argb_t argb; in fetch_pixel_rgbf_float() local 859 argb.r = bits[offset * 3]; in fetch_pixel_rgbf_float() 860 argb.g = bits[offset * 3 + 1]; in fetch_pixel_rgbf_float() 861 argb.b = bits[offset * 3 + 2]; in fetch_pixel_rgbf_float() 862 argb.a = 1.f; in fetch_pixel_rgbf_float() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/image_util/ |
D | copyimage.cpp | 16 uint32_t argb = *reinterpret_cast<const uint32_t *>(source); in CopyBGRA8ToRGBA8() local 17 *reinterpret_cast<uint32_t *>(dest) = (argb & 0xFF00FF00) | // Keep alpha and green in CopyBGRA8ToRGBA8() 18 (argb & 0x00FF0000) >> 16 | // Move red to blue in CopyBGRA8ToRGBA8() 19 (argb & 0x000000FF) << 16; // Move blue to red in CopyBGRA8ToRGBA8()
|
/third_party/skia/third_party/externals/angle2/src/image_util/ |
D | copyimage.cpp | 16 uint32_t argb = *reinterpret_cast<const uint32_t *>(source); in CopyBGRA8ToRGBA8() local 17 *reinterpret_cast<uint32_t *>(dest) = (argb & 0xFF00FF00) | // Keep alpha and green in CopyBGRA8ToRGBA8() 18 (argb & 0x00FF0000) >> 16 | // Move red to blue in CopyBGRA8ToRGBA8() 19 (argb & 0x000000FF) << 16; // Move blue to red in CopyBGRA8ToRGBA8()
|