quantize.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (c) 2015 The WebM project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #ifndef VPX_DSP_QUANTIZE_H_
  11. #define VPX_DSP_QUANTIZE_H_
  12. #include "./vpx_config.h"
  13. #include "vpx_dsp/vpx_dsp_common.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. void vpx_quantize_dc(const tran_low_t *coeff_ptr, int n_coeffs, int skip_block,
  18. const int16_t *round_ptr, const int16_t quant_ptr,
  19. tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr,
  20. const int16_t dequant_ptr, uint16_t *eob_ptr);
  21. void vpx_quantize_dc_32x32(const tran_low_t *coeff_ptr, int skip_block,
  22. const int16_t *round_ptr, const int16_t quant_ptr,
  23. tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr,
  24. const int16_t dequant_ptr, uint16_t *eob_ptr);
  25. #if CONFIG_VP9_HIGHBITDEPTH
  26. void vpx_highbd_quantize_dc(const tran_low_t *coeff_ptr, int n_coeffs,
  27. int skip_block, const int16_t *round_ptr,
  28. const int16_t quant_ptr, tran_low_t *qcoeff_ptr,
  29. tran_low_t *dqcoeff_ptr, const int16_t dequant_ptr,
  30. uint16_t *eob_ptr);
  31. void vpx_highbd_quantize_dc_32x32(const tran_low_t *coeff_ptr, int skip_block,
  32. const int16_t *round_ptr,
  33. const int16_t quant_ptr,
  34. tran_low_t *qcoeff_ptr,
  35. tran_low_t *dqcoeff_ptr,
  36. const int16_t dequant_ptr, uint16_t *eob_ptr);
  37. #endif
  38. #ifdef __cplusplus
  39. } // extern "C"
  40. #endif
  41. #endif // VPX_DSP_QUANTIZE_H_