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