blob: c55ab234e7388456d448c0aa2e4ceb109df6b486 [file] [log] [blame]
Yaowu Xuc27fc142016-08-22 16:08:15 -07001/*
Yaowu Xu9c01aa12016-09-01 14:32:49 -07002 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
Yaowu Xuc27fc142016-08-22 16:08:15 -07003 *
Yaowu Xu9c01aa12016-09-01 14:32:49 -07004 * This source code is subject to the terms of the BSD 2 Clause License and
5 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6 * was not distributed with this source code in the LICENSE file, you can
7 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
8 * Media Patent License 1.0 was not distributed with this source code in the
9 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
Yaowu Xuc27fc142016-08-22 16:08:15 -070010 */
11
James Zerne1cbb132018-08-22 14:10:36 -070012#ifndef AOM_AOM_DSP_QUANTIZE_H_
13#define AOM_AOM_DSP_QUANTIZE_H_
Yaowu Xuc27fc142016-08-22 16:08:15 -070014
Tom Finegan60e653d2018-05-22 11:34:58 -070015#include "config/aom_config.h"
16
Yaowu Xuf883b422016-08-30 14:01:10 -070017#include "aom_dsp/aom_dsp_common.h"
Yaowu Xuc27fc142016-08-22 16:08:15 -070018
19#ifdef __cplusplus
20extern "C" {
21#endif
22
Thomas Daviesf3b5ee12017-07-18 15:16:43 +010023void quantize_b_helper_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs,
Peng Binf36be562018-09-07 15:28:46 +080024 const int16_t *zbin_ptr, const int16_t *round_ptr,
25 const int16_t *quant_ptr,
Thomas Daviesf3b5ee12017-07-18 15:16:43 +010026 const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr,
27 tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr,
28 uint16_t *eob_ptr, const int16_t *scan,
29 const int16_t *iscan, const qm_val_t *qm_ptr,
30 const qm_val_t *iqm_ptr, const int log_scale);
31
Yaowu Xuf883b422016-08-30 14:01:10 -070032void aom_quantize_b_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs,
Peng Binf36be562018-09-07 15:28:46 +080033 const int16_t *zbin_ptr, const int16_t *round_ptr,
34 const int16_t *quant_ptr, const int16_t *quant_shift_ptr,
35 tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr,
36 const int16_t *dequant_ptr, uint16_t *eob_ptr,
37 const int16_t *scan, const int16_t *iscan);
Thomas Daviesf3b5ee12017-07-18 15:16:43 +010038
Thomas Davies181fc082017-08-09 14:26:53 +010039void highbd_quantize_b_helper_c(
Peng Bin6b971982018-09-07 15:21:40 +080040 const tran_low_t *coeff_ptr, intptr_t n_coeffs, const int16_t *zbin_ptr,
41 const int16_t *round_ptr, const int16_t *quant_ptr,
Thomas Davies181fc082017-08-09 14:26:53 +010042 const int16_t *quant_shift_ptr, tran_low_t *qcoeff_ptr,
43 tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr,
44 const int16_t *scan, const int16_t *iscan, const qm_val_t *qm_ptr,
45 const qm_val_t *iqm_ptr, const int log_scale);
46
Thomas Daviesf3b5ee12017-07-18 15:16:43 +010047void aom_highbd_quantize_b_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs,
Peng Bin6b971982018-09-07 15:21:40 +080048 const int16_t *zbin_ptr, const int16_t *round_ptr,
49 const int16_t *quant_ptr,
Thomas Daviesf3b5ee12017-07-18 15:16:43 +010050 const int16_t *quant_shift_ptr,
51 tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr,
52 const int16_t *dequant_ptr, uint16_t *eob_ptr,
53 const int16_t *scan, const int16_t *iscan);
Thomas Daviesf3b5ee12017-07-18 15:16:43 +010054
Yaowu Xuc27fc142016-08-22 16:08:15 -070055#ifdef __cplusplus
56} // extern "C"
57#endif
58
James Zerne1cbb132018-08-22 14:10:36 -070059#endif // AOM_AOM_DSP_QUANTIZE_H_