Index: third_party/libwebp/webp/encode.h |
diff --git a/third_party/libwebp/webp/encode.h b/third_party/libwebp/webp/encode.h |
index 31f0539750faa6dc935348bef4cee239ef55c9be..8eac8ef92110d60ff5dfc2732b7677ddec90236e 100644 |
--- a/third_party/libwebp/webp/encode.h |
+++ b/third_party/libwebp/webp/encode.h |
@@ -252,12 +252,17 @@ WEBP_EXTERN(int) WebPPictureImportRGB( |
// Same, but for RGBA buffer |
WEBP_EXTERN(int) WebPPictureImportRGBA( |
WebPPicture* const picture, const uint8_t* const rgba, int rgba_stride); |
+// Same again, RGBA buffer, ignoring the alpha channel |
skal
2012/06/04 04:34:55
you can add a comment about why this is useful com
|
+WEBP_EXTERN(int) WebPPictureImportRGBX( |
+ WebPPicture* const picture, const uint8_t* const rgbx, int rgbx_stride); |
-// Variant of the above, but taking BGR(A) input: |
+// Variant of the above, but taking BGR(A) input |
WEBP_EXTERN(int) WebPPictureImportBGR( |
WebPPicture* const picture, const uint8_t* const bgr, int bgr_stride); |
WEBP_EXTERN(int) WebPPictureImportBGRA( |
WebPPicture* const picture, const uint8_t* const bgra, int bgra_stride); |
+WEBP_EXTERN(int) WebPPictureImportBGRX( |
+ WebPPicture* const picture, const uint8_t* const bgrx, int bgrx_stride); |
//------------------------------------------------------------------------------ |
// Main call |