From 2d58b64f511a05f4616380741d9c856718bd3e89 Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 25 Feb 2015 20:04:09 -0800 Subject: [PATCH] WebPPictureRescale: add a note about 0 width/height (cherry picked from commit 0f773693bfeaf3e2994cf8c7353c62a77cba0e38) Change-Id: I3890bb3fd32a148d7dd24c714546160c6c59d4ea --- src/webp/encode.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/webp/encode.h b/src/webp/encode.h index 3c263748..b3f05b1f 100644 --- a/src/webp/encode.h +++ b/src/webp/encode.h @@ -419,7 +419,9 @@ WEBP_EXTERN(int) WebPPictureView(const WebPPicture* src, WEBP_EXTERN(int) WebPPictureIsView(const WebPPicture* picture); // Rescale a picture to new dimension width x height. -// Now gamma correction is applied. +// If either 'width' or 'height' (but not both) is 0 the corresponding +// dimension will be calculated preserving the aspect ratio. +// No gamma correction is applied. // Returns false in case of error (invalid parameter or insufficient memory). WEBP_EXTERN(int) WebPPictureRescale(WebPPicture* pic, int width, int height);