OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |