Lines Matching full:argb
197 static WEBP_INLINE uint32_t GetPixPairHash64(const uint32_t* const argb) {
199 key = (argb[1] * HASH_MULTIPLIER_HI) & 0xffffffffu;
200 key += (argb[0] * HASH_MULTIPLIER_LO) & 0xffffffffu;
225 const uint32_t* const argb, int xsize, int ysize,
252 argb_comp = (argb[0] == argb[1]);
255 const int argb_comp_next = (argb[pos + 1] == argb[pos + 2]);
262 tmp[0] = argb[pos];
267 while (pos + (int)len + 2 < size && argb[pos + len + 2] == argb[pos]) {
289 hash_code = GetPixPairHash64(argb + pos);
296 chain[pos] = hash_to_first_index[GetPixPairHash64(argb + pos)];
308 const uint32_t* const argb_start = argb + base_position;
348 if (argb[pos + best_length] != best_argb) continue;
350 curr_length = VP8LVectorMismatch(argb + pos, argb_start, max_len);
372 argb[base_position - best_distance] != argb[base_position]) {
411 const uint32_t* const argb,
423 AddSingleLiteral(argb[0], use_color_cache, &hashers, refs);
427 const int rle_len = FindMatchLength(argb + i, argb + i - 1, 0, max_len);
429 FindMatchLength(argb + i, argb + i - xsize, 0, max_len);
440 VP8LColorCacheInsert(&hashers, argb[i + k]);
445 argb[i], use_color_cache, &hashers, refs);
454 const uint32_t* const argb, int cache_bits,
505 AddSingleLiteral(argb[i], use_color_cache, &hashers, refs);
509 for (j = i; j < i + len; ++j) VP8LColorCacheInsert(&hashers, argb[j]);
526 const uint32_t* const argb, int cache_bits,
547 if (argb[i] == argb[i + 1]) {
624 if (j_offset < 0 || argb[j_offset] != argb[i]) continue;
640 argb[j_offset] == argb[j]);
670 return BackwardReferencesLz77(xsize, ysize, argb, cache_bits, hash_chain,
694 static int CalculateBestCacheSize(const uint32_t* argb, int quality,
729 const uint32_t pix = *argb++;
759 uint32_t argb_prev = *argb ^ 0xffffffffu;
762 if (*argb != argb_prev) {
764 int key = VP8LHashPix(*argb, 32 - cache_bits_max);
766 hashers[i].colors_[key] = *argb;
768 argb_prev = *argb;
770 argb++;
793 static int BackwardRefsWithLocalCache(const uint32_t* const argb,
818 VP8LColorCacheInsert(&hashers, argb[pixel_index++]);
828 int width, int height, const uint32_t* const argb,
832 if (!BackwardReferencesLz77(width, height, argb, 0, hash_chain, refs_lz77)) {
840 int xsize, int ysize, const uint32_t* const argb, int cache_bits,
844 int width, int height, const uint32_t* const argb, int quality,
866 res = BackwardReferencesRle(width, height, argb, 0, worst);
871 res = BackwardReferencesLz77(width, height, argb, 0, hash_chain, worst);
875 res = BackwardReferencesLz77Box(width, height, argb, 0, hash_chain,
884 if (!CalculateBestCacheSize(argb, quality, worst, &cache_bits_tmp)) {
888 if (!BackwardRefsWithLocalCache(argb, cache_bits_tmp, worst)) {
913 if (VP8LBackwardReferencesTraceBackwards(width, height, argb, *cache_bits,
931 int width, int height, const uint32_t* const argb, int quality,
936 return GetBackwardReferencesLowEffort(width, height, argb, cache_bits,
939 return GetBackwardReferences(width, height, argb, quality,