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

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

Issue 2651883004: libwebp-0.6.0-rc1 (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « third_party/libwebp/webp/extras.h ('k') | third_party/libwebp/webp/mux.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 #define ALPHA_LOSSLESS_COMPRESSION 1 65 #define ALPHA_LOSSLESS_COMPRESSION 1
66 #define ALPHA_PREPROCESSED_LEVELS 1 66 #define ALPHA_PREPROCESSED_LEVELS 1
67 67
68 // Mux related constants. 68 // Mux related constants.
69 #define TAG_SIZE 4 // Size of a chunk tag (e.g. "VP8L"). 69 #define TAG_SIZE 4 // Size of a chunk tag (e.g. "VP8L").
70 #define CHUNK_SIZE_BYTES 4 // Size needed to store chunk's size. 70 #define CHUNK_SIZE_BYTES 4 // Size needed to store chunk's size.
71 #define CHUNK_HEADER_SIZE 8 // Size of a chunk header. 71 #define CHUNK_HEADER_SIZE 8 // Size of a chunk header.
72 #define RIFF_HEADER_SIZE 12 // Size of the RIFF header ("RIFFnnnnWEBP"). 72 #define RIFF_HEADER_SIZE 12 // Size of the RIFF header ("RIFFnnnnWEBP").
73 #define ANMF_CHUNK_SIZE 16 // Size of an ANMF chunk. 73 #define ANMF_CHUNK_SIZE 16 // Size of an ANMF chunk.
74 #define ANIM_CHUNK_SIZE 6 // Size of an ANIM chunk. 74 #define ANIM_CHUNK_SIZE 6 // Size of an ANIM chunk.
75 #define FRGM_CHUNK_SIZE 6 // Size of a FRGM chunk.
76 #define VP8X_CHUNK_SIZE 10 // Size of a VP8X chunk. 75 #define VP8X_CHUNK_SIZE 10 // Size of a VP8X chunk.
77 76
78 #define MAX_CANVAS_SIZE (1 << 24) // 24-bit max for VP8X width/height. 77 #define MAX_CANVAS_SIZE (1 << 24) // 24-bit max for VP8X width/height.
79 #define MAX_IMAGE_AREA (1ULL << 32) // 32-bit max for width x height. 78 #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 79 #define MAX_LOOP_COUNT (1 << 16) // maximum value for loop-count
81 #define MAX_DURATION (1 << 24) // maximum duration 80 #define MAX_DURATION (1 << 24) // maximum duration
82 #define MAX_POSITION_OFFSET (1 << 24) // maximum frame/fragment x/y offset 81 #define MAX_POSITION_OFFSET (1 << 24) // maximum frame x/y offset
83 82
84 // Maximum chunk payload is such that adding the header and padding won't 83 // Maximum chunk payload is such that adding the header and padding won't
85 // overflow a uint32_t. 84 // overflow a uint32_t.
86 #define MAX_CHUNK_PAYLOAD (~0U - CHUNK_HEADER_SIZE - 1) 85 #define MAX_CHUNK_PAYLOAD (~0U - CHUNK_HEADER_SIZE - 1)
87 86
88 #endif /* WEBP_WEBP_FORMAT_CONSTANTS_H_ */ 87 #endif /* WEBP_WEBP_FORMAT_CONSTANTS_H_ */
OLDNEW
« no previous file with comments | « third_party/libwebp/webp/extras.h ('k') | third_party/libwebp/webp/mux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698