1 // Copyright 2013 Google Inc. All Rights Reserved.
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 // -----------------------------------------------------------------------------
10 // Alpha plane de-quantization utility
12 // Author: Vikas Arora (vikasa@google.com)
14 #ifndef WEBP_UTILS_QUANT_LEVELS_DEC_H_
15 #define WEBP_UTILS_QUANT_LEVELS_DEC_H_
17 #include "../webp/types.h"
19 #if defined(__cplusplus) || defined(c_plusplus)
23 // Apply post-processing to input 'data' of size 'width'x'height' assuming
24 // that the source was quantized to a reduced number of levels.
25 // Returns false in case of error (data is NULL, invalid parameters, ...).
26 int DequantizeLevels(uint8_t* const data, int width, int height);
28 #if defined(__cplusplus) || defined(c_plusplus)
32 #endif /* WEBP_UTILS_QUANT_LEVELS_DEC_H_ */