diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2016-12-28 23:17:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-28 23:17:42 +0100 |
| commit | 86e428eea0b9ef5c1732af3a5c29b5c365fbf6e8 (patch) | |
| tree | 847c3a15508aea33384ad9a93e915c268f379ce1 /thirdparty/libwebp/webp/decode.h | |
| parent | c798ff15510997fdbe6848687804f5e2cb17eefb (diff) | |
| parent | e04c7e11ec2fabf34aaf515103bc0b6086e1aabd (diff) | |
Merge pull request #7350 from volzhs/webp-0.5.2
Update libwebp to 0.5.2
Diffstat (limited to 'thirdparty/libwebp/webp/decode.h')
| -rw-r--r-- | thirdparty/libwebp/webp/decode.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/thirdparty/libwebp/webp/decode.h b/thirdparty/libwebp/webp/decode.h index 7a3bed93a4..4c5e74ac36 100644 --- a/thirdparty/libwebp/webp/decode.h +++ b/thirdparty/libwebp/webp/decode.h @@ -248,19 +248,19 @@ typedef enum VP8StatusCode { // picture is only partially decoded, pending additional input. // Code example: // -// WebPInitDecBuffer(&buffer); -// buffer.colorspace = mode; +// WebPInitDecBuffer(&output_buffer); +// output_buffer.colorspace = mode; // ... -// WebPIDecoder* idec = WebPINewDecoder(&buffer); -// while (has_more_data) { -// // ... (get additional data) +// WebPIDecoder* idec = WebPINewDecoder(&output_buffer); +// while (additional_data_is_available) { +// // ... (get additional data in some new_data[] buffer) // status = WebPIAppend(idec, new_data, new_data_size); -// if (status != VP8_STATUS_SUSPENDED || -// break; +// if (status != VP8_STATUS_OK && status != VP8_STATUS_SUSPENDED) { +// break; // an error occurred. // } // // // The above call decodes the current available buffer. -// // Part of the image can now be refreshed by calling to +// // Part of the image can now be refreshed by calling // // WebPIDecGetRGB()/WebPIDecGetYUVA() etc. // } // WebPIDelete(idec); |