Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 1 | /* |
Yaowu Xu | 9c01aa1 | 2016-09-01 14:32:49 -0700 | [diff] [blame] | 2 | * Copyright (c) 2016, Alliance for Open Media. All rights reserved |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 3 | * |
Yaowu Xu | 9c01aa1 | 2016-09-01 14:32:49 -0700 | [diff] [blame] | 4 | * 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 Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 10 | */ |
| 11 | |
James Zern | e1cbb13 | 2018-08-22 14:10:36 -0700 | [diff] [blame] | 12 | #ifndef AOM_AOM_DSP_QUANTIZE_H_ |
| 13 | #define AOM_AOM_DSP_QUANTIZE_H_ |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 14 | |
Tom Finegan | 60e653d | 2018-05-22 11:34:58 -0700 | [diff] [blame] | 15 | #include "config/aom_config.h" |
| 16 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 17 | #include "aom_dsp/aom_dsp_common.h" |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 18 | |
| 19 | #ifdef __cplusplus |
| 20 | extern "C" { |
| 21 | #endif |
| 22 | |
Thomas Davies | f3b5ee1 | 2017-07-18 15:16:43 +0100 | [diff] [blame] | 23 | void quantize_b_helper_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, |
Peng Bin | f36be56 | 2018-09-07 15:28:46 +0800 | [diff] [blame] | 24 | const int16_t *zbin_ptr, const int16_t *round_ptr, |
| 25 | const int16_t *quant_ptr, |
Thomas Davies | f3b5ee1 | 2017-07-18 15:16:43 +0100 | [diff] [blame] | 26 | 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 Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 32 | void aom_quantize_b_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, |
Peng Bin | f36be56 | 2018-09-07 15:28:46 +0800 | [diff] [blame] | 33 | 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 Davies | f3b5ee1 | 2017-07-18 15:16:43 +0100 | [diff] [blame] | 38 | |
Thomas Davies | 181fc08 | 2017-08-09 14:26:53 +0100 | [diff] [blame] | 39 | void highbd_quantize_b_helper_c( |
Peng Bin | 6b97198 | 2018-09-07 15:21:40 +0800 | [diff] [blame] | 40 | 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 Davies | 181fc08 | 2017-08-09 14:26:53 +0100 | [diff] [blame] | 42 | 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 Davies | f3b5ee1 | 2017-07-18 15:16:43 +0100 | [diff] [blame] | 47 | void aom_highbd_quantize_b_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, |
Peng Bin | 6b97198 | 2018-09-07 15:21:40 +0800 | [diff] [blame] | 48 | const int16_t *zbin_ptr, const int16_t *round_ptr, |
| 49 | const int16_t *quant_ptr, |
Thomas Davies | f3b5ee1 | 2017-07-18 15:16:43 +0100 | [diff] [blame] | 50 | 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 Davies | f3b5ee1 | 2017-07-18 15:16:43 +0100 | [diff] [blame] | 54 | |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 55 | #ifdef __cplusplus |
| 56 | } // extern "C" |
| 57 | #endif |
| 58 | |
James Zern | e1cbb13 | 2018-08-22 14:10:36 -0700 | [diff] [blame] | 59 | #endif // AOM_AOM_DSP_QUANTIZE_H_ |