/external/deqp/framework/delibs/deimage/ |
deARGB.h | 29 /* ARGB color in descending A, R, G, B order (alpha is in most significant byte). */ 44 DE_INLINE int deARGB_getRed (deARGB argb) { return (int)((argb >> 16) & 0xFF); } 45 DE_INLINE int deARGB_getGreen (deARGB argb) { return (int)((argb >> 8) & 0xFF); } 46 DE_INLINE int deARGB_getBlue (deARGB argb) { return (int)((argb >> 0) & 0xFF); } 47 DE_INLINE int deARGB_getAlpha (deARGB argb) { return (int)((argb >> 24) & 0xFF); } 49 DE_INLINE deARGB deARGB_multiply (deARGB argb, int f [all...] |
/external/opencv3/3rdparty/libwebp/utils/ |
color_cache.h | 39 uint32_t argb) { 40 const uint32_t key = (kHashMul * argb) >> cc->hash_shift_; 41 cc->colors_[key] = argb; 45 uint32_t argb) { 46 return (kHashMul * argb) >> cc->hash_shift_; 50 uint32_t argb) { 51 const uint32_t key = (kHashMul * argb) >> cc->hash_shift_; 52 return cc->colors_[key] == argb;
|
/external/clang/test/Parser/ |
function-decls.c | 8 X = sizeof(void (*(int arga, void (*argb)(double Y)))(void* Z));
|
/external/skia/src/images/ |
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*) { 29 argb[0] = SkGetPackedA32(c); 30 argb[1] = SkGetPackedR32(c); 31 argb[2] = SkGetPackedG32(c); 32 argb[3] = SkGetPackedB32(c); 33 argb += 4; 37 static void RGB_565_To_ARGB(const uint8_t* in, uint8_t* argb, int width, const SkPMColor*) { 41 argb[0] = 0xFF; 42 argb[1] = SkPacked16ToR32(c) 105 uint8_t* argb = ada.get(); local [all...] |
/external/webp/src/utils/ |
color_cache.h | 40 uint32_t key, uint32_t argb) { 42 cc->colors_[key] = argb; 46 uint32_t argb) { 47 const uint32_t key = (kHashMul * argb) >> cc->hash_shift_; 48 cc->colors_[key] = argb; 52 uint32_t argb) { 53 return (kHashMul * argb) >> cc->hash_shift_; 57 uint32_t argb) { 58 const uint32_t key = (kHashMul * argb) >> cc->hash_shift_; 59 return (cc->colors_[key] == argb); [all...] |
/external/valgrind/memcheck/tests/ |
inltemplate.cpp | 19 static INLINE T temp_member_func_b(T argb) { 21 if (argb > 0) 22 locb += argb;
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
ColorUtils.java | 24 public static float brightness(int argb) { 25 int r = (argb >> 16) & 0xFF; 26 int g = (argb >> 8) & 0xFF; 27 int b = argb & 0xFF; 34 public static float hue(int argb) { 35 int r = (argb >> 16) & 0xFF; 36 int g = (argb >> 8) & 0xFF; 37 int b = argb & 0xFF;
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowColor.java | 12 return argb(0xff, red, green, blue); 16 public static int argb(int alpha, int red, int green, int blue) { method in class:ShadowColor
|
/external/pdfium/public/ |
fpdf_edit.h | 22 #define FPDF_GetBValue(argb) ((uint8_t)(argb)) 23 #define FPDF_GetGValue(argb) ((uint8_t)(((uint16_t)(argb)) >> 8)) 24 #define FPDF_GetRValue(argb) ((uint8_t)((argb) >> 16)) 25 #define FPDF_GetAValue(argb) ((uint8_t)((argb) >> 24))
|
/external/webp/src/dsp/ |
lossless.c | 241 const uint32_t argb = data[i]; local 242 const uint32_t green = ((argb >> 8) & 0xff); 243 uint32_t red_blue = (argb & 0x00ff00ffu); 246 data[i] = (argb & 0xff00ff00u) | red_blue; 266 const uint32_t argb = data[i]; local 267 const uint32_t green = argb >> 8; 268 const uint32_t red = argb >> 16; 270 uint32_t new_blue = argb; 276 data[i] = (argb & 0xff00ff00u) | (new_red << 16) | (new_blue); 314 // We define two methods for ARGB data (uint32_t) and alpha-only data (uint8_t) 420 const uint32_t argb = *src++; local 431 const uint32_t argb = *src++; local 443 const uint32_t argb = *src++; local 460 const uint32_t argb = *src++; local 477 const uint32_t argb = *src++; local 489 const uint32_t argb = *src++; local [all...] |
lossless_enc_mips_dsp_r2.c | 84 uint32_t argb, argb1, new_red, new_red1; local 104 "lw %[argb], 0(%[data]) \n\t" 108 "precrq.qb.ph %[temp3], %[argb], %[argb1] \n\t" 109 "precr.qb.ph %[temp4], %[argb], %[argb1] \n\t" 121 "ins %[argb1], %[argb], 16, 16 \n\t" 142 [argb]"=&r"(argb), [argb1]"=&r"(argb1), [data]"+&r"(data) 165 uint32_t argb) { 166 const uint32_t green = argb >> 8; 167 const uint32_t red = argb >> 16 [all...] |
alpha_processing_mips_dsp_r2.c | 89 const uint32_t argb = ptr[x]; local 90 if (argb < 0xff000000u) { // alpha < 255 91 if (argb <= 0x00ffffffu) { // alpha == 0 96 "srl %[alpha], %[argb], 24 \n\t" 103 "andi %[temp1], %[argb], 0xff \n\t" 104 "ext %[temp2], %[argb], 8, 8 \n\t" 105 "ext %[temp3], %[argb], 16, 8 \n\t" 112 "precrq.ph.w %[temp3], %[argb], %[temp3] \n\t" 118 [c_ff000000]"r"(c_ff000000), [argb]"r"(argb) [all...] |
lossless_enc_neon.c | 39 static WEBP_INLINE uint8x16_t DoGreenShuffle(const uint8x16_t argb, 41 return vcombine_u8(vtbl1q_u8(argb, vget_low_u8(shuffle)), 42 vtbl1q_u8(argb, vget_high_u8(shuffle))); 48 static WEBP_INLINE uint8x16_t DoGreenShuffle(const uint8x16_t argb, 50 return vcombine_u8(vtbl1_u8(vget_low_u8(argb), shuffle), 51 vtbl1_u8(vget_high_u8(argb), shuffle)); 63 const uint8x16_t argb = vld1q_u8((uint8_t*)argb_data); local 64 const uint8x16_t greens = DoGreenShuffle(argb, shuffle); 65 vst1q_u8((uint8_t*)argb_data, vsubq_u8(argb, greens));
|
alpha_processing_sse41.c | 22 static int ExtractAlpha(const uint8_t* argb, int argb_stride, 45 const __m128i* src = (const __m128i*)argb; 47 // load 64 argb bytes 66 const uint32_t alpha_value = argb[4 * i]; 70 argb += argb_stride;
|
lossless_enc.c | 532 static WEBP_INLINE void UpdateHisto(int histo_argb[4][256], uint32_t argb) { 533 ++histo_argb[0][argb >> 24]; 534 ++histo_argb[1][(argb >> 16) & 0xff]; 535 ++histo_argb[2][(argb >> 8) & 0xff]; 536 ++histo_argb[3][argb & 0xff]; 621 uint32_t* const argb, 638 memcpy(current_row, argb + y * width, sizeof(*current_row) * width); 639 current_row[width] = (y + 1 < height) ? argb[(y + 1) * width] : ARGB_BLACK; 645 argb[y * width + x] = VP8LSubPixels(current_row[x], predict); 667 argb[y * width + x] = residual 716 const uint32_t argb = argb_data[i]; local 754 const uint32_t argb = data[i]; local [all...] |
/external/opencv3/3rdparty/libwebp/dsp/ |
lossless.c | 580 uint32_t* const argb) { 608 argb[pix] = VP8LSubPixels(current_row[col], predict); 614 uint32_t* const argb, uint32_t* const argb_scratch, 633 memcpy(current_tile_rows, &argb[tile_y_offset * width], 647 argb_scratch, argb); 657 const uint32_t a = argb[ix]; 735 const uint32_t argb = argb_data[i]; local 736 const uint32_t green = (argb >> 8) & 0xff; 737 const uint32_t new_r = (((argb >> 16) & 0xff) - green) & 0xff; 738 const uint32_t new_b = ((argb & 0xff) - green) & 0xff 763 const uint32_t argb = *data; local 1213 const uint32_t argb = *src++; local 1224 const uint32_t argb = *src++; local 1236 const uint32_t argb = *src++; local 1253 const uint32_t argb = *src++; local 1270 const uint32_t argb = *src++; local 1282 uint32_t argb = *src++; local [all...] |
/external/opencv3/3rdparty/libwebp/enc/ |
backward_references.c | 110 static WEBP_INLINE uint64_t GetPixPairHash64(const uint32_t* const argb) { 111 uint64_t key = ((uint64_t)(argb[1]) << 32) | argb[0]; 140 const uint32_t* const argb, int pos) { 141 const uint64_t hash_code = GetPixPairHash64(argb); 166 const uint32_t* const argb, int maxlen, 170 const uint32_t* const argb_start = argb + base_position; 191 if (argb[pos + best_length - 1] != argb_start[best_length - 1]) { 194 curr_length = FindMatchLength(argb + pos, argb_start, maxlen); 243 const uint32_t* const argb, [all...] |
/external/webp/src/enc/ |
backward_references.c | 229 static WEBP_INLINE uint32_t GetPixPairHash64(const uint32_t* const argb) { 231 key = argb[1] * HASH_MULTIPLIER_HI; 232 key += argb[0] * HASH_MULTIPLIER_LO; 239 const uint32_t* const argb, int pos) { 240 const uint32_t hash_code = GetPixPairHash64(argb); 265 const uint32_t* const argb, int len, 267 const uint32_t* const argb_start = argb + base_position; 276 FindMatchLength(argb + pos, argb_start, len - 1, len); 284 const uint32_t* const argb, int max_len, 288 const uint32_t* const argb_start = argb + base_position [all...] |
picture_tools.c | 83 if (is_transparent_argb_area(pic->argb + off, pic->argb_stride, SIZE)) { 85 argb_value = pic->argb[off]; 88 flatten_argb(pic->argb + off, argb_value, pic->argb_stride, SIZE); 127 uint32_t* argb; local 131 argb = pic->argb; 135 if ((argb[x] & 0xff000000) == 0) { 136 argb[x] = 0x00000000; 139 argb += pic->argb_stride; 199 uint32_t* argb = pic->argb local [all...] |
near_lossless.c | 99 static void NearLossless(int xsize, int ysize, uint32_t* argb, 106 memcpy(copy_buffer, argb, xsize * 2 * sizeof(argb[0])); 109 uint32_t* const curr_argb_row = argb + y * xsize; 111 memcpy(next_row, next_argb_row, xsize * sizeof(argb[0])); 138 int VP8ApplyNearLossless(int xsize, int ysize, uint32_t* argb, int quality) { 143 assert(argb != NULL); 156 NearLossless(xsize, ysize, argb, i, copy_buffer);
|
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/texturepacker/ |
ColorBleedEffect.java | 73 color.argb = rgb[currentPixelIndex]; 83 rgb[pixelIndex] = color.argb; 105 color.argb = rgb[i]; 157 int argb = 0xff000000; field in class:ColorBleedEffect.ARGBColor 160 return (argb >> 16) & 0xFF; 164 return (argb >> 8) & 0xFF; 168 return (argb >> 0) & 0xFF; 172 return (argb >> 24) & 0xff; 178 argb = ((a & 0xFF) << 24) | ((r & 0xFF) << 16) | ((g & 0xFF) << 8) | ((b & 0xFF) << 0);
|
/external/skia/experimental/docs/ |
utilities.js | 5 function argb(a, r, g, b) { function
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
ColorPreference.java | 88 final int argb = getValue(); local 89 if (Color.alpha(argb) < 255) { 96 mPreviewColor = new ColorDrawable(argb); 99 mPreviewColor.setColor(argb); 115 final int argb = getValueAt(index); local 116 final int alpha = Color.alpha(argb); 127 ((ColorDrawable) foreground).setColor(argb); 129 swatch.setImageDrawable(new ColorDrawable(argb));
|
/external/pdfium/core/include/fxge/ |
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)) 95 #define FXARGB_R(argb) ((uint8_t)((argb) >> 16)) 96 #define FXARGB_G(argb) ((uint8_t)((argb) >> 8)) 97 #define FXARGB_B(argb) ((uint8_t)(argb)) [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
LightingColorFilterTest.java | 57 paint.setColorFilter(new LightingColorFilter(Color.TRANSPARENT, Color.argb(0, 0, 0xFF, 0))); 68 paint.setColor(Color.argb(255, 60, 20, 40)); 72 assertColor(Color.argb(255, 30, 30, 30), bitmap.getPixel(0, 0)); 76 paint.setColor(Color.argb(0x80, 60, 20, 40)); 80 assertColor(Color.argb(0x80, 30, 30, 30), bitmap.getPixel(0, 0));
|