| Index: third_party/libwebp/webp/demux.h
|
| diff --git a/third_party/libwebp/webp/demux.h b/third_party/libwebp/webp/demux.h
|
| index cfb4fdfe7d4b97b4c1c75e02de769b9f08469c9a..c7cd5d66dbb0405e649bd6972205e99cf9251f79 100644
|
| --- a/third_party/libwebp/webp/demux.h
|
| +++ b/third_party/libwebp/webp/demux.h
|
| @@ -1,8 +1,10 @@
|
| // Copyright 2012 Google Inc. All Rights Reserved.
|
| //
|
| -// This code is licensed under the same terms as WebM:
|
| -// Software License Agreement: http://www.webmproject.org/license/software/
|
| -// Additional IP Rights Grant: http://www.webmproject.org/license/additional/
|
| +// Use of this source code is governed by a BSD-style license
|
| +// that can be found in the COPYING file in the root of the source
|
| +// tree. An additional intellectual property rights grant can be found
|
| +// in the file PATENTS. All contributing project authors may
|
| +// be found in the AUTHORS file in the root of the source tree.
|
| // -----------------------------------------------------------------------------
|
| //
|
| // Demux API.
|
| @@ -53,11 +55,11 @@ extern "C" {
|
|
|
| #define WEBP_DEMUX_ABI_VERSION 0x0100 // MAJOR(8b) + MINOR(8b)
|
|
|
| +// Note: forward declaring enumerations is not allowed in (strict) C and C++,
|
| +// the types are left here for reference.
|
| +// typedef enum WebPDemuxState WebPDemuxState;
|
| +// typedef enum WebPFormatFeature WebPFormatFeature;
|
| typedef struct WebPDemuxer WebPDemuxer;
|
| -#if !(defined(__cplusplus) || defined(c_plusplus))
|
| -typedef enum WebPDemuxState WebPDemuxState;
|
| -typedef enum WebPFormatFeature WebPFormatFeature;
|
| -#endif
|
| typedef struct WebPIterator WebPIterator;
|
| typedef struct WebPChunkIterator WebPChunkIterator;
|
|
|
| @@ -70,11 +72,11 @@ WEBP_EXTERN(int) WebPGetDemuxVersion(void);
|
| //------------------------------------------------------------------------------
|
| // Life of a Demux object
|
|
|
| -enum WebPDemuxState {
|
| +typedef enum WebPDemuxState {
|
| WEBP_DEMUX_PARSING_HEADER, // Not enough data to parse full header.
|
| WEBP_DEMUX_PARSED_HEADER, // Header parsing complete, data may be available.
|
| WEBP_DEMUX_DONE // Entire file has been parsed.
|
| -};
|
| +} WebPDemuxState;
|
|
|
| // Internal, version-checked, entry point
|
| WEBP_EXTERN(WebPDemuxer*) WebPDemuxInternal(
|
| @@ -100,7 +102,7 @@ WEBP_EXTERN(void) WebPDemuxDelete(WebPDemuxer* dmux);
|
| //------------------------------------------------------------------------------
|
| // Data/information extraction.
|
|
|
| -enum WebPFormatFeature {
|
| +typedef enum WebPFormatFeature {
|
| WEBP_FF_FORMAT_FLAGS, // Extended format flags present in the 'VP8X' chunk.
|
| WEBP_FF_CANVAS_WIDTH,
|
| WEBP_FF_CANVAS_HEIGHT,
|
| @@ -110,7 +112,7 @@ enum WebPFormatFeature {
|
| // In case of a partial demux, this is the number of
|
| // frames seen so far, with the last frame possibly
|
| // being partial.
|
| -};
|
| +} WebPFormatFeature;
|
|
|
| // Get the 'feature' value from the 'dmux'.
|
| // NOTE: values are only valid if WebPDemux() was used or WebPDemuxPartial()
|
|
|