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