/external/pdfium/core/fxge/ |
D | fx_dib.h | 88 std::tuple<int, int, int, int> ArgbDecode(FX_ARGB argb); 91 std::pair<int, FX_COLORREF> ArgbToColorRef(FX_ARGB argb); 100 #define FXARGB_A(argb) ((uint8_t)((argb) >> 24)) argument 101 #define FXARGB_R(argb) ((uint8_t)((argb) >> 16)) argument 102 #define FXARGB_G(argb) ((uint8_t)((argb) >> 8)) argument 103 #define FXARGB_B(argb) ((uint8_t)(argb)) argument 106 #define FXARGB_MUL_ALPHA(argb, alpha) \ argument 107 (((((argb) >> 24) * (alpha) / 255) << 24) | ((argb)&0xffffff)) 115 #define FXARGB_SETDIB(p, argb) \ argument 116 ((uint8_t*)(p))[0] = (uint8_t)(argb), \ [all …]
|
/external/skqp/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 …]
|
/external/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 …]
|
/external/webp/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 | 197 static WEBP_INLINE uint32_t GetPixPairHash64(const uint32_t* const argb) { in GetPixPairHash64() argument 199 key = (argb[1] * HASH_MULTIPLIER_HI) & 0xffffffffu; in GetPixPairHash64() 200 key += (argb[0] * HASH_MULTIPLIER_LO) & 0xffffffffu; in GetPixPairHash64() 225 const uint32_t* const argb, int xsize, int ysize, in VP8LHashChainFill() argument 252 argb_comp = (argb[0] == argb[1]); in VP8LHashChainFill() 255 const int argb_comp_next = (argb[pos + 1] == argb[pos + 2]); in VP8LHashChainFill() 262 tmp[0] = argb[pos]; in VP8LHashChainFill() 267 while (pos + (int)len + 2 < size && argb[pos + len + 2] == argb[pos]) { in VP8LHashChainFill() 289 hash_code = GetPixPairHash64(argb + pos); in VP8LHashChainFill() 296 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 …]
|
D | picture_rescale_enc.c | 78 WebPCopyPlane((const uint8_t*)src->argb, 4 * src->argb_stride, in WebPPictureCopy() 79 (uint8_t*)dst->argb, 4 * dst->argb_stride, in WebPPictureCopy() 117 dst->argb = src->argb + top * src->argb_stride + left; in WebPPictureView() 155 (const uint8_t*)(pic->argb + top * pic->argb_stride + left); in WebPPictureCrop() 156 WebPCopyPlane(src, pic->argb_stride * 4, (uint8_t*)tmp.argb, in WebPPictureCrop() 186 assert(pic->argb != NULL); in AlphaMultiplyARGB() 187 WebPMultARGBRows((uint8_t*)pic->argb, pic->argb_stride * sizeof(*pic->argb), in AlphaMultiplyARGB() 255 RescalePlane((const uint8_t*)pic->argb, prev_width, prev_height, in WebPPictureRescale() 257 (uint8_t*)tmp.argb, width, height, in WebPPictureRescale()
|
/external/deqp/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()
|
/external/webp/src/utils/ |
D | color_cache_utils.h | 35 static WEBP_INLINE int VP8LHashPix(uint32_t argb, int shift) { in VP8LHashPix() argument 36 return (int)(((argb * kHashMul) & 0xffffffffu) >> shift); in VP8LHashPix() 46 uint32_t key, uint32_t argb) { in VP8LColorCacheSet() argument 48 cc->colors_[key] = argb; in VP8LColorCacheSet() 52 uint32_t argb) { in VP8LColorCacheInsert() argument 53 const int key = VP8LHashPix(argb, cc->hash_shift_); in VP8LColorCacheInsert() 54 cc->colors_[key] = argb; in VP8LColorCacheInsert() 58 uint32_t argb) { in VP8LColorCacheGetIndex() argument 59 return VP8LHashPix(argb, cc->hash_shift_); in VP8LColorCacheGetIndex() 64 uint32_t argb) { in VP8LColorCacheContains() argument [all …]
|
/external/webp/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 uint32_t green = 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 …]
|
D | lossless_enc.c | 506 const int argb = argb_data[i]; in VP8LSubtractGreenFromBlueAndRed_C() local 507 const int green = (argb >> 8) & 0xff; in VP8LSubtractGreenFromBlueAndRed_C() 508 const uint32_t new_r = (((argb >> 16) & 0xff) - green) & 0xff; in VP8LSubtractGreenFromBlueAndRed_C() 509 const uint32_t new_b = (((argb >> 0) & 0xff) - green) & 0xff; in VP8LSubtractGreenFromBlueAndRed_C() 510 argb_data[i] = (argb & 0xff00ff00u) | (new_r << 16) | new_b; in VP8LSubtractGreenFromBlueAndRed_C() 522 const uint32_t argb = data[i]; in VP8LTransformColor_C() local 523 const uint32_t green = argb >> 8; in VP8LTransformColor_C() 524 const uint32_t red = argb >> 16; in VP8LTransformColor_C() 526 int new_blue = argb & 0xff; in VP8LTransformColor_C() 532 data[i] = (argb & 0xff00ff00u) | (new_red << 16) | (new_blue); in VP8LTransformColor_C() [all …]
|
D | yuv.h | 110 uint8_t* const argb) { in VP8YuvToRgba4444() argument 117 argb[0] = ba; in VP8YuvToRgba4444() 118 argb[1] = rg; in VP8YuvToRgba4444() 120 argb[0] = rg; in VP8YuvToRgba4444() 121 argb[1] = ba; in VP8YuvToRgba4444() 129 uint8_t* const argb) { in VP8YuvToArgb() argument 130 argb[0] = 0xff; in VP8YuvToArgb() 131 VP8YuvToRgb(y, u, v, argb + 1); in VP8YuvToArgb()
|
D | upsampling_mips_dsp_r2.c | 80 uint8_t* const argb) { in YuvToRgba4444() argument 87 argb[0] = ba; in YuvToRgba4444() 88 argb[1] = rg; in YuvToRgba4444() 90 argb[0] = rg; in YuvToRgba4444() 91 argb[1] = ba; in YuvToRgba4444() 102 uint8_t* const argb) { in YuvToArgb() argument 105 argb[0] = 0xff; in YuvToArgb() 106 argb[1] = r; in YuvToArgb() 107 argb[2] = g; in YuvToArgb() 108 argb[3] = b; in YuvToArgb()
|
/external/pdfium/core/fxge/dib/ |
D | fx_dib_main.cpp | 77 std::tuple<int, int, int, int> ArgbDecode(FX_ARGB argb) { in ArgbDecode() argument 78 return std::make_tuple(FXARGB_A(argb), FXARGB_R(argb), FXARGB_G(argb), in ArgbDecode() 79 FXARGB_B(argb)); in ArgbDecode() 82 std::pair<int, FX_COLORREF> ArgbToColorRef(FX_ARGB argb) { in ArgbToColorRef() argument 83 return {FXARGB_A(argb), in ArgbToColorRef() 84 FXSYS_RGB(FXARGB_R(argb), FXARGB_G(argb), FXARGB_B(argb))}; in ArgbToColorRef()
|
/external/libyuv/files/source/ |
D | compare.cc | 65 static uint32 ARGBDetectRow_C(const uint8* argb, int width) { in ARGBDetectRow_C() argument 68 if (argb[0] != 255) { // First byte is not Alpha of 255, so not ARGB. in ARGBDetectRow_C() 71 if (argb[3] != 255) { // 4th byte is not Alpha of 255, so not BGRA. in ARGBDetectRow_C() 74 if (argb[4] != 255) { // Second pixel first byte is not Alpha of 255. in ARGBDetectRow_C() 77 if (argb[7] != 255) { // Second pixel 4th byte is not Alpha of 255. in ARGBDetectRow_C() 80 argb += 8; in ARGBDetectRow_C() 83 if (argb[0] != 255) { // First byte is not Alpha of 255, so not ARGB. in ARGBDetectRow_C() 86 if (argb[3] != 255) { // 4th byte is not Alpha of 255, so not BGRA. in ARGBDetectRow_C() 96 uint32 ARGBDetect(const uint8* argb, int stride_argb, int width, int height) { in ARGBDetect() argument 107 fourcc = ARGBDetectRow_C(argb, width); in ARGBDetect() [all …]
|
D | convert_jpeg.cc | 186 uint8* argb; member 198 dest->argb, dest->argb_stride, dest->w, rows); in JpegI420ToARGB() 199 dest->argb += rows * dest->argb_stride; in JpegI420ToARGB() 209 dest->argb, dest->argb_stride, dest->w, rows); in JpegI422ToARGB() 210 dest->argb += rows * dest->argb_stride; in JpegI422ToARGB() 220 dest->argb, dest->argb_stride, dest->w, rows); in JpegI444ToARGB() 221 dest->argb += rows * dest->argb_stride; in JpegI444ToARGB() 230 I400ToARGB(data[0], strides[0], dest->argb, dest->argb_stride, dest->w, rows); in JpegI400ToARGB() 231 dest->argb += rows * dest->argb_stride; in JpegI400ToARGB() 240 uint8* argb, in MJPGToARGB() argument [all …]
|
/external/skqp/src/compute/color/ |
D | color.c | 34 color_argb32_to_rgba_f32(float rgba[4], const uint32_t argb) in color_argb32_to_rgba_f32() argument 36 rgba[2] = (float)(argb & 0xFF) / 255.0f; // b in color_argb32_to_rgba_f32() 37 rgba[1] = (float)(argb >> 8 & 0xFF) / 255.0f; // g in color_argb32_to_rgba_f32() 38 rgba[0] = (float)(argb >> 16 & 0xFF) / 255.0f; // r in color_argb32_to_rgba_f32() 39 rgba[3] = (float)(argb >> 24 & 0xFF) / 255.0f; // a in color_argb32_to_rgba_f32()
|
/external/skia/src/compute/color/ |
D | color.c | 34 color_argb32_to_rgba_f32(float rgba[4], const uint32_t argb) in color_argb32_to_rgba_f32() argument 36 rgba[2] = (float)(argb & 0xFF) / 255.0f; // b in color_argb32_to_rgba_f32() 37 rgba[1] = (float)(argb >> 8 & 0xFF) / 255.0f; // g in color_argb32_to_rgba_f32() 38 rgba[0] = (float)(argb >> 16 & 0xFF) / 255.0f; // r in color_argb32_to_rgba_f32() 39 rgba[3] = (float)(argb >> 24 & 0xFF) / 255.0f; // a in color_argb32_to_rgba_f32()
|
/external/libaom/libaom/third_party/libyuv/source/ |
D | convert_jpeg.cc | 226 uint8* argb; member 240 dest->argb, dest->argb_stride, in JpegI420ToARGB() 242 dest->argb += rows * dest->argb_stride; in JpegI420ToARGB() 254 dest->argb, dest->argb_stride, in JpegI422ToARGB() 256 dest->argb += rows * dest->argb_stride; in JpegI422ToARGB() 268 dest->argb, dest->argb_stride, in JpegI444ToARGB() 270 dest->argb += rows * dest->argb_stride; in JpegI444ToARGB() 282 dest->argb, dest->argb_stride, in JpegI411ToARGB() 284 dest->argb += rows * dest->argb_stride; in JpegI411ToARGB() 294 dest->argb, dest->argb_stride, in JpegI400ToARGB() [all …]
|
D | compare.cc | 82 static uint32 ARGBDetectRow_C(const uint8* argb, int width) { in ARGBDetectRow_C() argument 85 if (argb[0] != 255) { // First byte is not Alpha of 255, so not ARGB. in ARGBDetectRow_C() 88 if (argb[3] != 255) { // 4th byte is not Alpha of 255, so not BGRA. in ARGBDetectRow_C() 91 if (argb[4] != 255) { // Second pixel first byte is not Alpha of 255. in ARGBDetectRow_C() 94 if (argb[7] != 255) { // Second pixel 4th byte is not Alpha of 255. in ARGBDetectRow_C() 97 argb += 8; in ARGBDetectRow_C() 100 if (argb[0] != 255) { // First byte is not Alpha of 255, so not ARGB. in ARGBDetectRow_C() 103 if (argb[3] != 255) { // 4th byte is not Alpha of 255, so not BGRA. in ARGBDetectRow_C() 113 uint32 ARGBDetect(const uint8* argb, int stride_argb, int width, int height) { in ARGBDetect() argument 124 fourcc = ARGBDetectRow_C(argb, width); in ARGBDetect() [all …]
|
/external/libvpx/libvpx/third_party/libyuv/source/ |
D | compare.cc | 66 static uint32_t ARGBDetectRow_C(const uint8_t* argb, int width) { in ARGBDetectRow_C() argument 69 if (argb[0] != 255) { // First byte is not Alpha of 255, so not ARGB. in ARGBDetectRow_C() 72 if (argb[3] != 255) { // 4th byte is not Alpha of 255, so not BGRA. in ARGBDetectRow_C() 75 if (argb[4] != 255) { // Second pixel first byte is not Alpha of 255. in ARGBDetectRow_C() 78 if (argb[7] != 255) { // Second pixel 4th byte is not Alpha of 255. in ARGBDetectRow_C() 81 argb += 8; in ARGBDetectRow_C() 84 if (argb[0] != 255) { // First byte is not Alpha of 255, so not ARGB. in ARGBDetectRow_C() 87 if (argb[3] != 255) { // 4th byte is not Alpha of 255, so not BGRA. in ARGBDetectRow_C() 97 uint32_t ARGBDetect(const uint8_t* argb, in ARGBDetect() argument 111 fourcc = ARGBDetectRow_C(argb, width); in ARGBDetect() [all …]
|
/external/pdfium/core/fpdfapi/render/ |
D | cpdf_renderoptions.cpp | 24 FX_ARGB CPDF_RenderOptions::TranslateColor(FX_ARGB argb) const { in TranslateColor() 26 return argb; in TranslateColor() 28 return argb; in TranslateColor() 34 std::tie(a, r, g, b) = ArgbDecode(argb); in TranslateColor()
|