Roll DEPS for libelf clang compilation fix.
[chromium-blink-merge.git] / third_party / libwebp / utils / quant_levels_dec.c
blob8489705a2d7eb04daca003bfaa53863d7891f7e2
1 // Copyright 2013 Google Inc. All Rights Reserved.
2 //
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
5 // tree. An additional intellectual property rights grant can be found
6 // in the file PATENTS. All contributing project authors may
7 // be found in the AUTHORS file in the root of the source tree.
8 // -----------------------------------------------------------------------------
9 //
10 // TODO(skal): implement gradient smoothing.
12 // Author: Skal (pascal.massimino@gmail.com)
14 #include "./quant_levels_dec.h"
16 int DequantizeLevels(uint8_t* const data, int width, int height,
17 int row, int num_rows) {
18 if (data == NULL || width <= 0 || height <= 0 || row < 0 || num_rows < 0 ||
19 row + num_rows > height) {
20 return 0;
22 return 1;