mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-15 21:39:59 +02:00
Improved near-lossless mode.
Compared to previous mode it gives another 10-30% improvement in compression keeping comparable PSNR on corresponding quality settings. Still protected by the WEBP_EXPERIMENTAL_FEATURES flag. Change-Id: I4821815b9a508f4f38c98821acaddb74c73c60ac
This commit is contained in:
committed by
Gerrit Code Review
parent
0ce27e715e
commit
6c6736816c
@ -368,11 +368,6 @@ int WebPEncode(const WebPConfig* config, WebPPicture* pic) {
|
||||
}
|
||||
ok &= DeleteVP8Encoder(enc); // must always be called, even if !ok
|
||||
} else {
|
||||
if (config->near_lossless > 0 &&
|
||||
!VP8ApplyNearLossless(pic->width, pic->height,
|
||||
pic->argb, config->near_lossless)) {
|
||||
return 0;
|
||||
}
|
||||
// Make sure we have ARGB samples.
|
||||
if (pic->argb == NULL && !WebPPictureYUVAToARGB(pic)) {
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user