Blame src/utils/quant_levels_dec_utils.h

Packit 9c6abc
// Copyright 2013 Google Inc. All Rights Reserved.
Packit 9c6abc
//
Packit 9c6abc
// Use of this source code is governed by a BSD-style license
Packit 9c6abc
// that can be found in the COPYING file in the root of the source
Packit 9c6abc
// tree. An additional intellectual property rights grant can be found
Packit 9c6abc
// in the file PATENTS. All contributing project authors may
Packit 9c6abc
// be found in the AUTHORS file in the root of the source tree.
Packit 9c6abc
// -----------------------------------------------------------------------------
Packit 9c6abc
//
Packit 9c6abc
// Alpha plane de-quantization utility
Packit 9c6abc
//
Packit 9c6abc
// Author:  Vikas Arora (vikasa@google.com)
Packit 9c6abc
Packit 9c6abc
#ifndef WEBP_UTILS_QUANT_LEVELS_DEC_UTILS_H_
Packit 9c6abc
#define WEBP_UTILS_QUANT_LEVELS_DEC_UTILS_H_
Packit 9c6abc
Packit 9c6abc
#include "src/webp/types.h"
Packit 9c6abc
Packit 9c6abc
#ifdef __cplusplus
Packit 9c6abc
extern "C" {
Packit 9c6abc
#endif
Packit 9c6abc
Packit 9c6abc
// Apply post-processing to input 'data' of size 'width'x'height' assuming that
Packit 9c6abc
// the source was quantized to a reduced number of levels. 'stride' is in bytes.
Packit 9c6abc
// Strength is in [0..100] and controls the amount of dithering applied.
Packit 9c6abc
// Returns false in case of error (data is NULL, invalid parameters,
Packit 9c6abc
// malloc failure, ...).
Packit 9c6abc
int WebPDequantizeLevels(uint8_t* const data, int width, int height, int stride,
Packit 9c6abc
                         int strength);
Packit 9c6abc
Packit 9c6abc
#ifdef __cplusplus
Packit 9c6abc
}    // extern "C"
Packit 9c6abc
#endif
Packit 9c6abc
Packit 9c6abc
#endif  /* WEBP_UTILS_QUANT_LEVELS_DEC_UTILS_H_ */