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

Side by Side Diff: third_party/libwebp/utils/quant_levels_dec.c

Issue 116213006: Update libwebp to 0.4.0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: After Blink Roll Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « third_party/libwebp/utils/quant_levels_dec.h ('k') | third_party/libwebp/utils/random.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 2013 Google Inc. All Rights Reserved. 1 // Copyright 2013 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 // TODO(skal): implement gradient smoothing. 10 // TODO(skal): implement gradient smoothing.
11 // 11 //
12 // Author: Skal (pascal.massimino@gmail.com) 12 // Author: Skal (pascal.massimino@gmail.com)
13 13
14 #include "./quant_levels_dec.h" 14 #include "./quant_levels_dec.h"
15 15
16 #if defined(__cplusplus) || defined(c_plusplus) 16 int DequantizeLevels(uint8_t* const data, int width, int height,
17 extern "C" { 17 int row, int num_rows) {
18 #endif 18 if (data == NULL || width <= 0 || height <= 0 || row < 0 || num_rows < 0 ||
19 19 row + num_rows > height) {
20 int DequantizeLevels(uint8_t* const data, int width, int height) { 20 return 0;
21 if (data == NULL || width <= 0 || height <= 0) return 0; 21 }
22 (void)data;
23 (void)width;
24 (void)height;
25 return 1; 22 return 1;
26 } 23 }
27 24
28 #if defined(__cplusplus) || defined(c_plusplus)
29 } // extern "C"
30 #endif
OLDNEW
« no previous file with comments | « third_party/libwebp/utils/quant_levels_dec.h ('k') | third_party/libwebp/utils/random.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698