Home
last modified time | relevance | path

Searched refs:argb (Results 1 – 25 of 68) sorted by relevance

123

/external/skia/src/images/
DSkImageEncoder_argb.cpp22 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/pdfium/fpdfsdk/include/
Dfsdk_define.h38 #define FX_GetAValue(argb) ((argb & 0xFF000000) >> 24) argument
43 #define FX_GetRValue(argb) ((argb & 0x00FF0000) >> 16) argument
48 #define FX_GetGValue(argb) ((argb & 0x0000FF00) >> 8) argument
53 #define FX_GetBValue(argb) (argb & 0x000000FF) argument
58 #define FX_ARGBTOCOLORREF(argb) ((((FX_DWORD)argb & 0x00FF0000) >> 16)|((FX_DWORD)argb & 0x0000FF0… argument
/external/deqp/framework/delibs/deimage/
DdeARGB.h44 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/dsp/
Dlossless.c595 static WEBP_INLINE void UpdateHisto(int histo_argb[4][256], uint32_t argb) { in UpdateHisto() argument
596 ++histo_argb[0][argb >> 24]; in UpdateHisto()
597 ++histo_argb[1][(argb >> 16) & 0xff]; in UpdateHisto()
598 ++histo_argb[2][(argb >> 8) & 0xff]; in UpdateHisto()
599 ++histo_argb[3][argb & 0xff]; in UpdateHisto()
654 uint32_t* const argb) { in CopyTileWithPrediction() argument
680 argb[pix] = VP8LSubPixels(current_row[col], predict); in CopyTileWithPrediction()
686 uint32_t* const argb, uint32_t* const argb_scratch, in VP8LResidualImage() argument
705 memcpy(current_tile_rows, &argb[tile_y_offset * width], in VP8LResidualImage()
720 argb_scratch, argb); in VP8LResidualImage()
[all …]
Dalpha_processing.c140 const uint32_t argb = ptr[x]; in MultARGBRow() local
141 if (argb < 0xff000000u) { // alpha < 255 in MultARGBRow()
142 if (argb <= 0x00ffffffu) { // alpha == 0 in MultARGBRow()
145 const uint32_t alpha = (argb >> 24) & 0xff; in MultARGBRow()
147 uint32_t out = argb & 0xff000000u; in MultARGBRow()
148 out |= Mult(argb >> 0, scale) << 0; in MultARGBRow()
149 out |= Mult(argb >> 8, scale) << 8; in MultARGBRow()
150 out |= Mult(argb >> 16, scale) << 16; in MultARGBRow()
287 static int ExtractAlpha(const uint8_t* argb, int argb_stride, in ExtractAlpha() argument
295 const uint8_t alpha_value = argb[4 * i]; in ExtractAlpha()
[all …]
Dyuv.h137 uint8_t* const argb) { in VP8YuvToRgba4444() argument
144 argb[0] = ba; in VP8YuvToRgba4444()
145 argb[1] = rg; in VP8YuvToRgba4444()
147 argb[0] = rg; in VP8YuvToRgba4444()
148 argb[1] = ba; in VP8YuvToRgba4444()
201 uint8_t* const argb) { in VP8YuvToRgba4444() argument
209 argb[0] = ba; in VP8YuvToRgba4444()
210 argb[1] = rg; in VP8YuvToRgba4444()
212 argb[0] = rg; in VP8YuvToRgba4444()
213 argb[1] = ba; in VP8YuvToRgba4444()
[all …]
Dlossless_neon.c275 static WEBP_INLINE uint8x16_t DoGreenShuffle(const uint8x16_t argb, in DoGreenShuffle() argument
277 return vcombine_u8(vtbl1q_u8(argb, vget_low_u8(shuffle)), in DoGreenShuffle()
278 vtbl1q_u8(argb, vget_high_u8(shuffle))); in DoGreenShuffle()
284 static WEBP_INLINE uint8x16_t DoGreenShuffle(const uint8x16_t argb, in DoGreenShuffle() argument
286 return vcombine_u8(vtbl1_u8(vget_low_u8(argb), shuffle), in DoGreenShuffle()
287 vtbl1_u8(vget_high_u8(argb), shuffle)); in DoGreenShuffle()
299 const uint8x16_t argb = vld1q_u8((uint8_t*)argb_data); in SubtractGreenFromBlueAndRed() local
300 const uint8x16_t greens = DoGreenShuffle(argb, shuffle); in SubtractGreenFromBlueAndRed()
301 vst1q_u8((uint8_t*)argb_data, vsubq_u8(argb, greens)); in SubtractGreenFromBlueAndRed()
315 const uint8x16_t argb = vld1q_u8((uint8_t*)argb_data); in AddGreenToBlueAndRed() local
[all …]
Dalpha_processing_sse2.c21 static int ExtractAlpha(const uint8_t* argb, int argb_stride, in ExtractAlpha() argument
38 const __m128i* src = (const __m128i*)argb; in ExtractAlpha()
54 const uint32_t alpha_value = argb[4 * i]; in ExtractAlpha()
58 argb += argb_stride; in ExtractAlpha()
/external/webp/src/enc/
Dbackward_references.c212 static WEBP_INLINE uint64_t GetPixPairHash64(const uint32_t* const argb) { in GetPixPairHash64() argument
213 uint64_t key = ((uint64_t)argb[1] << 32) | argb[0]; in GetPixPairHash64()
220 const uint32_t* const argb, int pos) { in HashChainInsert() argument
221 const uint64_t hash_code = GetPixPairHash64(argb); in HashChainInsert()
246 const uint32_t* const argb, int max_len, in HashChainFindCopy() argument
250 const uint32_t* const argb_start = argb + base_position; in HashChainFindCopy()
268 const uint32_t* const ptr1 = (argb + pos + best_length - 1); in HashChainFindCopy()
282 curr_length = FindMatchLength(argb + pos, argb_start, max_len); in HashChainFindCopy()
328 const uint32_t* const argb, in BackwardReferencesRle() argument
335 BackwardRefsCursorAdd(refs, PixOrCopyCreateLiteral(argb[0])); in BackwardReferencesRle()
[all …]
Dpicture_tools.c81 if (is_transparent_argb_area(pic->argb + off, pic->argb_stride, SIZE)) { in WebPCleanupTransparentArea()
83 argb_value = pic->argb[off]; in WebPCleanupTransparentArea()
86 flatten_argb(pic->argb + off, argb_value, pic->argb_stride, SIZE); in WebPCleanupTransparentArea()
179 uint32_t* argb = pic->argb; in WebPBlendAlpha() local
183 const int alpha = (argb[x] >> 24) & 0xff; in WebPBlendAlpha()
186 int r = (argb[x] >> 16) & 0xff; in WebPBlendAlpha()
187 int g = (argb[x] >> 8) & 0xff; in WebPBlendAlpha()
188 int b = (argb[x] >> 0) & 0xff; in WebPBlendAlpha()
192 argb[x] = MakeARGB32(r, g, b); in WebPBlendAlpha()
194 argb[x] = background; in WebPBlendAlpha()
[all …]
Dpicture_rescale.c84 CopyPlane((const uint8_t*)src->argb, 4 * src->argb_stride, in WebPPictureCopy()
85 (uint8_t*)dst->argb, 4 * dst->argb_stride, in WebPPictureCopy()
123 dst->argb = src->argb + top * src->argb_stride + left; in WebPPictureView()
161 (const uint8_t*)(pic->argb + top * pic->argb_stride + left); in WebPPictureCrop()
163 (uint8_t*)tmp.argb, tmp.argb_stride * 4, in WebPPictureCrop()
197 assert(pic->argb != NULL); in AlphaMultiplyARGB()
198 WebPMultARGBRows((uint8_t*)pic->argb, pic->argb_stride * sizeof(*pic->argb), in AlphaMultiplyARGB()
272 RescalePlane((const uint8_t*)pic->argb, prev_width, prev_height, in WebPPictureRescale()
274 (uint8_t*)tmp.argb, width, height, in WebPPictureRescale()
Dvp8l.c52 const uint32_t* argb = pic->argb; in AnalyzeAndCreatePalette() local
55 uint32_t last_pix = ~argb[0]; // so we're sure that last_pix != argb[0] in AnalyzeAndCreatePalette()
59 if (argb[x] == last_pix) { in AnalyzeAndCreatePalette()
62 last_pix = argb[x]; in AnalyzeAndCreatePalette()
84 argb += pic->argb_stride; in AnalyzeAndCreatePalette()
101 static int AnalyzeEntropy(const uint32_t* argb, in AnalyzeEntropy() argument
107 uint32_t last_pix = argb[0]; // so we're sure that pix_diff == 0 in AnalyzeEntropy()
114 const uint32_t pix = argb[x]; in AnalyzeEntropy()
129 last_line = argb; in AnalyzeEntropy()
130 argb += argb_stride; in AnalyzeEntropy()
[all …]
Dpicture_csp.c30 uint32_t argb; member
64 const uint32_t* argb = picture->argb; in WebPPictureHasTransparency() local
65 if (argb == NULL) return 0; in WebPPictureHasTransparency()
68 if (argb[x] < 0xff000000u) return 1; // test any alpha values != 0xff in WebPPictureHasTransparency()
70 argb += picture->argb_stride; in WebPPictureHasTransparency()
955 if (picture->argb == NULL) { in PictureARGBToYUVA()
960 const uint8_t* const argb = (const uint8_t*)picture->argb; in PictureARGBToYUVA() local
961 const uint8_t* const r = ALPHA_IS_LAST ? argb + 2 : argb + 1; in PictureARGBToYUVA()
962 const uint8_t* const g = ALPHA_IS_LAST ? argb + 1 : argb + 2; in PictureARGBToYUVA()
963 const uint8_t* const b = ALPHA_IS_LAST ? argb + 0 : argb + 3; in PictureARGBToYUVA()
[all …]
Dbackward_references.h69 static WEBP_INLINE PixOrCopy PixOrCopyCreateLiteral(uint32_t argb) { in PixOrCopyCreateLiteral() argument
72 retval.argb_or_distance = argb; in PixOrCopyCreateLiteral()
197 int width, int height, const uint32_t* const argb, int quality,
202 int VP8LCalculateEstimateForCacheSize(const uint32_t* const argb,
/external/webp/src/utils/
Dcolor_cache.h39 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/
Dfx_dib.h86 void ArgbDecode(FX_ARGB argb, int& a, int& r, int&g, int& b);
87 void ArgbDecode(FX_ARGB argb, int& a, FX_COLORREF& rgb);
93 #define FXARGB_A(argb) ((FX_BYTE)((argb) >> 24)) argument
94 #define FXARGB_R(argb) ((FX_BYTE)((argb) >> 16)) argument
95 #define FXARGB_G(argb) ((FX_BYTE)((argb) >> 8)) argument
96 #define FXARGB_B(argb) ((FX_BYTE)(argb)) argument
98 #define FXARGB_MUL_ALPHA(argb, alpha) (((((argb) >> 24) * (alpha) / 255) << 24) | ((argb) & 0xfffff… argument
109 #define FXARGB_SETDIB(p, argb) ((FX_LPBYTE)(p))[0] = (FX_BYTE)(argb), \ argument
110 ((FX_LPBYTE)(p))[1] = (FX_BYTE)((argb) >> 8), \
111 ((FX_LPBYTE)(p))[2] = (FX_BYTE)((argb) >> 16), \
[all …]
/external/pdfium/public/
Dfpdf_edit.h16 #define FPDF_GetBValue(argb) ((FX_BYTE)(argb)) argument
17 #define FPDF_GetGValue(argb) ((FX_BYTE)(((FX_WORD)(argb)) >> 8)) argument
18 #define FPDF_GetRValue(argb) ((FX_BYTE)((argb)>>16)) argument
19 #define FPDF_GetAValue(argb) ((FX_BYTE)((argb)>>24)) argument
/external/jmonkeyengine/engine/src/tools/jme3tools/converters/
DRGB565.java41 public static short ARGB8_to_RGB565(int argb){ in ARGB8_to_RGB565() argument
42 int a = (argb & 0xFF000000) >> 24; in ARGB8_to_RGB565()
43 int r = (argb & 0x00FF0000) >> 16; in ARGB8_to_RGB565()
44 int g = (argb & 0x0000FF00) >> 8; in ARGB8_to_RGB565()
45 int b = (argb & 0x000000FF); in ARGB8_to_RGB565()
/external/libvpx/libvpx/third_party/libyuv/source/
Dconvert_jpeg.cc226 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 …]
/external/valgrind/memcheck/tests/
Dinltemplate.cpp19 static INLINE T temp_member_func_b(T argb) { in temp_member_func_b() argument
21 if (argb > 0) in temp_member_func_b()
22 locb += argb; in temp_member_func_b()
Dinlinfo.c18 INLINE int fun_b(int argb) { in fun_b() argument
20 locb += argb; in fun_b()
/external/pdfium/core/src/fxge/apple/
Dfx_quartz_device.cpp85 FX_ARGB argb, in drawGraphicsString() argument
106 ArgbDecode(argb, a, r, g, b); in drawGraphicsString()
458 FX_DWORD argb, in DrawCosmeticLine() argument
474 ArgbDecode(argb, a, r, g, b); in DrawCosmeticLine()
558 FX_ARGB argb, in SetDIBits() argument
621 FXARGB_R(argb) / 255.f, in SetDIBits()
622 FXARGB_G(argb) / 255.f, in SetDIBits()
623 FXARGB_B(argb) / 255.f, in SetDIBits()
624 FXARGB_A(argb) / 255.f); in SetDIBits()
689 FX_ARGB argb, in StretchDIBits() argument
[all …]
Dfx_apple_platform.cpp48 FX_DWORD argb, in _CGDrawGlyphRun() argument
99 argb, in _CGDrawGlyphRun()
109 FX_DWORD argb, in DrawDeviceText() argument
157 …GlyphRun(ctx, nChars, pCharPos, pFont, pCache, pObject2Device, font_size, argb, alpha_flag, pIccTr… in DrawDeviceText()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowColor.java12 return argb(0xff, red, green, blue); in rgb()
16 public static int argb(int alpha, int red, int green, int blue) { in argb() method in ShadowColor
/external/jmonkeyengine/engine/src/desktop/jme3tools/converters/
DImageToAwt.java225 int argb = image.getRGB(x, y); in convert() local
228 int a = (argb & 0xff000000) >> 24; in convert()
229 int r = (argb & 0x00ff0000) >> 16; in convert()
230 int g = (argb & 0x0000ff00) >> 8; in convert()
231 int b = (argb & 0x000000ff); in convert()
471 int argb = (a << 24) | (r << 16) | (g << 8) | b; in convert() local
472 out.setRGB(x, y, argb); in convert()

123