• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 Google Inc. All Rights Reserved.
2 //
3 // This code is licensed under the same terms as WebM:
4 //  Software License Agreement:  http://www.webmproject.org/license/software/
5 //  Additional IP Rights Grant:  http://www.webmproject.org/license/additional/
6 // -----------------------------------------------------------------------------
7 //
8 // Alpha plane de-quantization utility
9 //
10 // Author:  Vikas Arora (vikasa@google.com)
11 
12 #ifndef WEBP_UTILS_QUANT_LEVELS_DEC_H_
13 #define WEBP_UTILS_QUANT_LEVELS_DEC_H_
14 
15 #include "webp/types.h"
16 
17 #if defined(__cplusplus) || defined(c_plusplus)
18 extern "C" {
19 #endif
20 
21 // Apply post-processing to input 'data' of size 'width'x'height' assuming
22 // that the source was quantized to a reduced number of levels.
23 // Returns false in case of error (data is NULL, invalid parameters, ...).
24 int DequantizeLevels(uint8_t* const data, int width, int height);
25 
26 #if defined(__cplusplus) || defined(c_plusplus)
27 }    // extern "C"
28 #endif
29 
30 #endif  /* WEBP_UTILS_QUANT_LEVELS_DEC_H_ */
31