diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-01-21 13:09:32 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-01-21 13:09:32 +0100 |
commit | d1a0bfe221b91ea37a34d0b0360f347d2a6394e5 (patch) | |
tree | 5bba8c28b5415c90e90156bfa59a641a99118b99 /media/libwebp/README.mux | |
parent | 9a954e2d1619788f658f6ec30c7dbd89b3d48b0d (diff) | |
download | UXP-d1a0bfe221b91ea37a34d0b0360f347d2a6394e5.tar UXP-d1a0bfe221b91ea37a34d0b0360f347d2a6394e5.tar.gz UXP-d1a0bfe221b91ea37a34d0b0360f347d2a6394e5.tar.lz UXP-d1a0bfe221b91ea37a34d0b0360f347d2a6394e5.tar.xz UXP-d1a0bfe221b91ea37a34d0b0360f347d2a6394e5.zip |
Update libwebp to version 1.0.2
This resolves #939.
Diffstat (limited to 'media/libwebp/README.mux')
-rw-r--r-- | media/libwebp/README.mux | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/media/libwebp/README.mux b/media/libwebp/README.mux index bd4f92fa3..7e9c3c903 100644 --- a/media/libwebp/README.mux +++ b/media/libwebp/README.mux @@ -1,7 +1,7 @@ __ __ ____ ____ ____ __ __ _ __ __ / \\/ \/ _ \/ _ \/ _ \/ \ \/ \___/_ / _\ \ / __/ _ \ __/ / / (_/ /__ - \__\__/\_____/_____/__/ \__//_/\_____/__/___/v1.0.0 + \__\__/\_____/_____/__/ \__//_/\_____/__/___/v1.0.2 Description: @@ -211,6 +211,35 @@ Code example: For a detailed AnimEncoder API reference, please refer to the header file (src/webp/mux.h). +AnimDecoder API: +================ +This AnimDecoder API allows decoding (possibly) animated WebP images. + +Code Example: + + WebPAnimDecoderOptions dec_options; + WebPAnimDecoderOptionsInit(&dec_options); + // Tune 'dec_options' as needed. + WebPAnimDecoder* dec = WebPAnimDecoderNew(webp_data, &dec_options); + WebPAnimInfo anim_info; + WebPAnimDecoderGetInfo(dec, &anim_info); + for (uint32_t i = 0; i < anim_info.loop_count; ++i) { + while (WebPAnimDecoderHasMoreFrames(dec)) { + uint8_t* buf; + int timestamp; + WebPAnimDecoderGetNext(dec, &buf, ×tamp); + // ... (Render 'buf' based on 'timestamp'). + // ... (Do NOT free 'buf', as it is owned by 'dec'). + } + WebPAnimDecoderReset(dec); + } + const WebPDemuxer* demuxer = WebPAnimDecoderGetDemuxer(dec); + // ... (Do something using 'demuxer'; e.g. get EXIF/XMP/ICC data). + WebPAnimDecoderDelete(dec); + +For a detailed AnimDecoder API reference, please refer to the header file +(src/webp/demux.h). + Bugs: ===== |