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

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

Issue 484923003: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 4 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/examples/set_maps.c ('k') | source/libvpx/test/frame_size_tests.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) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 make_tuple(16, 16, &convolve8_ssse3), 639 make_tuple(16, 16, &convolve8_ssse3),
640 make_tuple(32, 16, &convolve8_ssse3), 640 make_tuple(32, 16, &convolve8_ssse3),
641 make_tuple(16, 32, &convolve8_ssse3), 641 make_tuple(16, 32, &convolve8_ssse3),
642 make_tuple(32, 32, &convolve8_ssse3), 642 make_tuple(32, 32, &convolve8_ssse3),
643 make_tuple(64, 32, &convolve8_ssse3), 643 make_tuple(64, 32, &convolve8_ssse3),
644 make_tuple(32, 64, &convolve8_ssse3), 644 make_tuple(32, 64, &convolve8_ssse3),
645 make_tuple(64, 64, &convolve8_ssse3))); 645 make_tuple(64, 64, &convolve8_ssse3)));
646 #endif 646 #endif
647 647
648 #if HAVE_AVX2 648 #if HAVE_AVX2
649 // TODO(jzern): these prototypes can be removed after the avx2 versions are
650 // reenabled in vp9_rtcd_defs.pl.
651 extern "C" {
652 void vp9_convolve8_vert_avx2(const uint8_t *src, ptrdiff_t src_stride,
653 uint8_t *dst, ptrdiff_t dst_stride,
654 const int16_t *filter_x, int x_step_q4,
655 const int16_t *filter_y, int y_step_q4,
656 int w, int h);
657 void vp9_convolve8_horiz_avx2(const uint8_t *src, ptrdiff_t src_stride,
658 uint8_t *dst, ptrdiff_t dst_stride,
659 const int16_t *filter_x, int x_step_q4,
660 const int16_t *filter_y, int y_step_q4,
661 int w, int h);
662 void vp9_convolve8_avx2(const uint8_t *src, ptrdiff_t src_stride,
663 uint8_t *dst, ptrdiff_t dst_stride,
664 const int16_t *filter_x, int x_step_q4,
665 const int16_t *filter_y, int y_step_q4,
666 int w, int h);
667 }
668
669 const ConvolveFunctions convolve8_avx2( 649 const ConvolveFunctions convolve8_avx2(
670 vp9_convolve8_horiz_avx2, vp9_convolve8_avg_horiz_ssse3, 650 vp9_convolve8_horiz_avx2, vp9_convolve8_avg_horiz_ssse3,
671 vp9_convolve8_vert_avx2, vp9_convolve8_avg_vert_ssse3, 651 vp9_convolve8_vert_avx2, vp9_convolve8_avg_vert_ssse3,
672 vp9_convolve8_avx2, vp9_convolve8_avg_ssse3); 652 vp9_convolve8_avx2, vp9_convolve8_avg_ssse3);
673 653
674 INSTANTIATE_TEST_CASE_P(AVX2, ConvolveTest, ::testing::Values( 654 INSTANTIATE_TEST_CASE_P(AVX2, ConvolveTest, ::testing::Values(
675 make_tuple(4, 4, &convolve8_avx2), 655 make_tuple(4, 4, &convolve8_avx2),
676 make_tuple(8, 4, &convolve8_avx2), 656 make_tuple(8, 4, &convolve8_avx2),
677 make_tuple(4, 8, &convolve8_avx2), 657 make_tuple(4, 8, &convolve8_avx2),
678 make_tuple(8, 8, &convolve8_avx2), 658 make_tuple(8, 8, &convolve8_avx2),
679 make_tuple(8, 16, &convolve8_avx2))); 659 make_tuple(8, 16, &convolve8_avx2),
680
681 INSTANTIATE_TEST_CASE_P(DISABLED_AVX2, ConvolveTest, ::testing::Values(
682 make_tuple(16, 8, &convolve8_avx2), 660 make_tuple(16, 8, &convolve8_avx2),
683 make_tuple(16, 16, &convolve8_avx2), 661 make_tuple(16, 16, &convolve8_avx2),
684 make_tuple(32, 16, &convolve8_avx2), 662 make_tuple(32, 16, &convolve8_avx2),
685 make_tuple(16, 32, &convolve8_avx2), 663 make_tuple(16, 32, &convolve8_avx2),
686 make_tuple(32, 32, &convolve8_avx2), 664 make_tuple(32, 32, &convolve8_avx2),
687 make_tuple(64, 32, &convolve8_avx2), 665 make_tuple(64, 32, &convolve8_avx2),
688 make_tuple(32, 64, &convolve8_avx2), 666 make_tuple(32, 64, &convolve8_avx2),
689 make_tuple(64, 64, &convolve8_avx2))); 667 make_tuple(64, 64, &convolve8_avx2)));
690 #endif 668 #endif
691 669
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 make_tuple(8, 16, &convolve8_dspr2), 704 make_tuple(8, 16, &convolve8_dspr2),
727 make_tuple(16, 16, &convolve8_dspr2), 705 make_tuple(16, 16, &convolve8_dspr2),
728 make_tuple(32, 16, &convolve8_dspr2), 706 make_tuple(32, 16, &convolve8_dspr2),
729 make_tuple(16, 32, &convolve8_dspr2), 707 make_tuple(16, 32, &convolve8_dspr2),
730 make_tuple(32, 32, &convolve8_dspr2), 708 make_tuple(32, 32, &convolve8_dspr2),
731 make_tuple(64, 32, &convolve8_dspr2), 709 make_tuple(64, 32, &convolve8_dspr2),
732 make_tuple(32, 64, &convolve8_dspr2), 710 make_tuple(32, 64, &convolve8_dspr2),
733 make_tuple(64, 64, &convolve8_dspr2))); 711 make_tuple(64, 64, &convolve8_dspr2)));
734 #endif 712 #endif
735 } // namespace 713 } // namespace
OLDNEW
« no previous file with comments | « source/libvpx/examples/set_maps.c ('k') | source/libvpx/test/frame_size_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698