From 653ace55c375f028a1abd0ae4e530a44ff870488 Mon Sep 17 00:00:00 2001 From: Vikas Arora Date: Mon, 27 Oct 2014 14:18:07 -0700 Subject: [PATCH] Increase the MAX_COLOR_CACHE_BITS from 9 to 10. The Maximum allowed limit is 11. The Q=25 and below is not impacted as cache bits are forced to 0. This saves 0.05% - 0.1% bytes for other quality with almost same compression speed (+/- 2-3%, that's more of a noise). Change-Id: Icf972a98f298c89e140e37a627baf709134be9a0 --- src/enc/backward_references.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/enc/backward_references.h b/src/enc/backward_references.h index a5e35deb..886b093d 100644 --- a/src/enc/backward_references.h +++ b/src/enc/backward_references.h @@ -22,9 +22,8 @@ extern "C" { #endif -// The spec allows 11, we use 9 bits to reduce memory consumption in encoding. -// Having 9 instead of 11 only removes about 0.25 % of compression density. -#define MAX_COLOR_CACHE_BITS 9 +// The maximum allowed limit is 11. +#define MAX_COLOR_CACHE_BITS 10 // ----------------------------------------------------------------------------- // PixOrCopy