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

Side by Side Diff: source/row_any.cc

Issue 2595333002: Libyuv MIPS DSPR2 optimizations. (Closed)
Patch Set: Created 4 years 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_from_argb.cc ('k') | source/row_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 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 #endif 160 #endif
161 #ifdef HAS_I422TOARGBROW_NEON 161 #ifdef HAS_I422TOARGBROW_NEON
162 ANY31C(I444ToARGBRow_Any_NEON, I444ToARGBRow_NEON, 0, 0, 4, 7) 162 ANY31C(I444ToARGBRow_Any_NEON, I444ToARGBRow_NEON, 0, 0, 4, 7)
163 ANY31C(I422ToARGBRow_Any_NEON, I422ToARGBRow_NEON, 1, 0, 4, 7) 163 ANY31C(I422ToARGBRow_Any_NEON, I422ToARGBRow_NEON, 1, 0, 4, 7)
164 ANY31C(I422ToRGBARow_Any_NEON, I422ToRGBARow_NEON, 1, 0, 4, 7) 164 ANY31C(I422ToRGBARow_Any_NEON, I422ToRGBARow_NEON, 1, 0, 4, 7)
165 ANY31C(I422ToRGB24Row_Any_NEON, I422ToRGB24Row_NEON, 1, 0, 3, 7) 165 ANY31C(I422ToRGB24Row_Any_NEON, I422ToRGB24Row_NEON, 1, 0, 3, 7)
166 ANY31C(I422ToARGB4444Row_Any_NEON, I422ToARGB4444Row_NEON, 1, 0, 2, 7) 166 ANY31C(I422ToARGB4444Row_Any_NEON, I422ToARGB4444Row_NEON, 1, 0, 2, 7)
167 ANY31C(I422ToARGB1555Row_Any_NEON, I422ToARGB1555Row_NEON, 1, 0, 2, 7) 167 ANY31C(I422ToARGB1555Row_Any_NEON, I422ToARGB1555Row_NEON, 1, 0, 2, 7)
168 ANY31C(I422ToRGB565Row_Any_NEON, I422ToRGB565Row_NEON, 1, 0, 2, 7) 168 ANY31C(I422ToRGB565Row_Any_NEON, I422ToRGB565Row_NEON, 1, 0, 2, 7)
169 #endif 169 #endif
170 #ifdef HAS_I422TOARGBROW_DSPR2
171 ANY31C(I444ToARGBRow_Any_DSPR2, I444ToARGBRow_DSPR2, 0, 0, 4, 7)
172 ANY31C(I422ToARGBRow_Any_DSPR2, I422ToARGBRow_DSPR2, 1, 0, 4, 7)
173 ANY31C(I422ToARGB4444Row_Any_DSPR2, I422ToARGB4444Row_DSPR2, 1, 0, 2, 7)
174 ANY31C(I422ToARGB1555Row_Any_DSPR2, I422ToARGB1555Row_DSPR2, 1, 0, 2, 7)
175 #endif
170 #ifdef HAS_I422TOARGBROW_MSA 176 #ifdef HAS_I422TOARGBROW_MSA
171 ANY31C(I422ToARGBRow_Any_MSA, I422ToARGBRow_MSA, 1, 0, 4, 7) 177 ANY31C(I422ToARGBRow_Any_MSA, I422ToARGBRow_MSA, 1, 0, 4, 7)
172 ANY31C(I422ToRGBARow_Any_MSA, I422ToRGBARow_MSA, 1, 0, 4, 7) 178 ANY31C(I422ToRGBARow_Any_MSA, I422ToRGBARow_MSA, 1, 0, 4, 7)
173 ANY31C(I422ToRGB24Row_Any_MSA, I422ToRGB24Row_MSA, 1, 0, 3, 15) 179 ANY31C(I422ToRGB24Row_Any_MSA, I422ToRGB24Row_MSA, 1, 0, 3, 15)
174 ANY31C(I422ToARGB4444Row_Any_MSA, I422ToARGB4444Row_MSA, 1, 0, 2, 7) 180 ANY31C(I422ToARGB4444Row_Any_MSA, I422ToARGB4444Row_MSA, 1, 0, 2, 7)
175 ANY31C(I422ToARGB1555Row_Any_MSA, I422ToARGB1555Row_MSA, 1, 0, 2, 7) 181 ANY31C(I422ToARGB1555Row_Any_MSA, I422ToARGB1555Row_MSA, 1, 0, 2, 7)
176 ANY31C(I422ToRGB565Row_Any_MSA, I422ToRGB565Row_MSA, 1, 0, 2, 7) 182 ANY31C(I422ToRGB565Row_Any_MSA, I422ToRGB565Row_MSA, 1, 0, 2, 7)
177 #endif 183 #endif
178 #undef ANY31C 184 #undef ANY31C
179 185
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 // Biplanar to RGB. 290 // Biplanar to RGB.
285 #ifdef HAS_NV12TOARGBROW_SSSE3 291 #ifdef HAS_NV12TOARGBROW_SSSE3
286 ANY21C(NV12ToARGBRow_Any_SSSE3, NV12ToARGBRow_SSSE3, 1, 1, 2, 4, 7) 292 ANY21C(NV12ToARGBRow_Any_SSSE3, NV12ToARGBRow_SSSE3, 1, 1, 2, 4, 7)
287 #endif 293 #endif
288 #ifdef HAS_NV12TOARGBROW_AVX2 294 #ifdef HAS_NV12TOARGBROW_AVX2
289 ANY21C(NV12ToARGBRow_Any_AVX2, NV12ToARGBRow_AVX2, 1, 1, 2, 4, 15) 295 ANY21C(NV12ToARGBRow_Any_AVX2, NV12ToARGBRow_AVX2, 1, 1, 2, 4, 15)
290 #endif 296 #endif
291 #ifdef HAS_NV12TOARGBROW_NEON 297 #ifdef HAS_NV12TOARGBROW_NEON
292 ANY21C(NV12ToARGBRow_Any_NEON, NV12ToARGBRow_NEON, 1, 1, 2, 4, 7) 298 ANY21C(NV12ToARGBRow_Any_NEON, NV12ToARGBRow_NEON, 1, 1, 2, 4, 7)
293 #endif 299 #endif
300 #ifdef HAS_NV12TOARGBROW_DSPR2
301 ANY21C(NV12ToARGBRow_Any_DSPR2, NV12ToARGBRow_DSPR2, 1, 1, 2, 4, 7)
302 #endif
294 #ifdef HAS_NV21TOARGBROW_SSSE3 303 #ifdef HAS_NV21TOARGBROW_SSSE3
295 ANY21C(NV21ToARGBRow_Any_SSSE3, NV21ToARGBRow_SSSE3, 1, 1, 2, 4, 7) 304 ANY21C(NV21ToARGBRow_Any_SSSE3, NV21ToARGBRow_SSSE3, 1, 1, 2, 4, 7)
296 #endif 305 #endif
297 #ifdef HAS_NV21TOARGBROW_AVX2 306 #ifdef HAS_NV21TOARGBROW_AVX2
298 ANY21C(NV21ToARGBRow_Any_AVX2, NV21ToARGBRow_AVX2, 1, 1, 2, 4, 15) 307 ANY21C(NV21ToARGBRow_Any_AVX2, NV21ToARGBRow_AVX2, 1, 1, 2, 4, 15)
299 #endif 308 #endif
300 #ifdef HAS_NV21TOARGBROW_NEON 309 #ifdef HAS_NV21TOARGBROW_NEON
301 ANY21C(NV21ToARGBRow_Any_NEON, NV21ToARGBRow_NEON, 1, 1, 2, 4, 7) 310 ANY21C(NV21ToARGBRow_Any_NEON, NV21ToARGBRow_NEON, 1, 1, 2, 4, 7)
302 #endif 311 #endif
303 #ifdef HAS_NV12TORGB565ROW_SSSE3 312 #ifdef HAS_NV12TORGB565ROW_SSSE3
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 #endif 486 #endif
478 #ifdef HAS_RGB565TOARGBROW_NEON 487 #ifdef HAS_RGB565TOARGBROW_NEON
479 ANY11(RGB565ToARGBRow_Any_NEON, RGB565ToARGBRow_NEON, 0, 2, 4, 7) 488 ANY11(RGB565ToARGBRow_Any_NEON, RGB565ToARGBRow_NEON, 0, 2, 4, 7)
480 #endif 489 #endif
481 #ifdef HAS_ARGB1555TOARGBROW_NEON 490 #ifdef HAS_ARGB1555TOARGBROW_NEON
482 ANY11(ARGB1555ToARGBRow_Any_NEON, ARGB1555ToARGBRow_NEON, 0, 2, 4, 7) 491 ANY11(ARGB1555ToARGBRow_Any_NEON, ARGB1555ToARGBRow_NEON, 0, 2, 4, 7)
483 #endif 492 #endif
484 #ifdef HAS_ARGB4444TOARGBROW_NEON 493 #ifdef HAS_ARGB4444TOARGBROW_NEON
485 ANY11(ARGB4444ToARGBRow_Any_NEON, ARGB4444ToARGBRow_NEON, 0, 2, 4, 7) 494 ANY11(ARGB4444ToARGBRow_Any_NEON, ARGB4444ToARGBRow_NEON, 0, 2, 4, 7)
486 #endif 495 #endif
496 #ifdef HAS_RGB24TOARGBROW_DSPR2
497 ANY11(RGB24ToARGBRow_Any_DSPR2, RGB24ToARGBRow_DSPR2, 0, 3, 4, 7)
498 #endif
499 #ifdef HAS_RAWTOARGBROW_DSPR2
500 ANY11(RAWToARGBRow_Any_DSPR2, RAWToARGBRow_DSPR2, 0, 3, 4, 7)
501 #endif
502 #ifdef HAS_RGB565TOARGBROW_DSPR2
503 ANY11(RGB565ToARGBRow_Any_DSPR2, RGB565ToARGBRow_DSPR2, 0, 2, 4, 7)
504 #endif
505 #ifdef HAS_ARGB1555TOARGBROW_DSPR2
506 ANY11(ARGB1555ToARGBRow_Any_DSPR2, ARGB1555ToARGBRow_DSPR2, 0, 2, 4, 7)
507 #endif
508 #ifdef HAS_ARGB4444TOARGBROW_DSPR2
509 ANY11(ARGB4444ToARGBRow_Any_DSPR2, ARGB4444ToARGBRow_DSPR2, 0, 2, 4, 7)
510 #endif
511 #ifdef HAS_BGRATOYROW_DSPR2
512 ANY11(BGRAToYRow_Any_DSPR2, BGRAToYRow_DSPR2, 0, 4, 1, 7)
513 #endif
514 #ifdef HAS_ARGBTOYROW_DSPR2
515 ANY11(ARGBToYRow_Any_DSPR2, ARGBToYRow_DSPR2, 0, 4, 1, 7)
516 #endif
517 #ifdef HAS_ABGRTOYROW_DSPR2
518 ANY11(ABGRToYRow_Any_DSPR2, ABGRToYRow_DSPR2, 0, 4, 1, 7)
519 #endif
520 #ifdef HAS_RGBATOYROW_DSPR2
521 ANY11(RGBAToYRow_Any_DSPR2, RGBAToYRow_DSPR2, 0, 4, 1, 7)
522 #endif
487 #ifdef HAS_ARGB4444TOARGBROW_MSA 523 #ifdef HAS_ARGB4444TOARGBROW_MSA
488 ANY11(ARGB4444ToARGBRow_Any_MSA, ARGB4444ToARGBRow_MSA, 0, 2, 4, 15) 524 ANY11(ARGB4444ToARGBRow_Any_MSA, ARGB4444ToARGBRow_MSA, 0, 2, 4, 15)
489 #endif 525 #endif
490 #ifdef HAS_ARGBATTENUATEROW_SSSE3 526 #ifdef HAS_ARGBATTENUATEROW_SSSE3
491 ANY11(ARGBAttenuateRow_Any_SSSE3, ARGBAttenuateRow_SSSE3, 0, 4, 4, 3) 527 ANY11(ARGBAttenuateRow_Any_SSSE3, ARGBAttenuateRow_SSSE3, 0, 4, 4, 3)
492 #endif 528 #endif
493 #ifdef HAS_ARGBUNATTENUATEROW_SSE2 529 #ifdef HAS_ARGBUNATTENUATEROW_SSE2
494 ANY11(ARGBUnattenuateRow_Any_SSE2, ARGBUnattenuateRow_SSE2, 0, 4, 4, 3) 530 ANY11(ARGBUnattenuateRow_Any_SSE2, ARGBUnattenuateRow_SSE2, 0, 4, 4, 3)
495 #endif 531 #endif
496 #ifdef HAS_ARGBATTENUATEROW_AVX2 532 #ifdef HAS_ARGBATTENUATEROW_AVX2
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 #endif 933 #endif
898 #ifdef HAS_ARGB4444TOUVROW_NEON 934 #ifdef HAS_ARGB4444TOUVROW_NEON
899 ANY12S(ARGB4444ToUVRow_Any_NEON, ARGB4444ToUVRow_NEON, 0, 2, 15) 935 ANY12S(ARGB4444ToUVRow_Any_NEON, ARGB4444ToUVRow_NEON, 0, 2, 15)
900 #endif 936 #endif
901 #ifdef HAS_YUY2TOUVROW_NEON 937 #ifdef HAS_YUY2TOUVROW_NEON
902 ANY12S(YUY2ToUVRow_Any_NEON, YUY2ToUVRow_NEON, 1, 4, 15) 938 ANY12S(YUY2ToUVRow_Any_NEON, YUY2ToUVRow_NEON, 1, 4, 15)
903 #endif 939 #endif
904 #ifdef HAS_UYVYTOUVROW_NEON 940 #ifdef HAS_UYVYTOUVROW_NEON
905 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15) 941 ANY12S(UYVYToUVRow_Any_NEON, UYVYToUVRow_NEON, 1, 4, 15)
906 #endif 942 #endif
943 #ifdef HAS_BGRATOUVROW_DSPR2
944 ANY12S(BGRAToUVRow_Any_DSPR2, BGRAToUVRow_DSPR2, 0, 4, 15)
945 #endif
946 #ifdef HAS_ABGRTOUVROW_DSPR2
947 ANY12S(ABGRToUVRow_Any_DSPR2, ABGRToUVRow_DSPR2, 0, 4, 15)
948 #endif
949 #ifdef HAS_RGBATOUVROW_DSPR2
950 ANY12S(RGBAToUVRow_Any_DSPR2, RGBAToUVRow_DSPR2, 0, 4, 15)
951 #endif
952 #ifdef HAS_ARGBTOUVROW_DSPR2
953 ANY12S(ARGBToUVRow_Any_DSPR2, ARGBToUVRow_DSPR2, 0, 4, 15)
954 #endif
907 #ifdef HAS_YUY2TOUVROW_MSA 955 #ifdef HAS_YUY2TOUVROW_MSA
908 ANY12S(YUY2ToUVRow_Any_MSA, YUY2ToUVRow_MSA, 1, 4, 31) 956 ANY12S(YUY2ToUVRow_Any_MSA, YUY2ToUVRow_MSA, 1, 4, 31)
909 #endif 957 #endif
910 #ifdef HAS_UYVYTOUVROW_MSA 958 #ifdef HAS_UYVYTOUVROW_MSA
911 ANY12S(UYVYToUVRow_Any_MSA, UYVYToUVRow_MSA, 1, 4, 31) 959 ANY12S(UYVYToUVRow_Any_MSA, UYVYToUVRow_MSA, 1, 4, 31)
912 #endif 960 #endif
913 #undef ANY12S 961 #undef ANY12S
914 962
915 #ifdef __cplusplus 963 #ifdef __cplusplus
916 } // extern "C" 964 } // extern "C"
917 } // namespace libyuv 965 } // namespace libyuv
918 #endif 966 #endif
OLDNEW
« no previous file with comments | « source/convert_from_argb.cc ('k') | source/row_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698