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
This commit is contained in:
Pascal Massimino 2014-10-08 08:24:19 +02:00
parent 2d9b0a4472
commit f545feee64

View File

@ -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;
}