mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-16 05:49:51 +02:00
Rebase default encoding settings.
Updated histo_bits to 3 from 4 and changed the quality threshold for inner loop for HashChainFindCopy. Impact: 0.5%-0.8% better bpp with 15%-20% hit on encoding throughput at default encoding settings. Change-Id: I316ef88403148b1e19036fa0817d944eb0301255
This commit is contained in:
@ -148,7 +148,7 @@ static int HashChainFindCopy(const HashChain* const p,
|
||||
const uint64_t hash_code = GetPixPairHash64(&argb[index]);
|
||||
int prev_length = 0;
|
||||
int64_t best_val = 0;
|
||||
const int iter_min_mult = (quality < 50) ? 2 : (quality <= 75) ? 4 : 8;
|
||||
const int iter_min_mult = (quality < 50) ? 2 : (quality < 75) ? 4 : 8;
|
||||
const int iter_min = -quality * iter_min_mult;
|
||||
int iter_cnt = 10 + (quality >> 1);
|
||||
const int min_pos = (index > WINDOW_SIZE) ? index - WINDOW_SIZE : 0;
|
||||
|
Reference in New Issue
Block a user