| Index: third_party/libwebp/dec/webpi.h
|
| diff --git a/third_party/libwebp/dec/webpi.h b/third_party/libwebp/dec/webpi.h
|
| index d915f5ef6ffe8fa88c91183a2c9392ea5c6d12d5..457c72eda4851aa66cac290391263e81c1a3b2dc 100644
|
| --- a/third_party/libwebp/dec/webpi.h
|
| +++ b/third_party/libwebp/dec/webpi.h
|
| @@ -54,6 +54,7 @@ void WebPResetDecParams(WebPDecParams* const params);
|
| typedef struct {
|
| const uint8_t* data; // input buffer
|
| size_t data_size; // input buffer size
|
| + int have_all_data; // true if all data is known to be available
|
| size_t offset; // offset to main data chunk (VP8 or VP8L)
|
| const uint8_t* alpha_data; // points to alpha chunk (if present)
|
| size_t alpha_data_size; // alpha chunk size
|
| @@ -93,10 +94,15 @@ int WebPIoInitFromOptions(const WebPDecoderOptions* const options,
|
| // dimension / etc.). If *options is not NULL, also verify that the options'
|
| // parameters are valid and apply them to the width/height dimensions of the
|
| // output buffer. This takes cropping / scaling / rotation into account.
|
| +// Also incorporates the options->flip flag to flip the buffer parameters if
|
| +// needed.
|
| VP8StatusCode WebPAllocateDecBuffer(int width, int height,
|
| const WebPDecoderOptions* const options,
|
| WebPDecBuffer* const buffer);
|
|
|
| +// Flip buffer vertically by negating the various strides.
|
| +VP8StatusCode WebPFlipBuffer(WebPDecBuffer* const buffer);
|
| +
|
| // Copy 'src' into 'dst' buffer, making sure 'dst' is not marked as owner of the
|
| // memory (still held by 'src').
|
| void WebPCopyDecBuffer(const WebPDecBuffer* const src,
|
| @@ -105,8 +111,6 @@ void WebPCopyDecBuffer(const WebPDecBuffer* const src,
|
| // Copy and transfer ownership from src to dst (beware of parameter order!)
|
| void WebPGrabDecBuffer(WebPDecBuffer* const src, WebPDecBuffer* const dst);
|
|
|
| -
|
| -
|
| //------------------------------------------------------------------------------
|
|
|
| #ifdef __cplusplus
|
|
|