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

Side by Side Diff: source/convert_from.cc

Issue 2626123003: Libyuv MIPS DSPR2 optimizations. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « source/convert_argb.cc ('k') | source/convert_from_argb.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 2012 The LibYuv Project Authors. All rights reserved. 2 * Copyright 2012 The LibYuv 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 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 } 701 }
702 #endif 702 #endif
703 #if defined(HAS_I422TOARGB1555ROW_NEON) 703 #if defined(HAS_I422TOARGB1555ROW_NEON)
704 if (TestCpuFlag(kCpuHasNEON)) { 704 if (TestCpuFlag(kCpuHasNEON)) {
705 I422ToARGB1555Row = I422ToARGB1555Row_Any_NEON; 705 I422ToARGB1555Row = I422ToARGB1555Row_Any_NEON;
706 if (IS_ALIGNED(width, 8)) { 706 if (IS_ALIGNED(width, 8)) {
707 I422ToARGB1555Row = I422ToARGB1555Row_NEON; 707 I422ToARGB1555Row = I422ToARGB1555Row_NEON;
708 } 708 }
709 } 709 }
710 #endif 710 #endif
711 #if defined(HAS_I422TOARGB1555ROW_DSPR2)
712 if (TestCpuFlag(kCpuHasDSPR2)) {
713 I422ToARGB1555Row = I422ToARGB1555Row_Any_DSPR2;
714 if (IS_ALIGNED(width, 4)) {
715 I422ToARGB1555Row = I422ToARGB1555Row_DSPR2;
716 }
717 }
718 #endif
711 #if defined(HAS_I422TOARGB1555ROW_MSA) 719 #if defined(HAS_I422TOARGB1555ROW_MSA)
712 if (TestCpuFlag(kCpuHasMSA)) { 720 if (TestCpuFlag(kCpuHasMSA)) {
713 I422ToARGB1555Row = I422ToARGB1555Row_Any_MSA; 721 I422ToARGB1555Row = I422ToARGB1555Row_Any_MSA;
714 if (IS_ALIGNED(width, 8)) { 722 if (IS_ALIGNED(width, 8)) {
715 I422ToARGB1555Row = I422ToARGB1555Row_MSA; 723 I422ToARGB1555Row = I422ToARGB1555Row_MSA;
716 } 724 }
717 } 725 }
718 #endif 726 #endif
719 727
720 for (y = 0; y < height; ++y) { 728 for (y = 0; y < height; ++y) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 } 782 }
775 #endif 783 #endif
776 #if defined(HAS_I422TOARGB4444ROW_NEON) 784 #if defined(HAS_I422TOARGB4444ROW_NEON)
777 if (TestCpuFlag(kCpuHasNEON)) { 785 if (TestCpuFlag(kCpuHasNEON)) {
778 I422ToARGB4444Row = I422ToARGB4444Row_Any_NEON; 786 I422ToARGB4444Row = I422ToARGB4444Row_Any_NEON;
779 if (IS_ALIGNED(width, 8)) { 787 if (IS_ALIGNED(width, 8)) {
780 I422ToARGB4444Row = I422ToARGB4444Row_NEON; 788 I422ToARGB4444Row = I422ToARGB4444Row_NEON;
781 } 789 }
782 } 790 }
783 #endif 791 #endif
792 #if defined(HAS_I422TOARGB4444ROW_DSPR2)
793 if (TestCpuFlag(kCpuHasDSPR2)) {
794 I422ToARGB4444Row = I422ToARGB4444Row_Any_DSPR2;
795 if (IS_ALIGNED(width, 4)) {
796 I422ToARGB4444Row = I422ToARGB4444Row_DSPR2;
797 }
798 }
799 #endif
784 #if defined(HAS_I422TOARGB4444ROW_MSA) 800 #if defined(HAS_I422TOARGB4444ROW_MSA)
785 if (TestCpuFlag(kCpuHasMSA)) { 801 if (TestCpuFlag(kCpuHasMSA)) {
786 I422ToARGB4444Row = I422ToARGB4444Row_Any_MSA; 802 I422ToARGB4444Row = I422ToARGB4444Row_Any_MSA;
787 if (IS_ALIGNED(width, 8)) { 803 if (IS_ALIGNED(width, 8)) {
788 I422ToARGB4444Row = I422ToARGB4444Row_MSA; 804 I422ToARGB4444Row = I422ToARGB4444Row_MSA;
789 } 805 }
790 } 806 }
791 #endif 807 #endif
792 808
793 for (y = 0; y < height; ++y) { 809 for (y = 0; y < height; ++y) {
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 default: 1176 default:
1161 return -1; // unknown fourcc - return failure code. 1177 return -1; // unknown fourcc - return failure code.
1162 } 1178 }
1163 return r; 1179 return r;
1164 } 1180 }
1165 1181
1166 #ifdef __cplusplus 1182 #ifdef __cplusplus
1167 } // extern "C" 1183 } // extern "C"
1168 } // namespace libyuv 1184 } // namespace libyuv
1169 #endif 1185 #endif
OLDNEW
« no previous file with comments | « source/convert_argb.cc ('k') | source/convert_from_argb.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698