Lines Matching full:argb
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;
308 curr_length = FindMatchLength(argb + pos, argb_start, best_length, max_len);
342 const uint32_t* const argb,
354 AddSingleLiteral(argb[0], use_color_cache, &hashers, refs);
359 const int rle_len = FindMatchLength(argb + i, argb + i - 1, 0, max_len);
361 FindMatchLength(argb + i, argb + i - xsize, 0, max_len);
372 VP8LColorCacheInsert(&hashers, argb[i + k]);
377 AddSingleLiteral(argb[i], use_color_cache, &hashers, refs);
386 const uint32_t* const argb, int cache_bits,
411 HashChainFindCopy(hash_chain, i, argb, max_len, window_size,
418 HashChainInsert(hash_chain, &argb[i], i);
422 HashChainFindCopy(hash_chain, i + 1, argb, max_len - 1,
426 AddSingleLiteral(argb[i], use_color_cache, &hashers, refs);
435 VP8LColorCacheInsert(&hashers, argb[i + k]);
442 HashChainInsert(hash_chain, &argb[i + k], i + k);
445 HashChainInsert(hash_chain, &argb[i + k], i + k);
450 AddSingleLiteral(argb[i], use_color_cache, &hashers, refs);
451 HashChainInsert(hash_chain, &argb[i], i);
455 AddSingleLiteral(argb[i], use_color_cache, &hashers, refs);
456 HashChainInsert(hash_chain, &argb[i], i);
463 AddSingleLiteral(argb[i], use_color_cache, &hashers, refs);
484 int xsize, int ysize, const uint32_t* const argb, int quality,
562 const uint32_t* const argb, VP8LHashChain* const hash_chain,
567 const uint32_t color = argb[0];
569 HashChainInsert(hash_chain, argb, idx);
587 int xsize, int ysize, const uint32_t* const argb,
628 AddSingleLiteralWithCostModel(argb + 0, hash_chain, &hashers, cost_model, 0,
635 HashChainFindCopy(hash_chain, i, argb, max_len, window_size,
657 VP8LColorCacheInsert(&hashers, argb[i + k]);
665 HashChainInsert(hash_chain, &argb[k], k);
675 HashChainFindOffset(hash_chain, i, argb, MIN_LENGTH, window_size,
687 AddSingleLiteralWithCostModel(argb + i, hash_chain, &hashers, cost_model, i,
694 AddSingleLiteralWithCostModel(argb + i, hash_chain, &hashers, cost_model, i,
726 int xsize, int ysize, const uint32_t* const argb,
752 HashChainFindOffset(hash_chain, i, argb, len, window_size, &offset);
756 VP8LColorCacheInsert(&hashers, argb[i + k]);
762 HashChainInsert(hash_chain, &argb[i + k], i + k);
768 if (use_color_cache && VP8LColorCacheContains(&hashers, argb[i])) {
770 const int idx = VP8LColorCacheGetIndex(&hashers, argb[i]);
773 if (use_color_cache) VP8LColorCacheInsert(&hashers, argb[i]);
774 v = PixOrCopyCreateLiteral(argb[i]);
778 HashChainInsert(hash_chain, &argb[i], i);
791 const uint32_t* const argb,
805 xsize, ysize, argb, quality, cache_bits, hash_chain,
811 xsize, ysize, argb, quality, cache_bits, chosen_path, chosen_path_size,
835 static double ComputeCacheEntropy(const uint32_t* argb,
860 const uint32_t pix = *argb++;
879 VP8LColorCacheInsert(&hashers, *argb++);
898 static int CalculateBestCacheSize(const uint32_t* const argb,
920 if (!BackwardReferencesLz77(xsize, ysize, argb, cache_bits_low, quality, 0,
927 entropy_low = ComputeCacheEntropy(argb, refs, cache_bits_low);
932 entropy_high = ComputeCacheEntropy(argb, refs, cache_bits_high);
952 static int BackwardRefsWithLocalCache(const uint32_t* const argb,
976 VP8LColorCacheInsert(&hashers, argb[pixel_index++]);
986 int width, int height, const uint32_t* const argb, int quality,
991 if (!BackwardReferencesLz77(width, height, argb, 0, quality,
1000 int width, int height, const uint32_t* const argb, int quality,
1011 if (!CalculateBestCacheSize(argb, width, height, quality, hash_chain,
1019 if (!BackwardRefsWithLocalCache(argb, *cache_bits, refs_lz77)) {
1024 if (!BackwardReferencesLz77(width, height, argb, *cache_bits, quality,
1030 if (!BackwardReferencesRle(width, height, argb, *cache_bits, refs_rle)) {
1059 if (BackwardReferencesTraceBackwards(width, height, argb, quality,
1083 int width, int height, const uint32_t* const argb, int quality,
1087 return GetBackwardReferencesLowEffort(width, height, argb, quality,
1090 return GetBackwardReferences(width, height, argb, quality, cache_bits,