mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-16 13:59:51 +02:00
2-5% faster trellis with clang/MacOS
(and ~2-3% on ARM) We don't need to store cost/score for each node, but only for the current and previous one -> simplify code and save some memory. Also made the 'Node' structure tighter. Change-Id: Ie3ad7d3b678992b396242f56e2ac387fe43852e6
This commit is contained in:
@ -160,6 +160,8 @@ extern const int VP8I4ModeOffsets[NUM_BMODES];
|
||||
#define I4TMP (6 * 16 * BPS + 8 * BPS + 8)
|
||||
|
||||
typedef int64_t score_t; // type used for scores, rate, distortion
|
||||
// Note that MAX_COST is not the maximum allowed by sizeof(score_t),
|
||||
// in order to allow overflowing computations.
|
||||
#define MAX_COST ((score_t)0x7fffffffffffffLL)
|
||||
|
||||
#define QFIX 17
|
||||
|
Reference in New Issue
Block a user