Home
last modified time | relevance | path

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

12

/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/utils/
A Dcolor_cache_utils.h35 static WEBP_INLINE int VP8LHashPix(uint32_t argb, int shift) { in VP8LHashPix() argument
36 return (int)(((argb * kHashMul) & 0xffffffffu) >> shift); in VP8LHashPix()
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
65 const int key = VP8LHashPix(argb, cc->hash_shift_); in VP8LColorCacheContains()
[all …]
A Dutils.c241 WebPCopyPlane((uint8_t*)src->argb, 4 * src->argb_stride, (uint8_t*)dst->argb, in WebPCopyPixels()
256 const uint32_t* argb = pic->argb; in WebPGetColorPalette() local
259 uint32_t last_pix = ~argb[0]; // so we're sure that last_pix != argb[0] in WebPGetColorPalette()
266 if (argb[x] == last_pix) { in WebPGetColorPalette()
269 last_pix = argb[x]; in WebPGetColorPalette()
289 argb += pic->argb_stride; in WebPGetColorPalette()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/enc/
A Dpredictor_enc.c59 ++histo_argb[0][argb >> 24]; in UpdateHisto()
62 ++histo_argb[3][argb & 0xff]; in UpdateHisto()
125 current = argb[0]; in MaxDiffsForRow()
126 right = argb[1]; in MaxDiffsForRow()
133 up = argb[-stride + x]; in MaxDiffsForRow()
134 down = argb[stride + x]; in MaxDiffsForRow()
137 right = argb[x + 1]; in MaxDiffsForRow()
682 const uint32_t* const argb) { in GetBestColorTransformForTile() argument
713 argb += xsize; in CopyTileWithColorTransform()
761 argb[ix - 2] == argb[ix - width - 2] && in VP8LColorSpaceTransform()
[all …]
A Dbackward_references_enc.c252 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()
372 argb[base_position - best_distance] != argb[base_position]) { in VP8LHashChainFill()
427 const int rle_len = FindMatchLength(argb + i, argb + i - 1, 0, max_len); in BackwardReferencesRle()
429 FindMatchLength(argb + i, argb + i - xsize, 0, max_len); in BackwardReferencesRle()
547 if (argb[i] == argb[i + 1]) { in BackwardReferencesLz77Box()
624 if (j_offset < 0 || argb[j_offset] != argb[i]) continue; in BackwardReferencesLz77Box()
640 argb[j_offset] == argb[j]); in BackwardReferencesLz77Box()
[all …]
A Dpicture_tools_enc.c101 argb_value = pic->argb[off]; 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
258 int r = (argb[x] >> 16) & 0xff; in WebPBlendAlpha()
264 argb[x] = MakeARGB32(r, g, b); in WebPBlendAlpha()
266 argb[x] = background; in WebPBlendAlpha()
[all …]
A Dpicture_rescale_enc.c78 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()
A Dbackward_references_cost_enc.c122 const uint32_t* const argb, VP8LColorCache* const hashers, in AddSingleLiteralWithCostModel() argument
126 const uint32_t color = argb[idx]; in AddSingleLiteralWithCostModel()
564 int xsize, int ysize, const uint32_t* const argb, int cache_bits, in BackwardReferencesHashChainDistanceOnly() argument
615 AddSingleLiteralWithCostModel(argb, &hashers, cost_model, i, in BackwardReferencesHashChainDistanceOnly()
706 const uint32_t* const argb, int cache_bits, in BackwardReferencesHashChainFollowChosenPath() argument
730 VP8LColorCacheInsert(&hashers, argb[i + k]); in BackwardReferencesHashChainFollowChosenPath()
743 if (use_color_cache) VP8LColorCacheInsert(&hashers, argb[i]); in BackwardReferencesHashChainFollowChosenPath()
744 v = PixOrCopyCreateLiteral(argb[i]); in BackwardReferencesHashChainFollowChosenPath()
758 int xsize, int ysize, const uint32_t* const argb, int cache_bits,
762 const uint32_t* const argb, in VP8LBackwardReferencesTraceBackwards() argument
[all …]
A Dbackward_references_enc.h64 static WEBP_INLINE PixOrCopy PixOrCopyCreateLiteral(uint32_t argb) { in PixOrCopyCreateLiteral() argument
67 retval.argb_or_distance = argb; in PixOrCopyCreateLiteral()
138 const uint32_t* const argb, int xsize, int ysize,
225 int width, int height, const uint32_t* const argb, int quality,
A Dvp8li_enc.h105 uint32_t* const argb, uint32_t* const argb_scratch,
110 uint32_t* const argb, uint32_t* image);
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dsp/
A Dlossless_enc_mips_dsp_r2.c84 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()
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()
186 const uint32_t* p_argb = argb; in CollectColorBlueTransforms_MIPSdspR2()
187 argb += stride; in CollectColorBlueTransforms_MIPSdspR2()
222 const uint32_t green = argb >> 8; in TransformColorRed()
223 uint32_t new_red = argb >> 16; in TransformColorRed()
237 const uint32_t* p_argb = argb; in CollectColorRedTransforms_MIPSdspR2()
[all …]
A Dlossless.c246 const uint32_t argb = src[i]; in VP8LAddGreenToBlueAndRed_C() local
272 const uint32_t argb = src[i]; in VP8LTransformColorInverse_C() local
276 int new_blue = argb & 0xff; in VP8LTransformColorInverse_C()
429 const uint32_t argb = *src++; in VP8LConvertBGRAToRGB_C() local
430 *dst++ = (argb >> 16) & 0xff; in VP8LConvertBGRAToRGB_C()
431 *dst++ = (argb >> 8) & 0xff; in VP8LConvertBGRAToRGB_C()
453 const uint8_t rg = ((argb >> 16) & 0xf0) | ((argb >> 12) & 0xf); in VP8LConvertBGRAToRGBA4444_C()
454 const uint8_t ba = ((argb >> 0) & 0xf0) | ((argb >> 28) & 0xf); in VP8LConvertBGRAToRGBA4444_C()
470 const uint8_t rg = ((argb >> 16) & 0xf8) | ((argb >> 13) & 0x7); in VP8LConvertBGRAToRGB565_C()
471 const uint8_t gb = ((argb >> 5) & 0xe0) | ((argb >> 3) & 0x1f); in VP8LConvertBGRAToRGB565_C()
[all …]
A Dlossless_enc_neon.c39 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()
A Dalpha_processing.c143 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()
333 const uint8_t alpha_value = argb[4 * i]; in ExtractAlpha_C()
337 argb += argb_stride; in ExtractAlpha_C()
[all …]
A Dyuv.h110 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()
A Dlossless_enc.c506 const int argb = argb_data[i]; in VP8LSubtractGreenFromBlueAndRed_C() local
522 const uint32_t argb = data[i]; in VP8LTransformColor_C() local
524 const uint32_t red = argb >> 16; in VP8LTransformColor_C()
526 int new_blue = argb & 0xff; in VP8LTransformColor_C()
538 const uint32_t green = argb >> 8; in TransformColorRed()
539 int new_red = argb >> 16; in TransformColorRed()
547 const uint32_t green = argb >> 8; in TransformColorBlue()
548 const uint32_t red = argb >> 16; in TransformColorBlue()
549 uint8_t new_blue = argb; in TransformColorBlue()
563 argb += stride; in VP8LCollectColorRedTransforms_C()
[all …]
A Dupsampling_mips_dsp_r2.c80 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()
A Dalpha_processing_sse41.c22 static int ExtractAlpha_SSE41(const uint8_t* argb, int argb_stride, in ExtractAlpha_SSE41() argument
45 const __m128i* src = (const __m128i*)argb; in ExtractAlpha_SSE41()
66 const uint32_t alpha_value = argb[4 * i]; in ExtractAlpha_SSE41()
70 argb += argb_stride; in ExtractAlpha_SSE41()
A Dlossless_enc_sse41.c48 static void CollectColorBlueTransforms_SSE41(const uint32_t* argb, int stride, in CollectColorBlueTransforms_SSE41() argument
63 const uint32_t* const src = argb + y * stride; in CollectColorBlueTransforms_SSE41()
88 VP8LCollectColorBlueTransforms_C(argb + tile_width - left_over, stride, in CollectColorBlueTransforms_SSE41()
95 static void CollectColorRedTransforms_SSE41(const uint32_t* argb, int stride, in CollectColorRedTransforms_SSE41() argument
104 const uint32_t* const src = argb + y * stride; in CollectColorRedTransforms_SSE41()
126 VP8LCollectColorRedTransforms_C(argb + tile_width - left_over, stride, in CollectColorRedTransforms_SSE41()
A Dalpha_processing_mips_dsp_r2.c90 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()
119 [c_ff000000]"r"(c_ff000000), [argb]"r"(argb) in MultARGBRow_MIPSdspR2()
A Dalpha_processing_neon.c134 static int ExtractAlpha_NEON(const uint8_t* argb, int argb_stride, in ExtractAlpha_NEON() argument
146 const uint8x8x4_t rgbX = vld4_u8((const uint8_t*)(argb + 4 * i)); in ExtractAlpha_NEON()
152 alpha[i] = argb[4 * i]; in ExtractAlpha_NEON()
155 argb += argb_stride; in ExtractAlpha_NEON()
164 static void ExtractGreen_NEON(const uint32_t* argb, in ExtractGreen_NEON() argument
168 const uint8x16x4_t rgbX = vld4q_u8((const uint8_t*)(argb + i)); in ExtractGreen_NEON()
172 for (; i < size; ++i) alpha[i] = (argb[i] >> 8) & 0xff; in ExtractGreen_NEON()
A Dyuv.c119 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,
A Dlossless.h126 const uint32_t* argb, int stride,
132 const uint32_t* argb, int stride,
141 void VP8LCollectColorRedTransforms_C(const uint32_t* argb, int stride,
144 void VP8LCollectColorBlueTransforms_C(const uint32_t* argb, int stride,
A Dyuv_sse41.c335 const uint32_t* const argb, __m128i* const rgb /*in[6]*/) { in RGB32PackedToPlanar_SSE41() argument
337 __m128i a0 = LOAD_16(argb + 0); in RGB32PackedToPlanar_SSE41()
338 __m128i a1 = LOAD_16(argb + 4); in RGB32PackedToPlanar_SSE41()
339 __m128i a2 = LOAD_16(argb + 8); in RGB32PackedToPlanar_SSE41()
340 __m128i a3 = LOAD_16(argb + 12); in RGB32PackedToPlanar_SSE41()
481 RGB32PackedToPlanar_SSE41(&argb[i], rgb); in ConvertARGBToY_SSE41()
487 const uint32_t p = argb[i]; in ConvertARGBToY_SSE41()
504 static void ConvertARGBToUV_SSE41(const uint32_t* argb, in ConvertARGBToUV_SSE41() argument
511 RGB32PackedToPlanar_SSE41(&argb[i], rgb); in ConvertARGBToUV_SSE41()
517 RGB32PackedToPlanar_SSE41(&argb[i + 16], rgb); in ConvertARGBToUV_SSE41()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/extras/
A Dget_disto.c203 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()
315 SSIMScaleChannel((uint8_t*)pic1.argb + n, pic1.argb_stride * 4, in main()
316 (const uint8_t*)pic2.argb + n, pic2.argb_stride * 4, in main()
318 DiffScaleChannel((uint8_t*)pic1.argb + n, pic1.argb_stride * 4, in main()
319 (const uint8_t*)pic2.argb + n, pic2.argb_stride * 4, in main()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/imageio/
A Dwebpdec.c194 output_buffer->u.RGBA.rgba = (uint8_t*)pic->argb; in ReadWebP()
219 uint32_t* argb = pic->argb; in ReadWebP() local
221 for (x = 0; x < pic->width; ++x) argb[x] |= 0xff000000u; in ReadWebP()
222 argb += pic->argb_stride; in ReadWebP()

Completed in 34 milliseconds

12