cwebp: add a -sharp_yuv option for 'sharp' RGB->YUV conversion

Change-Id: I6edd5b44d693da50f702fa8218f14872874d91ba
This commit is contained in:
Pascal Massimino
2017-01-20 16:53:58 +01:00
parent 79bf46f120
commit 4689ce1635
6 changed files with 20 additions and 5 deletions

View File

@ -342,7 +342,7 @@ int WebPEncode(const WebPConfig* config, WebPPicture* pic) {
if (pic->use_argb || pic->y == NULL || pic->u == NULL || pic->v == NULL) {
// Make sure we have YUVA samples.
if (config->preprocessing & 4) {
if (config->use_sharp_yuv || (config->preprocessing & 4)) {
if (!WebPPictureSharpARGBToYUVA(pic)) {
return 0;
}