/third_party/skia/experimental/docs/ |
H A 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( [all...] |
/third_party/skia/third_party/externals/libwebp/src/enc/ |
H A 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() 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[po in VP8LHashChainFill() 256 VP8LHashChainFill(VP8LHashChain* const p, int quality, const uint32_t* const argb, int xsize, int ysize, int low_effort) VP8LHashChainFill() argument 442 BackwardReferencesRle(int xsize, int ysize, const uint32_t* const argb, int cache_bits, VP8LBackwardRefs* const refs) BackwardReferencesRle() argument 485 BackwardReferencesLz77(int xsize, int ysize, const uint32_t* const argb, int cache_bits, const VP8LHashChain* const hash_chain, VP8LBackwardRefs* const refs) BackwardReferencesLz77() argument 557 BackwardReferencesLz77Box(int xsize, int ysize, const uint32_t* const argb, int cache_bits, const VP8LHashChain* const hash_chain_best, VP8LHashChain* hash_chain, VP8LBackwardRefs* const refs) BackwardReferencesLz77Box() argument 726 CalculateBestCacheSize(const uint32_t* argb, int quality, const VP8LBackwardRefs* const refs, int* const best_cache_bits) CalculateBestCacheSize() argument 832 BackwardRefsWithLocalCache(const uint32_t* const argb, int cache_bits, VP8LBackwardRefs* const refs) BackwardRefsWithLocalCache() argument 866 GetBackwardReferencesLowEffort( int width, int height, const uint32_t* const argb, int* const cache_bits, const VP8LHashChain* const hash_chain, VP8LBackwardRefs* const refs_lz77) GetBackwardReferencesLowEffort() argument 882 GetBackwardReferences(int width, int height, const uint32_t* const argb, int quality, int lz77_types_to_try, int cache_bits_max, int do_no_cache, const VP8LHashChain* const hash_chain, VP8LBackwardRefs* const refs, int* const cache_bits_best) GetBackwardReferences() argument 1009 VP8LGetBackwardReferences( int width, int height, const uint32_t* const argb, int quality, int low_effort, int lz77_types_to_try, int cache_bits_max, int do_no_cache, const VP8LHashChain* const hash_chain, VP8LBackwardRefs* const refs, int* const cache_bits_best) VP8LGetBackwardReferences() argument [all...] |
H A 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 298 GetBestPredictorForTile(int width, int height, int tile_x, int tile_y, int bits, int accumulated[4][256], uint32_t* const argb_scratch, const uint32_t* const argb, int max_quantization, int exact, int used_subtract_green, const uint32_t* const modes) GetBestPredictorForTile() argument 413 CopyImageWithPrediction(int width, int height, int bits, uint32_t* const modes, uint32_t* const argb_scratch, uint32_t* const argb, int low_effort, int max_quantization, int exact, int used_subtract_green) CopyImageWithPrediction() argument 475 VP8LResidualImage(int width, int height, int bits, int low_effort, uint32_t* const argb, uint32_t* const argb_scratch, uint32_t* const image, int near_lossless_quality, int exact, int used_subtract_green) VP8LResidualImage() argument 540 GetPredictionCostCrossColorRed( const uint32_t* argb, int stride, int tile_width, int tile_height, VP8LMultipliers prev_x, VP8LMultipliers prev_y, int green_to_red, const int accumulated_red_histo[256]) GetPredictionCostCrossColorRed() argument 563 GetBestGreenToRed( const uint32_t* argb, int stride, int tile_width, int tile_height, VP8LMultipliers prev_x, VP8LMultipliers prev_y, int quality, const int accumulated_red_histo[256], VP8LMultipliers* const best_tx) GetBestGreenToRed() argument 593 GetPredictionCostCrossColorBlue( const uint32_t* argb, int stride, int tile_width, int tile_height, VP8LMultipliers prev_x, VP8LMultipliers prev_y, int green_to_blue, int red_to_blue, const int accumulated_blue_histo[256]) GetPredictionCostCrossColorBlue() argument 627 GetBestGreenRedToBlue( const uint32_t* argb, int stride, int tile_width, int tile_height, VP8LMultipliers prev_x, VP8LMultipliers prev_y, int quality, const int accumulated_blue_histo[256], VP8LMultipliers* const best_tx) GetBestGreenRedToBlue() argument 675 GetBestColorTransformForTile( int tile_x, int tile_y, int bits, VP8LMultipliers prev_x, VP8LMultipliers prev_y, int quality, int xsize, int ysize, const int accumulated_red_histo[256], const int accumulated_blue_histo[256], const uint32_t* const argb) GetBestColorTransformForTile() argument 703 CopyTileWithColorTransform(int xsize, int ysize, int tile_x, int tile_y, int max_tile_size, VP8LMultipliers color_transform, uint32_t* argb) CopyTileWithColorTransform() argument 717 VP8LColorSpaceTransform(int width, int height, int bits, int quality, uint32_t* const argb, uint32_t* image) VP8LColorSpaceTransform() argument [all...] |
H A 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[ in WebPBlendAlpha() [all...] |
H A D | backward_references_cost_enc.c | 122 const uint32_t* const argb, VP8LColorCache* const hashers, in AddSingleLiteralWithCostModel() 126 const uint32_t color = argb[idx]; in AddSingleLiteralWithCostModel() 564 int xsize, int ysize, const uint32_t* const argb, int cache_bits, in BackwardReferencesHashChainDistanceOnly() 606 AddSingleLiteralWithCostModel(argb, &hashers, cost_model, 0, use_color_cache, in BackwardReferencesHashChainDistanceOnly() 615 AddSingleLiteralWithCostModel(argb, &hashers, cost_model, i, in BackwardReferencesHashChainDistanceOnly() 706 const uint32_t* const argb, int cache_bits, in BackwardReferencesHashChainFollowChosenPath() 730 VP8LColorCacheInsert(&hashers, argb[i + k]); in BackwardReferencesHashChainFollowChosenPath() 737 use_color_cache ? VP8LColorCacheContains(&hashers, argb[i]) : -1; in BackwardReferencesHashChainFollowChosenPath() 739 // use_color_cache is true and hashers contains argb[i] in BackwardReferencesHashChainFollowChosenPath() 743 if (use_color_cache) VP8LColorCacheInsert(&hashers, argb[ in BackwardReferencesHashChainFollowChosenPath() 121 AddSingleLiteralWithCostModel( const uint32_t* const argb, VP8LColorCache* const hashers, const CostModel* const cost_model, int idx, int use_color_cache, float prev_cost, float* const cost, uint16_t* const dist_array) AddSingleLiteralWithCostModel() argument 563 BackwardReferencesHashChainDistanceOnly( int xsize, int ysize, const uint32_t* const argb, int cache_bits, const VP8LHashChain* const hash_chain, const VP8LBackwardRefs* const refs, uint16_t* const dist_array) BackwardReferencesHashChainDistanceOnly() argument 705 BackwardReferencesHashChainFollowChosenPath( const uint32_t* const argb, int cache_bits, const uint16_t* const chosen_path, int chosen_path_size, const VP8LHashChain* const hash_chain, VP8LBackwardRefs* const refs) BackwardReferencesHashChainFollowChosenPath() argument 761 VP8LBackwardReferencesTraceBackwards(int xsize, int ysize, const uint32_t* const argb, int cache_bits, const VP8LHashChain* const hash_chain, const VP8LBackwardRefs* const refs_src, VP8LBackwardRefs* const refs_dst) VP8LBackwardReferencesTraceBackwards() argument [all...] |
H A 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() 189 assert(pic->argb != NULL); in AlphaMultiplyARGB() 190 WebPMultARGBRows((uint8_t*)pic->argb, pic->argb_stride * sizeof(*pic->argb), in AlphaMultiplyARGB() 261 if (!RescalePlane((const uint8_t*)pic->argb, prev_widt in WebPPictureRescale() [all...] |
/third_party/skia/third_party/externals/libwebp/src/utils/ |
H A 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() 50 cc->colors_[key] = argb; in VP8LColorCacheSet() 54 uint32_t argb) { in VP8LColorCacheInsert() 55 const int key = VP8LHashPix(argb, cc->hash_shift_); in VP8LColorCacheInsert() 56 cc->colors_[key] = argb; in VP8LColorCacheInsert() 60 uint32_t argb) { in VP8LColorCacheGetIndex() 61 return VP8LHashPix(argb, cc->hash_shift_); in VP8LColorCacheGetIndex() 64 // Return the key if cc contains argb, an 47 VP8LColorCacheSet(const VP8LColorCache* const cc, uint32_t key, uint32_t argb) VP8LColorCacheSet() argument 53 VP8LColorCacheInsert(const VP8LColorCache* const cc, uint32_t argb) VP8LColorCacheInsert() argument 59 VP8LColorCacheGetIndex(const VP8LColorCache* const cc, uint32_t argb) VP8LColorCacheGetIndex() argument 65 VP8LColorCacheContains(const VP8LColorCache* const cc, uint32_t argb) VP8LColorCacheContains() argument [all...] |
H A D | utils.c | 249 WebPCopyPlane((uint8_t*)src->argb, 4 * src->argb_stride, (uint8_t*)dst->argb, in WebPCopyPixels() 264 const uint32_t* argb = pic->argb; in WebPGetColorPalette() local 267 uint32_t last_pix = ~argb[0]; // so we're sure that last_pix != argb[0] in WebPGetColorPalette() 274 if (argb[x] == last_pix) { in WebPGetColorPalette() 277 last_pix = argb[x]; in WebPGetColorPalette() 297 argb += pic->argb_stride; in WebPGetColorPalette()
|
/third_party/vk-gl-cts/framework/delibs/deimage/ |
H A 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) * in deARGB_multiply() [all...] |
/third_party/skia/third_party/externals/libwebp/src/dsp/ |
H A D | lossless_enc_mips_dsp_r2.c | 84 uint32_t argb, argb1, new_red, new_red1; in TransformColor_MIPSdspR2() local 104 "lw %[argb], 0(%[data]) \n\t" in TransformColor_MIPSdspR2() 108 "precrq.qb.ph %[temp3], %[argb], %[argb1] \n\t" in TransformColor_MIPSdspR2() 109 "precr.qb.ph %[temp4], %[argb], %[argb1] \n\t" in TransformColor_MIPSdspR2() 121 "ins %[argb1], %[argb], 16, 16 \n\t" in TransformColor_MIPSdspR2() 142 [argb]"=&r"(argb), [argb1]"=&r"(argb1), [data]"+&r"(data) in TransformColor_MIPSdspR2() 165 uint32_t argb) { in TransformColorBlue() 166 const uint32_t green = argb >> 8; in TransformColorBlue() 167 const uint32_t red = argb >> 1 in TransformColorBlue() 163 TransformColorBlue(uint8_t green_to_blue, uint8_t red_to_blue, uint32_t argb) TransformColorBlue() argument 174 CollectColorBlueTransforms_MIPSdspR2(const uint32_t* argb, int stride, int tile_width, int tile_height, int green_to_blue, int red_to_blue, int histo[]) CollectColorBlueTransforms_MIPSdspR2() argument 220 TransformColorRed(uint8_t green_to_red, uint32_t argb) TransformColorRed() argument 228 CollectColorRedTransforms_MIPSdspR2(const uint32_t* argb, int stride, int tile_width, int tile_height, int green_to_red, int histo[]) CollectColorRedTransforms_MIPSdspR2() argument [all...] |
H A 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 in VP8LConvertBGRAToRGB_C() local 445 const uint32_t argb = *src++; VP8LConvertBGRAToRGBA_C() local 457 const uint32_t argb = *src++; VP8LConvertBGRAToRGBA4444_C() local 474 const uint32_t argb = *src++; VP8LConvertBGRAToRGB565_C() local 491 const uint32_t argb = *src++; VP8LConvertBGRAToBGR_C() local 503 const uint32_t argb = *src++; CopyOrSwap() local [all...] |
H A 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()
|
H A 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 in VP8LTransformColor_C() 559 TransformColorRed(uint8_t green_to_red, uint32_t argb) TransformColorRed() argument 567 TransformColorBlue(uint8_t green_to_blue, uint8_t red_to_blue, uint32_t argb) TransformColorBlue() argument 578 VP8LCollectColorRedTransforms_C(const uint32_t* argb, int stride, int tile_width, int tile_height, int green_to_red, int histo[]) VP8LCollectColorRedTransforms_C() argument 590 VP8LCollectColorBlueTransforms_C(const uint32_t* argb, int stride, int tile_width, int tile_height, int green_to_blue, int red_to_blue, int histo[]) VP8LCollectColorBlueTransforms_C() argument [all...] |
H A D | yuv.h | 110 uint8_t* const argb) { in VP8YuvToRgba4444() 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() 130 argb[0] = 0xff; in VP8YuvToArgb() 131 VP8YuvToRgb(y, u, v, argb + 1); in VP8YuvToArgb() 109 VP8YuvToRgba4444(int y, int u, int v, uint8_t* const argb) VP8YuvToRgba4444() argument 128 VP8YuvToArgb(uint8_t y, uint8_t u, uint8_t v, uint8_t* const argb) VP8YuvToArgb() argument
|
H A D | upsampling_mips_dsp_r2.c | 80 uint8_t* const argb) { in YuvToRgba4444() 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() 105 argb[0] = 0xff; in YuvToArgb() 106 argb[1] = r; in YuvToArgb() 107 argb[2] = g; in YuvToArgb() 108 argb[ in YuvToArgb() 79 YuvToRgba4444(int y, int u, int v, uint8_t* const argb) YuvToRgba4444() argument 101 YuvToArgb(uint8_t y, uint8_t u, uint8_t v, uint8_t* const argb) YuvToArgb() argument [all...] |
H A D | lossless_enc_sse41.c | 50 static void CollectColorBlueTransforms_SSE41(const uint32_t* argb, int stride, in CollectColorBlueTransforms_SSE41() argument 61 const uint32_t* const src = argb + y * stride; in CollectColorBlueTransforms_SSE41() 89 VP8LCollectColorBlueTransforms_C(argb + tile_width - left_over, stride, in CollectColorBlueTransforms_SSE41() 96 static void CollectColorRedTransforms_SSE41(const uint32_t* argb, int stride, in CollectColorRedTransforms_SSE41() argument 105 const uint32_t* const src = argb + y * stride; in CollectColorRedTransforms_SSE41() 131 VP8LCollectColorRedTransforms_C(argb + tile_width - left_over, stride, in CollectColorRedTransforms_SSE41()
|
H A D | alpha_processing_neon.c | 135 static int ExtractAlpha_NEON(const uint8_t* WEBP_RESTRICT argb, int argb_stride, in ExtractAlpha_NEON() argument 147 const uint8x8x4_t rgbX = vld4_u8((const uint8_t*)(argb + 4 * i)); in ExtractAlpha_NEON() 153 alpha[i] = argb[4 * i]; in ExtractAlpha_NEON() 156 argb += argb_stride; in ExtractAlpha_NEON() 165 static void ExtractGreen_NEON(const uint32_t* WEBP_RESTRICT argb, in ExtractGreen_NEON() argument 169 const uint8x16x4_t rgbX = vld4q_u8((const uint8_t*)(argb + i)); in ExtractGreen_NEON() 173 for (; i < size; ++i) alpha[i] = (argb[i] >> 8) & 0xff; in ExtractGreen_NEON()
|
H A D | alpha_processing_mips_dsp_r2.c | 90 const uint32_t argb = ptr[x]; in MultARGBRow_MIPSdspR2() local 91 if (argb < 0xff000000u) { // alpha < 255 in MultARGBRow_MIPSdspR2() 92 if (argb <= 0x00ffffffu) { // alpha == 0 in MultARGBRow_MIPSdspR2() 97 "srl %[alpha], %[argb], 24 \n\t" in MultARGBRow_MIPSdspR2() 104 "andi %[temp1], %[argb], 0xff \n\t" in MultARGBRow_MIPSdspR2() 105 "ext %[temp2], %[argb], 8, 8 \n\t" in MultARGBRow_MIPSdspR2() 106 "ext %[temp3], %[argb], 16, 8 \n\t" in MultARGBRow_MIPSdspR2() 113 "precrq.ph.w %[temp3], %[argb], %[temp3] \n\t" in MultARGBRow_MIPSdspR2() 119 [c_ff000000]"r"(c_ff000000), [argb]"r"(argb) in MultARGBRow_MIPSdspR2() [all...] |
H A 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[ in ExtractAlpha_C() 346 ExtractGreen_C(const uint32_t* WEBP_RESTRICT argb, uint8_t* WEBP_RESTRICT alpha, int size) ExtractGreen_C() argument [all...] |
H A D | alpha_processing_sse41.c | 22 static int ExtractAlpha_SSE41(const uint8_t* WEBP_RESTRICT argb, in ExtractAlpha_SSE41() argument 45 const __m128i* src = (const __m128i*)argb; in ExtractAlpha_SSE41() 47 // load 64 argb bytes in ExtractAlpha_SSE41() 66 const uint32_t alpha_value = argb[4 * i]; in ExtractAlpha_SSE41() 70 argb += argb_stride; in ExtractAlpha_SSE41()
|
H A D | yuv.c | 119 static void ConvertARGBToY_C(const uint32_t* argb, uint8_t* y, int width) { in ConvertARGBToY_C() argument 122 const uint32_t p = argb[i]; in ConvertARGBToY_C() 128 void WebPConvertARGBToUV_C(const uint32_t* argb, uint8_t* u, uint8_t* v, in WebPConvertARGBToUV_C() argument 134 const uint32_t v0 = argb[2 * i + 0]; in WebPConvertARGBToUV_C() 135 const uint32_t v1 = argb[2 * i + 1]; in WebPConvertARGBToUV_C() 153 const uint32_t v0 = argb[2 * i + 0]; in WebPConvertARGBToUV_C() 246 void (*WebPConvertARGBToY)(const uint32_t* argb, uint8_t* y, int width); 247 void (*WebPConvertARGBToUV)(const uint32_t* argb, uint8_t* u, uint8_t* v,
|
/third_party/skia/docs/examples/ |
H A D | RGBA4f_toSkColor.cpp | 9 SkColor argb = color4f.toSkColor(); in REG_FIDDLE() local 10 SkDebugf("red=%d green=%d blue=%d alpha=%d\n", SkColorGetR(argb), in REG_FIDDLE() 11 SkColorGetG(argb), SkColorGetB(argb), SkColorGetA(argb)); in REG_FIDDLE() 12 SkColor4f fromSkColor = SkColor4f::FromColor(argb); in REG_FIDDLE()
|
/third_party/skia/third_party/externals/angle2/src/image_util/ |
H A 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/libwebp/extras/ |
H A D | get_disto.c | 197 // Convert an argb picture to luminance. 203 uint32_t* const row = &pic->argb[y * pic->argb_stride]; in ConvertToGray() 205 const uint32_t argb = row[x]; in ConvertToGray() local 206 const uint32_t r = (argb >> 16) & 0xff; in ConvertToGray() 207 const uint32_t g = (argb >> 8) & 0xff; in ConvertToGray() 208 const uint32_t b = (argb >> 0) & 0xff; in ConvertToGray() 211 row[x] = (argb & 0xff000000u) | (Y * 0x010101u); in ConvertToGray() 306 fprintf(stderr, "Pictures are not in the same argb format. " in main() 315 SSIMScaleChannel((uint8_t*)pic1.argb + n, pic1.argb_stride * 4, in main() 316 (const uint8_t*)pic2.argb in main() [all...] |
H A D | extras.c | 57 dst = pic->argb; in WebPImportRGB565() 90 dst = pic->argb; in WebPImportRGB4444() 131 dst = pic->argb; in WebPImportColorMappedARGB() 152 if (pic == NULL || pic->use_argb != 1 || pic->argb == NULL) return 0; in WebPUnmultiplyARGB() 154 dst = pic->argb; in WebPUnmultiplyARGB()
|