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

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

Issue 554673004: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/test/resize_test.cc ('k') | source/libvpx/test/svc_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) 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 10
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 const SadMxNParam mmx_tests[] = { 498 const SadMxNParam mmx_tests[] = {
499 make_tuple(16, 16, sad_16x16_mmx), 499 make_tuple(16, 16, sad_16x16_mmx),
500 make_tuple(8, 16, sad_8x16_mmx), 500 make_tuple(8, 16, sad_8x16_mmx),
501 make_tuple(16, 8, sad_16x8_mmx), 501 make_tuple(16, 8, sad_16x8_mmx),
502 make_tuple(8, 8, sad_8x8_mmx), 502 make_tuple(8, 8, sad_8x8_mmx),
503 make_tuple(4, 4, sad_4x4_mmx), 503 make_tuple(4, 4, sad_4x4_mmx),
504 }; 504 };
505 INSTANTIATE_TEST_CASE_P(MMX, SADTest, ::testing::ValuesIn(mmx_tests)); 505 INSTANTIATE_TEST_CASE_P(MMX, SADTest, ::testing::ValuesIn(mmx_tests));
506 #endif // CONFIG_VP8_ENCODER 506 #endif // CONFIG_VP8_ENCODER
507 507
508 #if CONFIG_VP9_ENCODER
509 const SadMxNVp9Func sad_16x16_mmx_vp9 = vp9_sad16x16_mmx;
510 const SadMxNVp9Func sad_8x16_mmx_vp9 = vp9_sad8x16_mmx;
511 const SadMxNVp9Func sad_16x8_mmx_vp9 = vp9_sad16x8_mmx;
512 const SadMxNVp9Func sad_8x8_mmx_vp9 = vp9_sad8x8_mmx;
513 const SadMxNVp9Func sad_4x4_mmx_vp9 = vp9_sad4x4_mmx;
514 const SadMxNVp9Param mmx_vp9_tests[] = {
515 make_tuple(16, 16, sad_16x16_mmx_vp9),
516 make_tuple(8, 16, sad_8x16_mmx_vp9),
517 make_tuple(16, 8, sad_16x8_mmx_vp9),
518 make_tuple(8, 8, sad_8x8_mmx_vp9),
519 make_tuple(4, 4, sad_4x4_mmx_vp9),
520 };
521 INSTANTIATE_TEST_CASE_P(MMX, SADVP9Test, ::testing::ValuesIn(mmx_vp9_tests));
522 #endif // CONFIG_VP9_ENCODER
523 #endif // HAVE_MMX 508 #endif // HAVE_MMX
524 509
525 #if HAVE_SSE 510 #if HAVE_SSE
526 #if CONFIG_VP9_ENCODER 511 #if CONFIG_VP9_ENCODER
527 #if CONFIG_USE_X86INC 512 #if CONFIG_USE_X86INC
528 const SadMxNVp9Func sad_4x4_sse_vp9 = vp9_sad4x4_sse; 513 const SadMxNVp9Func sad_4x4_sse_vp9 = vp9_sad4x4_sse;
529 const SadMxNVp9Func sad_4x8_sse_vp9 = vp9_sad4x8_sse; 514 const SadMxNVp9Func sad_4x8_sse_vp9 = vp9_sad4x8_sse;
530 INSTANTIATE_TEST_CASE_P(SSE, SADVP9Test, ::testing::Values( 515 INSTANTIATE_TEST_CASE_P(SSE, SADVP9Test, ::testing::Values(
531 make_tuple(4, 4, sad_4x4_sse_vp9), 516 make_tuple(4, 4, sad_4x4_sse_vp9),
532 make_tuple(4, 8, sad_4x8_sse_vp9))); 517 make_tuple(4, 8, sad_4x8_sse_vp9)));
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 #if CONFIG_VP9_ENCODER 627 #if CONFIG_VP9_ENCODER
643 const SadMxNx4Func sad_64x64x4d_avx2 = vp9_sad64x64x4d_avx2; 628 const SadMxNx4Func sad_64x64x4d_avx2 = vp9_sad64x64x4d_avx2;
644 const SadMxNx4Func sad_32x32x4d_avx2 = vp9_sad32x32x4d_avx2; 629 const SadMxNx4Func sad_32x32x4d_avx2 = vp9_sad32x32x4d_avx2;
645 INSTANTIATE_TEST_CASE_P(AVX2, SADx4Test, ::testing::Values( 630 INSTANTIATE_TEST_CASE_P(AVX2, SADx4Test, ::testing::Values(
646 make_tuple(32, 32, sad_32x32x4d_avx2), 631 make_tuple(32, 32, sad_32x32x4d_avx2),
647 make_tuple(64, 64, sad_64x64x4d_avx2))); 632 make_tuple(64, 64, sad_64x64x4d_avx2)));
648 #endif // CONFIG_VP9_ENCODER 633 #endif // CONFIG_VP9_ENCODER
649 #endif // HAVE_AVX2 634 #endif // HAVE_AVX2
650 635
651 } // namespace 636 } // namespace
OLDNEW
« no previous file with comments | « source/libvpx/test/resize_test.cc ('k') | source/libvpx/test/svc_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698