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

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

Issue 22802020: libwebp: upstream animation cherry-picks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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 2011 Google Inc. All Rights Reserved. 1 // Copyright 2011 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 // RIFF container manipulation for WEBP images. 10 // RIFF container manipulation for WEBP images.
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 struct WebPMuxFrameInfo { 192 struct WebPMuxFrameInfo {
193 WebPData bitstream; // image data: can either be a raw VP8/VP8L bitstream 193 WebPData bitstream; // image data: can either be a raw VP8/VP8L bitstream
194 // or a single-image WebP file. 194 // or a single-image WebP file.
195 int x_offset; // x-offset of the frame. 195 int x_offset; // x-offset of the frame.
196 int y_offset; // y-offset of the frame. 196 int y_offset; // y-offset of the frame.
197 int duration; // duration of the frame (in milliseconds). 197 int duration; // duration of the frame (in milliseconds).
198 198
199 WebPChunkId id; // frame type: should be one of WEBP_CHUNK_ANMF, 199 WebPChunkId id; // frame type: should be one of WEBP_CHUNK_ANMF,
200 // WEBP_CHUNK_FRGM or WEBP_CHUNK_IMAGE 200 // WEBP_CHUNK_FRGM or WEBP_CHUNK_IMAGE
201 WebPMuxAnimDispose dispose_method; // Disposal method for the frame. 201 WebPMuxAnimDispose dispose_method; // Disposal method for the frame.
202 uint32_t pad[2]; // padding for later use 202 WebPMuxAnimBlend blend_method; // Blend operation for the frame.
fbarchard 2013/08/21 02:00:13 Is WebPMuxAnimBlend blend_method; a full int?
urvang (Google) 2013/08/21 02:16:51 I guess the question comes from the fact that we d
203 uint32_t pad[1]; // padding for later use
203 }; 204 };
204 205
205 // Sets the (non-animated and non-fragmented) image in the mux object. 206 // Sets the (non-animated and non-fragmented) image in the mux object.
206 // Note: Any existing images (including frames/fragments) will be removed. 207 // Note: Any existing images (including frames/fragments) will be removed.
207 // Parameters: 208 // Parameters:
208 // mux - (in/out) object in which the image is to be set 209 // mux - (in/out) object in which the image is to be set
209 // bitstream - (in) can either be a raw VP8/VP8L bitstream or a single-image 210 // bitstream - (in) can either be a raw VP8/VP8L bitstream or a single-image
210 // WebP file (non-animated and non-fragmented) 211 // WebP file (non-animated and non-fragmented)
211 // copy_data - (in) value 1 indicates given data WILL be copied to the mux 212 // copy_data - (in) value 1 indicates given data WILL be copied to the mux
212 // and value 0 indicates data will NOT be copied. 213 // and value 0 indicates data will NOT be copied.
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 WEBP_EXTERN(WebPMuxError) WebPMuxAssemble(WebPMux* mux, 349 WEBP_EXTERN(WebPMuxError) WebPMuxAssemble(WebPMux* mux,
349 WebPData* assembled_data); 350 WebPData* assembled_data);
350 351
351 //------------------------------------------------------------------------------ 352 //------------------------------------------------------------------------------
352 353
353 #if defined(__cplusplus) || defined(c_plusplus) 354 #if defined(__cplusplus) || defined(c_plusplus)
354 } // extern "C" 355 } // extern "C"
355 #endif 356 #endif
356 357
357 #endif /* WEBP_WEBP_MUX_H_ */ 358 #endif /* WEBP_WEBP_MUX_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698