Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: third_party/libwebp/webp/format_constants.h

Issue 1546003002: libwebp: update to 0.5.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 'defines' exists Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 Google Inc. All Rights Reserved. 1 // Copyright 2012 Google Inc. All Rights Reserved.
2 // 2 //
3 // Use of this source code is governed by a BSD-style license 3 // Use of this source code is governed by a BSD-style license
4 // that can be found in the COPYING file in the root of the source 4 // that can be found in the COPYING file in the root of the source
5 // tree. An additional intellectual property rights grant can be found 5 // tree. An additional intellectual property rights grant can be found
6 // in the file PATENTS. All contributing project authors may 6 // in the file PATENTS. All contributing project authors may
7 // be found in the AUTHORS file in the root of the source tree. 7 // be found in the AUTHORS file in the root of the source tree.
8 // ----------------------------------------------------------------------------- 8 // -----------------------------------------------------------------------------
9 // 9 //
10 // Internal header for constants related to WebP file format. 10 // Internal header for constants related to WebP file format.
11 // 11 //
12 // Author: Urvang (urvang@google.com) 12 // Author: Urvang (urvang@google.com)
13 13
14 #ifndef WEBP_WEBP_FORMAT_CONSTANTS_H_ 14 #ifndef WEBP_WEBP_FORMAT_CONSTANTS_H_
15 #define WEBP_WEBP_FORMAT_CONSTANTS_H_ 15 #define WEBP_WEBP_FORMAT_CONSTANTS_H_
16 16
17 // Create fourcc of the chunk from the chunk tag characters. 17 // Create fourcc of the chunk from the chunk tag characters.
18 #define MKFOURCC(a, b, c, d) ((uint32_t)(a) | (b) << 8 | (c) << 16 | (d) << 24) 18 #define MKFOURCC(a, b, c, d) ((a) | (b) << 8 | (c) << 16 | (uint32_t)(d) << 24)
19 19
20 // VP8 related constants. 20 // VP8 related constants.
21 #define VP8_SIGNATURE 0x9d012a // Signature in VP8 data. 21 #define VP8_SIGNATURE 0x9d012a // Signature in VP8 data.
22 #define VP8_MAX_PARTITION0_SIZE (1 << 19) // max size of mode partition 22 #define VP8_MAX_PARTITION0_SIZE (1 << 19) // max size of mode partition
23 #define VP8_MAX_PARTITION_SIZE (1 << 24) // max size for token partition 23 #define VP8_MAX_PARTITION_SIZE (1 << 24) // max size for token partition
24 #define VP8_FRAME_HEADER_SIZE 10 // Size of the frame header within VP8 data. 24 #define VP8_FRAME_HEADER_SIZE 10 // Size of the frame header within VP8 data.
25 25
26 // VP8L related constants. 26 // VP8L related constants.
27 #define VP8L_SIGNATURE_SIZE 1 // VP8L signature size. 27 #define VP8L_SIGNATURE_SIZE 1 // VP8L signature size.
28 #define VP8L_MAGIC_BYTE 0x2f // VP8L signature byte. 28 #define VP8L_MAGIC_BYTE 0x2f // VP8L signature byte.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 #define MAX_IMAGE_AREA (1ULL << 32) // 32-bit max for width x height. 79 #define MAX_IMAGE_AREA (1ULL << 32) // 32-bit max for width x height.
80 #define MAX_LOOP_COUNT (1 << 16) // maximum value for loop-count 80 #define MAX_LOOP_COUNT (1 << 16) // maximum value for loop-count
81 #define MAX_DURATION (1 << 24) // maximum duration 81 #define MAX_DURATION (1 << 24) // maximum duration
82 #define MAX_POSITION_OFFSET (1 << 24) // maximum frame/fragment x/y offset 82 #define MAX_POSITION_OFFSET (1 << 24) // maximum frame/fragment x/y offset
83 83
84 // Maximum chunk payload is such that adding the header and padding won't 84 // Maximum chunk payload is such that adding the header and padding won't
85 // overflow a uint32_t. 85 // overflow a uint32_t.
86 #define MAX_CHUNK_PAYLOAD (~0U - CHUNK_HEADER_SIZE - 1) 86 #define MAX_CHUNK_PAYLOAD (~0U - CHUNK_HEADER_SIZE - 1)
87 87
88 #endif /* WEBP_WEBP_FORMAT_CONSTANTS_H_ */ 88 #endif /* WEBP_WEBP_FORMAT_CONSTANTS_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698