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

Side by Side Diff: include/libyuv/scale_row.h

Issue 2559683002: Add MSA optimized remaining scale row functions (Closed)
Patch Set: Changes as per review comments 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
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 defined(__mips__) && defined(__mips_dsp) && (__mips_dsp_rev >= 2) 99 defined(__mips__) && defined(__mips_dsp) && (__mips_dsp_rev >= 2)
100 #define HAS_SCALEROWDOWN2_DSPR2 100 #define HAS_SCALEROWDOWN2_DSPR2
101 #define HAS_SCALEROWDOWN4_DSPR2 101 #define HAS_SCALEROWDOWN4_DSPR2
102 #define HAS_SCALEROWDOWN34_DSPR2 102 #define HAS_SCALEROWDOWN34_DSPR2
103 #define HAS_SCALEROWDOWN38_DSPR2 103 #define HAS_SCALEROWDOWN38_DSPR2
104 #endif 104 #endif
105 105
106 #if !defined(LIBYUV_DISABLE_MSA) && defined(__mips_msa) 106 #if !defined(LIBYUV_DISABLE_MSA) && defined(__mips_msa)
107 #define HAS_SCALEARGBROWDOWN2_MSA 107 #define HAS_SCALEARGBROWDOWN2_MSA
108 #define HAS_SCALEARGBROWDOWNEVEN_MSA 108 #define HAS_SCALEARGBROWDOWNEVEN_MSA
109 #define HAS_SCALEROWDOWN2_MSA
110 #define HAS_SCALEROWDOWN4_MSA
111 #define HAS_SCALEROWDOWN38_MSA
112 #define HAS_SCALEADDROW_MSA
109 #endif 113 #endif
110 114
111 // Scale ARGB vertically with bilinear interpolation. 115 // Scale ARGB vertically with bilinear interpolation.
112 void ScalePlaneVertical(int src_height, 116 void ScalePlaneVertical(int src_height,
113 int dst_width, 117 int dst_width,
114 int dst_height, 118 int dst_height,
115 int src_stride, 119 int src_stride,
116 int dst_stride, 120 int dst_stride,
117 const uint8* src_argb, 121 const uint8* src_argb,
118 uint8* dst_argb, 122 uint8* dst_argb,
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 int dst_width); 840 int dst_width);
837 void ScaleRowDown38_2_Box_DSPR2(const uint8* src_ptr, 841 void ScaleRowDown38_2_Box_DSPR2(const uint8* src_ptr,
838 ptrdiff_t src_stride, 842 ptrdiff_t src_stride,
839 uint8* dst_ptr, 843 uint8* dst_ptr,
840 int dst_width); 844 int dst_width);
841 void ScaleRowDown38_3_Box_DSPR2(const uint8* src_ptr, 845 void ScaleRowDown38_3_Box_DSPR2(const uint8* src_ptr,
842 ptrdiff_t src_stride, 846 ptrdiff_t src_stride,
843 uint8* dst_ptr, 847 uint8* dst_ptr,
844 int dst_width); 848 int dst_width);
845 849
850 void ScaleRowDown2_MSA(const uint8_t* src_ptr,
851 ptrdiff_t src_stride,
852 uint8_t* dst,
853 int dst_width);
854 void ScaleRowDown2Linear_MSA(const uint8_t* src_ptr,
855 ptrdiff_t src_stride,
856 uint8_t* dst,
857 int dst_width);
858 void ScaleRowDown2Box_MSA(const uint8_t* src_ptr,
859 ptrdiff_t src_stride,
860 uint8_t* dst,
861 int dst_width);
862 void ScaleRowDown4_MSA(const uint8_t* src_ptr,
863 ptrdiff_t src_stride,
864 uint8_t* dst,
865 int dst_width);
866 void ScaleRowDown4Box_MSA(const uint8_t* src_ptr,
867 ptrdiff_t src_stride,
868 uint8_t* dst,
869 int dst_width);
870 void ScaleRowDown38_MSA(const uint8_t* src_ptr,
871 ptrdiff_t src_stride,
872 uint8_t* dst,
873 int dst_width);
874 void ScaleRowDown38_2_Box_MSA(const uint8_t* src_ptr,
875 ptrdiff_t src_stride,
876 uint8_t* dst_ptr,
877 int dst_width);
878 void ScaleRowDown38_3_Box_MSA(const uint8_t* src_ptr,
879 ptrdiff_t src_stride,
880 uint8_t* dst_ptr,
881 int dst_width);
882 void ScaleAddRow_MSA(const uint8_t* src_ptr, uint16_t* dst_ptr, int src_width);
883 void ScaleRowDown2_Any_MSA(const uint8_t* src_ptr,
884 ptrdiff_t src_stride,
885 uint8_t* dst,
886 int dst_width);
887 void ScaleRowDown2Linear_Any_MSA(const uint8_t* src_ptr,
888 ptrdiff_t src_stride,
889 uint8_t* dst,
890 int dst_width);
891 void ScaleRowDown2Box_Any_MSA(const uint8_t* src_ptr,
892 ptrdiff_t src_stride,
893 uint8_t* dst,
894 int dst_width);
895 void ScaleRowDown4_Any_MSA(const uint8_t* src_ptr,
896 ptrdiff_t src_stride,
897 uint8_t* dst,
898 int dst_width);
899 void ScaleRowDown4Box_Any_MSA(const uint8_t* src_ptr,
900 ptrdiff_t src_stride,
901 uint8_t* dst,
902 int dst_width);
903 void ScaleRowDown38_Any_MSA(const uint8_t* src_ptr,
904 ptrdiff_t src_stride,
905 uint8_t* dst,
906 int dst_width);
907 void ScaleRowDown38_2_Box_Any_MSA(const uint8_t* src_ptr,
908 ptrdiff_t src_stride,
909 uint8_t* dst_ptr,
910 int dst_width);
911 void ScaleRowDown38_3_Box_Any_MSA(const uint8_t* src_ptr,
912 ptrdiff_t src_stride,
913 uint8_t* dst_ptr,
914 int dst_width);
915 void ScaleAddRow_Any_MSA(const uint8_t* src_ptr,
916 uint16_t* dst_ptr,
917 int src_width);
918
846 #ifdef __cplusplus 919 #ifdef __cplusplus
847 } // extern "C" 920 } // extern "C"
848 } // namespace libyuv 921 } // namespace libyuv
849 #endif 922 #endif
850 923
851 #endif // INCLUDE_LIBYUV_SCALE_ROW_H_ 924 #endif // INCLUDE_LIBYUV_SCALE_ROW_H_
OLDNEW
« include/libyuv/macros_msa.h ('K') | « include/libyuv/macros_msa.h ('k') | source/scale.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698