mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
Don't set alpha-channel to 0xff for alpha->green uplift
usually saves ~4 bytes on average (but, up to 10 -or even 16- sometimes). Change-Id: Ib500e1a35471a2f3da453ffc8c7e95d28b8d34fe
This commit is contained in:
parent
5130770cd3
commit
3307c16327
@ -71,7 +71,7 @@ static int EncodeLossless(const uint8_t* const data, int width, int height,
|
||||
const uint8_t* src = data;
|
||||
for (j = 0; j < picture.height; ++j) {
|
||||
for (i = 0; i < picture.width; ++i) {
|
||||
dst[i] = (src[i] << 8) | 0xff000000u;
|
||||
dst[i] = src[i] << 8; // we leave A/R/B channels zero'd.
|
||||
}
|
||||
src += width;
|
||||
dst += picture.argb_stride;
|
||||
|
Loading…
Reference in New Issue
Block a user