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

Side by Side Diff: source/scale_common.cc

Issue 1677633002: rename MIPS_DSPR2 to DSPR2 for consistency (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: git cl try Created 4 years, 10 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/scale_argb.cc ('k') | source/scale_mips.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 2013 The LibYuv Project Authors. All rights reserved. 2 * Copyright 2013 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 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 } 915 }
916 #endif 916 #endif
917 #if defined(HAS_INTERPOLATEROW_NEON) 917 #if defined(HAS_INTERPOLATEROW_NEON)
918 if (TestCpuFlag(kCpuHasNEON)) { 918 if (TestCpuFlag(kCpuHasNEON)) {
919 InterpolateRow = InterpolateRow_Any_NEON; 919 InterpolateRow = InterpolateRow_Any_NEON;
920 if (IS_ALIGNED(dst_width_bytes, 16)) { 920 if (IS_ALIGNED(dst_width_bytes, 16)) {
921 InterpolateRow = InterpolateRow_NEON; 921 InterpolateRow = InterpolateRow_NEON;
922 } 922 }
923 } 923 }
924 #endif 924 #endif
925 #if defined(HAS_INTERPOLATEROW_MIPS_DSPR2) 925 #if defined(HAS_INTERPOLATEROW_DSPR2)
926 if (TestCpuFlag(kCpuHasMIPS_DSPR2) && 926 if (TestCpuFlag(kCpuHasDSPR2) &&
927 IS_ALIGNED(src_argb, 4) && IS_ALIGNED(src_stride, 4) && 927 IS_ALIGNED(src_argb, 4) && IS_ALIGNED(src_stride, 4) &&
928 IS_ALIGNED(dst_argb, 4) && IS_ALIGNED(dst_stride, 4)) { 928 IS_ALIGNED(dst_argb, 4) && IS_ALIGNED(dst_stride, 4)) {
929 InterpolateRow = InterpolateRow_Any_MIPS_DSPR2; 929 InterpolateRow = InterpolateRow_Any_DSPR2;
930 if (IS_ALIGNED(dst_width_bytes, 4)) { 930 if (IS_ALIGNED(dst_width_bytes, 4)) {
931 InterpolateRow = InterpolateRow_MIPS_DSPR2; 931 InterpolateRow = InterpolateRow_DSPR2;
932 } 932 }
933 } 933 }
934 #endif 934 #endif
935 for (j = 0; j < dst_height; ++j) { 935 for (j = 0; j < dst_height; ++j) {
936 int yi; 936 int yi;
937 int yf; 937 int yf;
938 if (y > max_y) { 938 if (y > max_y) {
939 y = max_y; 939 y = max_y;
940 } 940 }
941 yi = y >> 16; 941 yi = y >> 16;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 } 989 }
990 #endif 990 #endif
991 #if defined(HAS_INTERPOLATEROW_16_NEON) 991 #if defined(HAS_INTERPOLATEROW_16_NEON)
992 if (TestCpuFlag(kCpuHasNEON)) { 992 if (TestCpuFlag(kCpuHasNEON)) {
993 InterpolateRow = InterpolateRow_Any_16_NEON; 993 InterpolateRow = InterpolateRow_Any_16_NEON;
994 if (IS_ALIGNED(dst_width_bytes, 16)) { 994 if (IS_ALIGNED(dst_width_bytes, 16)) {
995 InterpolateRow = InterpolateRow_16_NEON; 995 InterpolateRow = InterpolateRow_16_NEON;
996 } 996 }
997 } 997 }
998 #endif 998 #endif
999 #if defined(HAS_INTERPOLATEROW_16_MIPS_DSPR2) 999 #if defined(HAS_INTERPOLATEROW_16_DSPR2)
1000 if (TestCpuFlag(kCpuHasMIPS_DSPR2) && 1000 if (TestCpuFlag(kCpuHasDSPR2) &&
1001 IS_ALIGNED(src_argb, 4) && IS_ALIGNED(src_stride, 4) && 1001 IS_ALIGNED(src_argb, 4) && IS_ALIGNED(src_stride, 4) &&
1002 IS_ALIGNED(dst_argb, 4) && IS_ALIGNED(dst_stride, 4)) { 1002 IS_ALIGNED(dst_argb, 4) && IS_ALIGNED(dst_stride, 4)) {
1003 InterpolateRow = InterpolateRow_Any_16_MIPS_DSPR2; 1003 InterpolateRow = InterpolateRow_Any_16_DSPR2;
1004 if (IS_ALIGNED(dst_width_bytes, 4)) { 1004 if (IS_ALIGNED(dst_width_bytes, 4)) {
1005 InterpolateRow = InterpolateRow_16_MIPS_DSPR2; 1005 InterpolateRow = InterpolateRow_16_DSPR2;
1006 } 1006 }
1007 } 1007 }
1008 #endif 1008 #endif
1009 for (j = 0; j < dst_height; ++j) { 1009 for (j = 0; j < dst_height; ++j) {
1010 int yi; 1010 int yi;
1011 int yf; 1011 int yf;
1012 if (y > max_y) { 1012 if (y > max_y) {
1013 y = max_y; 1013 y = max_y;
1014 } 1014 }
1015 yi = y >> 16; 1015 yi = y >> 16;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 *dx = -*dx; 1142 *dx = -*dx;
1143 // src_width = -src_width; // Caller must do this. 1143 // src_width = -src_width; // Caller must do this.
1144 } 1144 }
1145 } 1145 }
1146 #undef CENTERSTART 1146 #undef CENTERSTART
1147 1147
1148 #ifdef __cplusplus 1148 #ifdef __cplusplus
1149 } // extern "C" 1149 } // extern "C"
1150 } // namespace libyuv 1150 } // namespace libyuv
1151 #endif 1151 #endif
OLDNEW
« no previous file with comments | « source/scale_argb.cc ('k') | source/scale_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698