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

Side by Side Diff: third_party/libwebp/dec/buffer_dec.c

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/dec/buffer.c ('k') | third_party/libwebp/dec/common.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 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 // Everything about WebPDecBuffer 10 // Everything about WebPDecBuffer
11 // 11 //
12 // Author: Skal (pascal.massimino@gmail.com) 12 // Author: Skal (pascal.massimino@gmail.com)
13 13
14 #include <stdlib.h> 14 #include <stdlib.h>
15 15
16 #include "./vp8i.h" 16 #include "./vp8i_dec.h"
17 #include "./webpi.h" 17 #include "./webpi_dec.h"
18 #include "../utils/utils.h" 18 #include "../utils/utils.h"
19 19
20 //------------------------------------------------------------------------------ 20 //------------------------------------------------------------------------------
21 // WebPDecBuffer 21 // WebPDecBuffer
22 22
23 // Number of bytes per pixel for the different color-spaces. 23 // Number of bytes per pixel for the different color-spaces.
24 static const int kModeBpp[MODE_LAST] = { 24 static const int kModeBpp[MODE_LAST] = {
25 3, 4, 3, 4, 4, 2, 2, 25 3, 4, 3, 4, 4, 2, 2,
26 4, 4, 4, 2, // pre-multiplied modes 26 4, 4, 4, 2, // pre-multiplied modes
27 1, 1 }; 27 1, 1 };
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 291
292 int WebPAvoidSlowMemory(const WebPDecBuffer* const output, 292 int WebPAvoidSlowMemory(const WebPDecBuffer* const output,
293 const WebPBitstreamFeatures* const features) { 293 const WebPBitstreamFeatures* const features) {
294 assert(output != NULL); 294 assert(output != NULL);
295 return (output->is_external_memory >= 2) && 295 return (output->is_external_memory >= 2) &&
296 WebPIsPremultipliedMode(output->colorspace) && 296 WebPIsPremultipliedMode(output->colorspace) &&
297 (features != NULL && features->has_alpha); 297 (features != NULL && features->has_alpha);
298 } 298 }
299 299
300 //------------------------------------------------------------------------------ 300 //------------------------------------------------------------------------------
OLDNEW
« no previous file with comments | « third_party/libwebp/dec/buffer.c ('k') | third_party/libwebp/dec/common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698