OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 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 #include <assert.h> | 11 #include <assert.h> |
12 #include <math.h> | 12 #include <math.h> |
13 | 13 |
14 #include "./vpx_config.h" | 14 #include "./vpx_config.h" |
15 #include "./vp9_rtcd.h" | 15 #include "./vp9_rtcd.h" |
16 | 16 |
| 17 #include "vpx_ports/mem.h" |
17 #include "vp9/common/vp9_blockd.h" | 18 #include "vp9/common/vp9_blockd.h" |
18 #include "vp9/common/vp9_idct.h" | 19 #include "vp9/common/vp9_idct.h" |
19 #include "vp9/common/vp9_systemdependent.h" | 20 #include "vp9/common/vp9_systemdependent.h" |
20 #include "vp9/encoder/vp9_dct.h" | 21 #include "vp9/encoder/vp9_dct.h" |
21 | 22 |
22 static INLINE tran_high_t fdct_round_shift(tran_high_t input) { | 23 static INLINE tran_high_t fdct_round_shift(tran_high_t input) { |
23 tran_high_t rv = ROUND_POWER_OF_TWO(input, DCT_CONST_BITS); | 24 tran_high_t rv = ROUND_POWER_OF_TWO(input, DCT_CONST_BITS); |
24 // TODO(debargha, peter.derivaz): Find new bounds for this assert | 25 // TODO(debargha, peter.derivaz): Find new bounds for this assert |
25 // and make the bounds consts. | 26 // and make the bounds consts. |
26 // assert(INT16_MIN <= rv && rv <= INT16_MAX); | 27 // assert(INT16_MIN <= rv && rv <= INT16_MAX); |
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1582 | 1583 |
1583 void vp9_highbd_fdct32x32_c(const int16_t *input, tran_low_t *out, int stride) { | 1584 void vp9_highbd_fdct32x32_c(const int16_t *input, tran_low_t *out, int stride) { |
1584 vp9_fdct32x32_c(input, out, stride); | 1585 vp9_fdct32x32_c(input, out, stride); |
1585 } | 1586 } |
1586 | 1587 |
1587 void vp9_highbd_fdct32x32_rd_c(const int16_t *input, tran_low_t *out, | 1588 void vp9_highbd_fdct32x32_rd_c(const int16_t *input, tran_low_t *out, |
1588 int stride) { | 1589 int stride) { |
1589 vp9_fdct32x32_rd_c(input, out, stride); | 1590 vp9_fdct32x32_rd_c(input, out, stride); |
1590 } | 1591 } |
1591 #endif // CONFIG_VP9_HIGHBITDEPTH | 1592 #endif // CONFIG_VP9_HIGHBITDEPTH |
OLD | NEW |