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

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

Issue 181493009: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/test/test_vectors.cc ('k') | source/libvpx/test/video_source.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) 2012 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 #include <stdlib.h> 10 #include <stdlib.h>
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 const vp8_variance_fn_t variance16x8_c = vp8_variance16x8_c; 300 const vp8_variance_fn_t variance16x8_c = vp8_variance16x8_c;
301 const vp8_variance_fn_t variance16x16_c = vp8_variance16x16_c; 301 const vp8_variance_fn_t variance16x16_c = vp8_variance16x16_c;
302 INSTANTIATE_TEST_CASE_P( 302 INSTANTIATE_TEST_CASE_P(
303 C, VP8VarianceTest, 303 C, VP8VarianceTest,
304 ::testing::Values(make_tuple(2, 2, variance4x4_c), 304 ::testing::Values(make_tuple(2, 2, variance4x4_c),
305 make_tuple(3, 3, variance8x8_c), 305 make_tuple(3, 3, variance8x8_c),
306 make_tuple(3, 4, variance8x16_c), 306 make_tuple(3, 4, variance8x16_c),
307 make_tuple(4, 3, variance16x8_c), 307 make_tuple(4, 3, variance16x8_c),
308 make_tuple(4, 4, variance16x16_c))); 308 make_tuple(4, 4, variance16x16_c)));
309 309
310 #if HAVE_NEON
311 const vp8_variance_fn_t variance8x8_neon = vp8_variance8x8_neon;
312 const vp8_variance_fn_t variance8x16_neon = vp8_variance8x16_neon;
313 const vp8_variance_fn_t variance16x8_neon = vp8_variance16x8_neon;
314 const vp8_variance_fn_t variance16x16_neon = vp8_variance16x16_neon;
315 INSTANTIATE_TEST_CASE_P(
316 NEON, VP8VarianceTest,
317 ::testing::Values(make_tuple(3, 3, variance8x8_neon),
318 make_tuple(3, 4, variance8x16_neon),
319 make_tuple(4, 3, variance16x8_neon),
320 make_tuple(4, 4, variance16x16_neon)));
321 #endif
322
310 #if HAVE_MMX 323 #if HAVE_MMX
311 const vp8_variance_fn_t variance4x4_mmx = vp8_variance4x4_mmx; 324 const vp8_variance_fn_t variance4x4_mmx = vp8_variance4x4_mmx;
312 const vp8_variance_fn_t variance8x8_mmx = vp8_variance8x8_mmx; 325 const vp8_variance_fn_t variance8x8_mmx = vp8_variance8x8_mmx;
313 const vp8_variance_fn_t variance8x16_mmx = vp8_variance8x16_mmx; 326 const vp8_variance_fn_t variance8x16_mmx = vp8_variance8x16_mmx;
314 const vp8_variance_fn_t variance16x8_mmx = vp8_variance16x8_mmx; 327 const vp8_variance_fn_t variance16x8_mmx = vp8_variance16x8_mmx;
315 const vp8_variance_fn_t variance16x16_mmx = vp8_variance16x16_mmx; 328 const vp8_variance_fn_t variance16x16_mmx = vp8_variance16x16_mmx;
316 INSTANTIATE_TEST_CASE_P( 329 INSTANTIATE_TEST_CASE_P(
317 MMX, VP8VarianceTest, 330 MMX, VP8VarianceTest,
318 ::testing::Values(make_tuple(2, 2, variance4x4_mmx), 331 ::testing::Values(make_tuple(2, 2, variance4x4_mmx),
319 make_tuple(3, 3, variance8x8_mmx), 332 make_tuple(3, 3, variance8x8_mmx),
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 make_tuple(5, 6, subpel_avg_variance32x64_ssse3), 700 make_tuple(5, 6, subpel_avg_variance32x64_ssse3),
688 make_tuple(6, 5, subpel_avg_variance64x32_ssse3), 701 make_tuple(6, 5, subpel_avg_variance64x32_ssse3),
689 make_tuple(6, 6, subpel_avg_variance64x64_ssse3))); 702 make_tuple(6, 6, subpel_avg_variance64x64_ssse3)));
690 #endif 703 #endif
691 #endif 704 #endif
692 #endif // CONFIG_VP9_ENCODER 705 #endif // CONFIG_VP9_ENCODER
693 706
694 } // namespace vp9 707 } // namespace vp9
695 708
696 } // namespace 709 } // namespace
OLDNEW
« no previous file with comments | « source/libvpx/test/test_vectors.cc ('k') | source/libvpx/test/video_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698