diff options
author | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-05 07:16:54 +0000 |
---|---|---|
committer | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-05 07:16:54 +0000 |
commit | a6e603e0d0e60c9ac7470871106e5c984fa25694 (patch) | |
tree | b507ca7a1858ca0c37a40322f37a4a5d59137853 /third_party/libwebp/dec/webpi.h | |
parent | fe245ae465ec8fa8919d31545bb5ddae0b8bd79c (diff) | |
download | chromium_src-a6e603e0d0e60c9ac7470871106e5c984fa25694.zip chromium_src-a6e603e0d0e60c9ac7470871106e5c984fa25694.tar.gz chromium_src-a6e603e0d0e60c9ac7470871106e5c984fa25694.tar.bz2 |
Update libwebp to libwebp-0.1.2.
Patch originally by Pascal Massimino:
http://codereview.chromium.org/6760004/
Review URL: http://codereview.chromium.org/6793035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80421 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/libwebp/dec/webpi.h')
-rw-r--r-- | third_party/libwebp/dec/webpi.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/third_party/libwebp/dec/webpi.h b/third_party/libwebp/dec/webpi.h index 7bbe4cf..cf5bc0e 100644 --- a/third_party/libwebp/dec/webpi.h +++ b/third_party/libwebp/dec/webpi.h @@ -16,21 +16,22 @@ extern "C" { #endif -#include "../webp/decode_vp8.h" +#include "webp/decode_vp8.h" -typedef enum { MODE_RGB = 0, MODE_RGBA = 1, - MODE_BGR = 2, MODE_BGRA = 3, - MODE_YUV = 4 } WEBP_CSP_MODE; - - // Decoding output parameters. +// Decoding output parameters. typedef struct { uint8_t* output; // rgb(a) or luma - uint8_t *u, *v; - uint8_t *top_y, *top_u, *top_v; + uint8_t *u, *v; // chroma u/v + uint8_t *top_y, *top_u, *top_v; // cache for the fancy upscaler int stride; // rgb(a) stride or luma stride - int u_stride; - int v_stride; - WEBP_CSP_MODE mode; + int u_stride; // chroma-u stride + int v_stride; // chroma-v stride + WEBP_CSP_MODE mode; // rgb(a) or yuv + int last_y; // coordinate of the line that was last output + int output_size; // size of 'output' buffer + int output_u_size; // size of 'u' buffer + int output_v_size; // size of 'v' buffer + int external_buffer; // If true, the output buffers are externally owned } WebPDecParams; // If a RIFF container is detected, validate it and skip over it. Returns @@ -49,8 +50,7 @@ int WebPInitDecParams(const uint8_t* data, uint32_t data_size, int* width, // Verifies various size configurations (e.g stride >= width, specified // output size <= stride * height etc.). Returns 0 if checks fail. -int WebPCheckDecParams(const VP8Io* io, const WebPDecParams* params, - int output_size, int output_u_size, int output_v_size); +int WebPCheckDecParams(const VP8Io* io, const WebPDecParams* params); // Deallocate memory allocated by WebPInitDecParams() and reset the // WebPDecParams object. |