| 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 |
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 | 747 |
| 748 // Columns | 748 // Columns |
| 749 for (i = 0; i < 32; ++i) { | 749 for (i = 0; i < 32; ++i) { |
| 750 tran_high_t temp_in[32], temp_out[32]; | 750 tran_high_t temp_in[32], temp_out[32]; |
| 751 for (j = 0; j < 32; ++j) | 751 for (j = 0; j < 32; ++j) |
| 752 temp_in[j] = input[j * stride + i] * 4; | 752 temp_in[j] = input[j * stride + i] * 4; |
| 753 vpx_fdct32(temp_in, temp_out, 0); | 753 vpx_fdct32(temp_in, temp_out, 0); |
| 754 for (j = 0; j < 32; ++j) | 754 for (j = 0; j < 32; ++j) |
| 755 // TODO(cd): see quality impact of only doing | 755 // TODO(cd): see quality impact of only doing |
| 756 // output[j * 32 + i] = (temp_out[j] + 1) >> 2; | 756 // output[j * 32 + i] = (temp_out[j] + 1) >> 2; |
| 757 // PS: also change code in vp9/encoder/x86/vp9_dct_sse2.c | 757 // PS: also change code in vpx_dsp/x86/vpx_dct_sse2.c |
| 758 output[j * 32 + i] = (temp_out[j] + 1 + (temp_out[j] > 0)) >> 2; | 758 output[j * 32 + i] = (temp_out[j] + 1 + (temp_out[j] > 0)) >> 2; |
| 759 } | 759 } |
| 760 | 760 |
| 761 // Rows | 761 // Rows |
| 762 for (i = 0; i < 32; ++i) { | 762 for (i = 0; i < 32; ++i) { |
| 763 tran_high_t temp_in[32], temp_out[32]; | 763 tran_high_t temp_in[32], temp_out[32]; |
| 764 for (j = 0; j < 32; ++j) | 764 for (j = 0; j < 32; ++j) |
| 765 temp_in[j] = output[j + i * 32]; | 765 temp_in[j] = output[j + i * 32]; |
| 766 vpx_fdct32(temp_in, temp_out, 1); | 766 vpx_fdct32(temp_in, temp_out, 1); |
| 767 for (j = 0; j < 32; ++j) | 767 for (j = 0; j < 32; ++j) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 void vpx_highbd_fdct32x32_rd_c(const int16_t *input, tran_low_t *out, | 813 void vpx_highbd_fdct32x32_rd_c(const int16_t *input, tran_low_t *out, |
| 814 int stride) { | 814 int stride) { |
| 815 vpx_fdct32x32_rd_c(input, out, stride); | 815 vpx_fdct32x32_rd_c(input, out, stride); |
| 816 } | 816 } |
| 817 | 817 |
| 818 void vpx_highbd_fdct32x32_1_c(const int16_t *input, tran_low_t *out, | 818 void vpx_highbd_fdct32x32_1_c(const int16_t *input, tran_low_t *out, |
| 819 int stride) { | 819 int stride) { |
| 820 vpx_fdct32x32_1_c(input, out, stride); | 820 vpx_fdct32x32_1_c(input, out, stride); |
| 821 } | 821 } |
| 822 #endif // CONFIG_VP9_HIGHBITDEPTH | 822 #endif // CONFIG_VP9_HIGHBITDEPTH |
| OLD | NEW |