| Index: third_party/libwebp/webp/mux_types.h
|
| diff --git a/third_party/libwebp/webp/mux_types.h b/third_party/libwebp/webp/mux_types.h
|
| index 4006a54098c402b4d7e44c3b9a33da0dca651a16..b8bce363e51533617e65ecfe9f609bec4e8a620d 100644
|
| --- a/third_party/libwebp/webp/mux_types.h
|
| +++ b/third_party/libwebp/webp/mux_types.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.
|
| // -----------------------------------------------------------------------------
|
| //
|
| // Data-types common to the mux and demux libraries.
|
| @@ -20,31 +22,31 @@
|
| extern "C" {
|
| #endif
|
|
|
| -#if !(defined(__cplusplus) || defined(c_plusplus))
|
| -typedef enum WebPFeatureFlags WebPFeatureFlags;
|
| -typedef enum WebPMuxAnimDispose WebPMuxAnimDispose;
|
| -#endif
|
| +// Note: forward declaring enumerations is not allowed in (strict) C and C++,
|
| +// the types are left here for reference.
|
| +// typedef enum WebPFeatureFlags WebPFeatureFlags;
|
| +// typedef enum WebPMuxAnimDispose WebPMuxAnimDispose;
|
| +typedef struct WebPData WebPData;
|
|
|
| // VP8X Feature Flags.
|
| -enum WebPFeatureFlags {
|
| +typedef enum WebPFeatureFlags {
|
| FRAGMENTS_FLAG = 0x00000001,
|
| ANIMATION_FLAG = 0x00000002,
|
| XMP_FLAG = 0x00000004,
|
| EXIF_FLAG = 0x00000008,
|
| ALPHA_FLAG = 0x00000010,
|
| ICCP_FLAG = 0x00000020
|
| -};
|
| +} WebPFeatureFlags;
|
|
|
| // Dispose method (animation only). Indicates how the area used by the current
|
| // frame is to be treated before rendering the next frame on the canvas.
|
| -enum WebPMuxAnimDispose {
|
| +typedef enum WebPMuxAnimDispose {
|
| WEBP_MUX_DISPOSE_NONE, // Do not dispose.
|
| WEBP_MUX_DISPOSE_BACKGROUND // Dispose to background color.
|
| -};
|
| +} WebPMuxAnimDispose;
|
|
|
| // Data type used to describe 'raw' data, e.g., chunk data
|
| // (ICC profile, metadata) and WebP compressed image data.
|
| -typedef struct WebPData WebPData;
|
| struct WebPData {
|
| const uint8_t* bytes;
|
| size_t size;
|
|
|