Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Side by Side Diff: source/libvpx/vpx_dsp/fwd_txfm.c

Issue 1302353004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/libvpx/vpx_dsp/fastssim.c ('k') | source/libvpx/vpx_dsp/inv_txfm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « source/libvpx/vpx_dsp/fastssim.c ('k') | source/libvpx/vpx_dsp/inv_txfm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698