/external/skia/src/images/ |
D | SkImageEncoder_argb.cpp | 22 typedef void (*ScanlineImporter)(const uint8_t* in, uint8_t* argb, int width, 25 static void ARGB_8888_To_ARGB(const uint8_t* in, uint8_t* argb, int width, const SkPMColor*) { in ARGB_8888_To_ARGB() argument 29 argb[0] = SkGetPackedA32(c); in ARGB_8888_To_ARGB() 30 argb[1] = SkGetPackedR32(c); in ARGB_8888_To_ARGB() 31 argb[2] = SkGetPackedG32(c); in ARGB_8888_To_ARGB() 32 argb[3] = SkGetPackedB32(c); in ARGB_8888_To_ARGB() 33 argb += 4; in ARGB_8888_To_ARGB() 37 static void RGB_565_To_ARGB(const uint8_t* in, uint8_t* argb, int width, const SkPMColor*) { in RGB_565_To_ARGB() argument 41 argb[0] = 0xFF; in RGB_565_To_ARGB() 42 argb[1] = SkPacked16ToR32(c); in RGB_565_To_ARGB() [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/opencv3/3rdparty/libwebp/dsp/ |
D | lossless.c | 580 uint32_t* const argb) { in CopyTileWithPrediction() argument 608 argb[pix] = VP8LSubPixels(current_row[col], predict); in CopyTileWithPrediction() 614 uint32_t* const argb, uint32_t* const argb_scratch, in VP8LResidualImage() argument 633 memcpy(current_tile_rows, &argb[tile_y_offset * width], in VP8LResidualImage() 647 argb_scratch, argb); in VP8LResidualImage() 657 const uint32_t a = argb[ix]; in VP8LResidualImage() 735 const uint32_t argb = argb_data[i]; in VP8LSubtractGreenFromBlueAndRed() local 736 const uint32_t green = (argb >> 8) & 0xff; in VP8LSubtractGreenFromBlueAndRed() 737 const uint32_t new_r = (((argb >> 16) & 0xff) - green) & 0xff; in VP8LSubtractGreenFromBlueAndRed() 738 const uint32_t new_b = ((argb & 0xff) - green) & 0xff; in VP8LSubtractGreenFromBlueAndRed() [all …]
|
D | yuv.h | 112 uint8_t* const argb) { in VP8YuvToRgba4444() argument 120 argb[0] = ba; in VP8YuvToRgba4444() 121 argb[1] = rg; in VP8YuvToRgba4444() 123 argb[0] = rg; in VP8YuvToRgba4444() 124 argb[1] = ba; in VP8YuvToRgba4444() 193 uint8_t* const argb) { in VP8YuvToRgba4444() argument 200 argb[0] = ba; in VP8YuvToRgba4444() 201 argb[1] = rg; in VP8YuvToRgba4444() 203 argb[0] = rg; in VP8YuvToRgba4444() 204 argb[1] = ba; in VP8YuvToRgba4444() [all …]
|
/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/enc/ |
D | backward_references.c | 229 static WEBP_INLINE uint32_t GetPixPairHash64(const uint32_t* const argb) { in GetPixPairHash64() argument 231 key = argb[1] * HASH_MULTIPLIER_HI; in GetPixPairHash64() 232 key += argb[0] * HASH_MULTIPLIER_LO; in GetPixPairHash64() 239 const uint32_t* const argb, int pos) { in HashChainInsert() argument 240 const uint32_t hash_code = GetPixPairHash64(argb); in HashChainInsert() 265 const uint32_t* const argb, int len, in HashChainFindOffset() argument 267 const uint32_t* const argb_start = argb + base_position; in HashChainFindOffset() 276 FindMatchLength(argb + pos, argb_start, len - 1, len); in HashChainFindOffset() 284 const uint32_t* const argb, int max_len, in HashChainFindCopy() argument 288 const uint32_t* const argb_start = argb + base_position; in HashChainFindCopy() [all …]
|
D | picture_tools.c | 83 if (is_transparent_argb_area(pic->argb + off, pic->argb_stride, SIZE)) { in WebPCleanupTransparentArea() 85 argb_value = pic->argb[off]; in WebPCleanupTransparentArea() 88 flatten_argb(pic->argb + off, argb_value, pic->argb_stride, SIZE); in WebPCleanupTransparentArea() 127 uint32_t* argb; in WebPCleanupTransparentAreaLossless() local 131 argb = pic->argb; in WebPCleanupTransparentAreaLossless() 135 if ((argb[x] & 0xff000000) == 0) { in WebPCleanupTransparentAreaLossless() 136 argb[x] = 0x00000000; in WebPCleanupTransparentAreaLossless() 139 argb += pic->argb_stride; in WebPCleanupTransparentAreaLossless() 199 uint32_t* argb = pic->argb; in WebPBlendAlpha() local 203 const int alpha = (argb[x] >> 24) & 0xff; in WebPBlendAlpha() [all …]
|
D | near_lossless.c | 99 static void NearLossless(int xsize, int ysize, uint32_t* argb, in NearLossless() argument 106 memcpy(copy_buffer, argb, xsize * 2 * sizeof(argb[0])); in NearLossless() 109 uint32_t* const curr_argb_row = argb + y * xsize; in NearLossless() 111 memcpy(next_row, next_argb_row, xsize * sizeof(argb[0])); in NearLossless() 138 int VP8ApplyNearLossless(int xsize, int ysize, uint32_t* argb, int quality) { in VP8ApplyNearLossless() argument 143 assert(argb != NULL); in VP8ApplyNearLossless() 156 NearLossless(xsize, ysize, argb, i, copy_buffer); in VP8ApplyNearLossless()
|
D | picture_rescale.c | 74 WebPCopyPlane((const uint8_t*)src->argb, 4 * src->argb_stride, in WebPPictureCopy() 75 (uint8_t*)dst->argb, 4 * dst->argb_stride, in WebPPictureCopy() 113 dst->argb = src->argb + top * src->argb_stride + left; in WebPPictureView() 151 (const uint8_t*)(pic->argb + top * pic->argb_stride + left); in WebPPictureCrop() 152 WebPCopyPlane(src, pic->argb_stride * 4, (uint8_t*)tmp.argb, in WebPPictureCrop() 182 assert(pic->argb != NULL); in AlphaMultiplyARGB() 183 WebPMultARGBRows((uint8_t*)pic->argb, pic->argb_stride * sizeof(*pic->argb), in AlphaMultiplyARGB() 251 RescalePlane((const uint8_t*)pic->argb, prev_width, prev_height, in WebPPictureRescale() 253 (uint8_t*)tmp.argb, width, height, in WebPPictureRescale()
|
/external/opencv3/3rdparty/libwebp/enc/ |
D | backward_references.c | 110 static WEBP_INLINE uint64_t GetPixPairHash64(const uint32_t* const argb) { in GetPixPairHash64() argument 111 uint64_t key = ((uint64_t)(argb[1]) << 32) | argb[0]; in GetPixPairHash64() 140 const uint32_t* const argb, int pos) { in HashChainInsert() argument 141 const uint64_t hash_code = GetPixPairHash64(argb); in HashChainInsert() 166 const uint32_t* const argb, int maxlen, in HashChainFindCopy() argument 170 const uint32_t* const argb_start = argb + base_position; in HashChainFindCopy() 191 if (argb[pos + best_length - 1] != argb_start[best_length - 1]) { in HashChainFindCopy() 194 curr_length = FindMatchLength(argb + pos, argb_start, maxlen); in HashChainFindCopy() 243 const uint32_t* const argb, in BackwardReferencesRle() argument 250 refs->refs[refs->size++] = PixOrCopyCreateLiteral(argb[0]); in BackwardReferencesRle() [all …]
|
D | picture.c | 32 uint32_t argb; member 129 memory = WebPSafeMalloc(argb_size, sizeof(*picture->argb)); in WebPPictureAlloc() 134 picture->argb = (uint32_t*)memory; in WebPPictureAlloc() 144 picture->argb = NULL; in PictureResetARGB() 180 picture->argb = tmp.argb; in PictureAllocARGB() 263 CopyPlane((const uint8_t*)src->argb, 4 * src->argb_stride, in WebPPictureCopy() 264 (uint8_t*)dst->argb, 4 * dst->argb_stride, in WebPPictureCopy() 311 dst->argb = src->argb + top * src->argb_stride + left; in WebPPictureView() 363 (const uint8_t*)(pic->argb + top * pic->argb_stride + left); in WebPPictureCrop() 365 (uint8_t*)tmp.argb, tmp.argb_stride * 4, in WebPPictureCrop() [all …]
|
/external/webp/src/dsp/ |
D | lossless_enc.c | 532 static WEBP_INLINE void UpdateHisto(int histo_argb[4][256], uint32_t argb) { in UpdateHisto() argument 533 ++histo_argb[0][argb >> 24]; in UpdateHisto() 534 ++histo_argb[1][(argb >> 16) & 0xff]; in UpdateHisto() 535 ++histo_argb[2][(argb >> 8) & 0xff]; in UpdateHisto() 536 ++histo_argb[3][argb & 0xff]; in UpdateHisto() 621 uint32_t* const argb, in CopyImageWithPrediction() argument 638 memcpy(current_row, argb + y * width, sizeof(*current_row) * width); in CopyImageWithPrediction() 639 current_row[width] = (y + 1 < height) ? argb[(y + 1) * width] : ARGB_BLACK; in CopyImageWithPrediction() 645 argb[y * width + x] = VP8LSubPixels(current_row[x], predict); in CopyImageWithPrediction() 667 argb[y * width + x] = residual; in CopyImageWithPrediction() [all …]
|
D | lossless.c | 241 const uint32_t argb = data[i]; in VP8LAddGreenToBlueAndRed_C() local 242 const uint32_t green = ((argb >> 8) & 0xff); in VP8LAddGreenToBlueAndRed_C() 243 uint32_t red_blue = (argb & 0x00ff00ffu); in VP8LAddGreenToBlueAndRed_C() 246 data[i] = (argb & 0xff00ff00u) | red_blue; in VP8LAddGreenToBlueAndRed_C() 266 const uint32_t argb = data[i]; in VP8LTransformColorInverse_C() local 267 const uint32_t green = argb >> 8; in VP8LTransformColorInverse_C() 268 const uint32_t red = argb >> 16; in VP8LTransformColorInverse_C() 270 uint32_t new_blue = argb; in VP8LTransformColorInverse_C() 276 data[i] = (argb & 0xff00ff00u) | (new_red << 16) | (new_blue); in VP8LTransformColorInverse_C() 420 const uint32_t argb = *src++; in VP8LConvertBGRAToRGB_C() local [all …]
|
D | lossless_enc_mips_dsp_r2.c | 84 uint32_t argb, argb1, new_red, new_red1; in TransformColor() local 142 [argb]"=&r"(argb), [argb1]"=&r"(argb1), [data]"+&r"(data) in TransformColor() 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(const uint32_t* argb, int stride, in CollectColorBlueTransforms() argument 183 const uint32_t* p_argb = argb; in CollectColorBlueTransforms() 184 argb += stride; in CollectColorBlueTransforms() 218 uint32_t argb) { in TransformColorRed() argument [all …]
|
D | lossless_enc_neon.c | 39 static WEBP_INLINE uint8x16_t DoGreenShuffle(const uint8x16_t argb, in DoGreenShuffle() argument 41 return vcombine_u8(vtbl1q_u8(argb, vget_low_u8(shuffle)), in DoGreenShuffle() 42 vtbl1q_u8(argb, vget_high_u8(shuffle))); in DoGreenShuffle() 48 static WEBP_INLINE uint8x16_t DoGreenShuffle(const uint8x16_t argb, in DoGreenShuffle() argument 50 return vcombine_u8(vtbl1_u8(vget_low_u8(argb), shuffle), in DoGreenShuffle() 51 vtbl1_u8(vget_high_u8(argb), shuffle)); in DoGreenShuffle() 63 const uint8x16_t argb = vld1q_u8((uint8_t*)argb_data); in SubtractGreenFromBlueAndRed() local 64 const uint8x16_t greens = DoGreenShuffle(argb, shuffle); in SubtractGreenFromBlueAndRed() 65 vst1q_u8((uint8_t*)argb_data, vsubq_u8(argb, greens)); in SubtractGreenFromBlueAndRed()
|
D | alpha_processing.c | 140 const uint32_t argb = ptr[x]; in WebPMultARGBRowC() local 141 if (argb < 0xff000000u) { // alpha < 255 in WebPMultARGBRowC() 142 if (argb <= 0x00ffffffu) { // alpha == 0 in WebPMultARGBRowC() 145 const uint32_t alpha = (argb >> 24) & 0xff; in WebPMultARGBRowC() 147 uint32_t out = argb & 0xff000000u; in WebPMultARGBRowC() 148 out |= Mult(argb >> 0, scale) << 0; in WebPMultARGBRowC() 149 out |= Mult(argb >> 8, scale) << 8; in WebPMultARGBRowC() 150 out |= Mult(argb >> 16, scale) << 16; in WebPMultARGBRowC() 319 static int ExtractAlpha(const uint8_t* argb, int argb_stride, in ExtractAlpha() argument 327 const uint8_t alpha_value = argb[4 * i]; in ExtractAlpha() [all …]
|
D | yuv.h | 124 uint8_t* const argb) { in VP8YuvToRgba4444() argument 131 argb[0] = ba; in VP8YuvToRgba4444() 132 argb[1] = rg; in VP8YuvToRgba4444() 134 argb[0] = rg; in VP8YuvToRgba4444() 135 argb[1] = ba; in VP8YuvToRgba4444() 143 uint8_t* const argb) { in VP8YuvToArgb() argument 144 argb[0] = 0xff; in VP8YuvToArgb() 145 VP8YuvToRgb(y, u, v, argb + 1); in VP8YuvToArgb()
|
D | alpha_processing_mips_dsp_r2.c | 89 const uint32_t argb = ptr[x]; in MultARGBRow() local 90 if (argb < 0xff000000u) { // alpha < 255 in MultARGBRow() 91 if (argb <= 0x00ffffffu) { // alpha == 0 in MultARGBRow() 118 [c_ff000000]"r"(c_ff000000), [argb]"r"(argb) in MultARGBRow()
|
D | upsampling_mips_dsp_r2.c | 83 uint8_t* const argb) { 90 argb[0] = ba; 91 argb[1] = rg; 93 argb[0] = rg; 94 argb[1] = ba; 104 uint8_t* const argb) { 107 argb[0] = 0xff; 108 argb[1] = r; 109 argb[2] = g; 110 argb[3] = b;
|
/external/webp/src/utils/ |
D | color_cache.h | 40 uint32_t key, uint32_t argb) { in VP8LColorCacheSet() argument 42 cc->colors_[key] = argb; in VP8LColorCacheSet() 46 uint32_t argb) { in VP8LColorCacheInsert() argument 47 const uint32_t key = (kHashMul * argb) >> cc->hash_shift_; in VP8LColorCacheInsert() 48 cc->colors_[key] = argb; in VP8LColorCacheInsert() 52 uint32_t argb) { in VP8LColorCacheGetIndex() argument 53 return (kHashMul * argb) >> cc->hash_shift_; in VP8LColorCacheGetIndex() 57 uint32_t argb) { in VP8LColorCacheContains() argument 58 const uint32_t key = (kHashMul * argb) >> cc->hash_shift_; in VP8LColorCacheContains() 59 return (cc->colors_[key] == argb); in VP8LColorCacheContains()
|
/external/opencv3/3rdparty/libwebp/utils/ |
D | color_cache.h | 39 uint32_t argb) { in VP8LColorCacheInsert() argument 40 const uint32_t key = (kHashMul * argb) >> cc->hash_shift_; in VP8LColorCacheInsert() 41 cc->colors_[key] = argb; in VP8LColorCacheInsert() 45 uint32_t argb) { in VP8LColorCacheGetIndex() argument 46 return (kHashMul * argb) >> cc->hash_shift_; in VP8LColorCacheGetIndex() 50 uint32_t argb) { in VP8LColorCacheContains() argument 51 const uint32_t key = (kHashMul * argb) >> cc->hash_shift_; in VP8LColorCacheContains() 52 return cc->colors_[key] == argb; in VP8LColorCacheContains()
|
/external/pdfium/core/include/fxge/ |
D | fx_dib.h | 88 void ArgbDecode(FX_ARGB argb, int& a, int& r, int& g, int& b); 89 void ArgbDecode(FX_ARGB argb, int& a, FX_COLORREF& rgb); 94 #define FXARGB_A(argb) ((uint8_t)((argb) >> 24)) argument 95 #define FXARGB_R(argb) ((uint8_t)((argb) >> 16)) argument 96 #define FXARGB_G(argb) ((uint8_t)((argb) >> 8)) argument 97 #define FXARGB_B(argb) ((uint8_t)(argb)) argument 100 #define FXARGB_MUL_ALPHA(argb, alpha) \ argument 101 (((((argb) >> 24) * (alpha) / 255) << 24) | ((argb)&0xffffff)) 120 #define FXARGB_SETDIB(p, argb) \ argument 121 ((uint8_t*)(p))[0] = (uint8_t)(argb), \ [all …]
|
/external/pdfium/public/ |
D | fpdf_edit.h | 22 #define FPDF_GetBValue(argb) ((uint8_t)(argb)) argument 23 #define FPDF_GetGValue(argb) ((uint8_t)(((uint16_t)(argb)) >> 8)) argument 24 #define FPDF_GetRValue(argb) ((uint8_t)((argb) >> 16)) argument 25 #define FPDF_GetAValue(argb) ((uint8_t)((argb) >> 24)) argument
|
/external/libvpx/libvpx/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 …]
|