From f545feee641476792ac319ae08f92a35085372c9 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Wed, 8 Oct 2014 08:24:19 +0200 Subject: [PATCH] don't set the alpha value for histogram index image This leads to tiny extra compression (~few bytes per file) for free Change-Id: Ia4d8cef3de4365e32eacefd69a57689c80042a23 --- src/enc/vp8l.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enc/vp8l.c b/src/enc/vp8l.c index 1280fd3b..cd84079b 100644 --- a/src/enc/vp8l.c +++ b/src/enc/vp8l.c @@ -640,7 +640,7 @@ static WebPEncodingError EncodeImageInternal(VP8LBitWriter* const bw, if (histogram_argb == NULL) goto Error; for (i = 0; i < histogram_image_xysize; ++i) { const int symbol_index = histogram_symbols[i] & 0xffff; - histogram_argb[i] = 0xff000000 | (symbol_index << 8); + histogram_argb[i] = (symbol_index << 8); if (symbol_index >= max_index) { max_index = symbol_index + 1; }