| Index: third_party/libwebp/enc/picture.c
|
| diff --git a/third_party/libwebp/enc/picture.c b/third_party/libwebp/enc/picture.c
|
| index 2f3c96e8ef0f3082abc6029826627f29c74aa650..56ff85f3621a03c9a842cab9a06bc32dc7d00dab 100644
|
| --- a/third_party/libwebp/enc/picture.c
|
| +++ b/third_party/libwebp/enc/picture.c
|
| @@ -593,6 +593,20 @@ int WebPPictureImportBGRA(WebPPicture* const picture,
|
| return Import(picture, rgba, rgba_stride, 4, 1, 1);
|
| }
|
|
|
| +int WebPPictureImportRGBX(WebPPicture* const picture,
|
| + const uint8_t* const rgba, int rgba_stride) {
|
| + picture->colorspace &= ~WEBP_CSP_ALPHA_BIT;
|
| + if (!WebPPictureAlloc(picture)) return 0;
|
| + return Import(picture, rgba, rgba_stride, 4, 0, 0);
|
| +}
|
| +
|
| +int WebPPictureImportBGRX(WebPPicture* const picture,
|
| + const uint8_t* const rgba, int rgba_stride) {
|
| + picture->colorspace &= ~WEBP_CSP_ALPHA_BIT;
|
| + if (!WebPPictureAlloc(picture)) return 0;
|
| + return Import(picture, rgba, rgba_stride, 4, 1, 0);
|
| +}
|
| +
|
| //------------------------------------------------------------------------------
|
| // Simplest call:
|
|
|
|
|