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

Side by Side Diff: source/libvpx/test/vp9_intrapred_test.cc

Issue 1124333011: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: only update to last nights LKGR Created 5 years, 7 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/test/vp9_frame_parallel_test.cc ('k') | source/libvpx/test/vp9_quantize_test.cc » ('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) 2014 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 ASM_REGISTER_STATE_CHECK(pred_fn_(dst_, stride_, const_above_row, 113 ASM_REGISTER_STATE_CHECK(pred_fn_(dst_, stride_, const_above_row,
114 const_left_col, bit_depth_)); 114 const_left_col, bit_depth_));
115 } 115 }
116 intra_pred_fn_t pred_fn_; 116 intra_pred_fn_t pred_fn_;
117 intra_pred_fn_t ref_fn_; 117 intra_pred_fn_t ref_fn_;
118 int bit_depth_; 118 int bit_depth_;
119 }; 119 };
120 120
121 TEST_P(VP9IntraPredTest, IntraPredTests) { 121 TEST_P(VP9IntraPredTest, IntraPredTests) {
122 // max block size is 32 122 // max block size is 32
123 DECLARE_ALIGNED_ARRAY(16, uint16_t, left_col, 2*32); 123 DECLARE_ALIGNED(16, uint16_t, left_col[2*32]);
124 DECLARE_ALIGNED_ARRAY(16, uint16_t, above_data, 2*32+32); 124 DECLARE_ALIGNED(16, uint16_t, above_data[2*32+32]);
125 DECLARE_ALIGNED_ARRAY(16, uint16_t, dst, 3 * 32 * 32); 125 DECLARE_ALIGNED(16, uint16_t, dst[3 * 32 * 32]);
126 DECLARE_ALIGNED_ARRAY(16, uint16_t, ref_dst, 3 * 32 * 32); 126 DECLARE_ALIGNED(16, uint16_t, ref_dst[3 * 32 * 32]);
127 RunTest(left_col, above_data, dst, ref_dst); 127 RunTest(left_col, above_data, dst, ref_dst);
128 } 128 }
129 129
130 using std::tr1::make_tuple; 130 using std::tr1::make_tuple;
131 131
132 #if HAVE_SSE2 132 #if HAVE_SSE2
133 #if CONFIG_VP9_HIGHBITDEPTH 133 #if CONFIG_VP9_HIGHBITDEPTH
134 #if ARCH_X86_64 134 #if ARCH_X86_64
135 INSTANTIATE_TEST_CASE_P(SSE2_TO_C_8, VP9IntraPredTest, 135 INSTANTIATE_TEST_CASE_P(SSE2_TO_C_8, VP9IntraPredTest,
136 ::testing::Values( 136 ::testing::Values(
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 make_tuple(&vp9_highbd_v_predictor_32x32_sse2, 289 make_tuple(&vp9_highbd_v_predictor_32x32_sse2,
290 &vp9_highbd_v_predictor_32x32_c, 32, 12), 290 &vp9_highbd_v_predictor_32x32_c, 32, 12),
291 make_tuple(&vp9_highbd_tm_predictor_4x4_sse, 291 make_tuple(&vp9_highbd_tm_predictor_4x4_sse,
292 &vp9_highbd_tm_predictor_4x4_c, 4, 12), 292 &vp9_highbd_tm_predictor_4x4_c, 4, 12),
293 make_tuple(&vp9_highbd_tm_predictor_8x8_sse2, 293 make_tuple(&vp9_highbd_tm_predictor_8x8_sse2,
294 &vp9_highbd_tm_predictor_8x8_c, 8, 12))); 294 &vp9_highbd_tm_predictor_8x8_c, 8, 12)));
295 #endif 295 #endif
296 #endif // CONFIG_VP9_HIGHBITDEPTH 296 #endif // CONFIG_VP9_HIGHBITDEPTH
297 #endif // HAVE_SSE2 297 #endif // HAVE_SSE2
298 } // namespace 298 } // namespace
OLDNEW
« no previous file with comments | « source/libvpx/test/vp9_frame_parallel_test.cc ('k') | source/libvpx/test/vp9_quantize_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698