OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkBitmapProcState.h" | 8 #include "SkBitmapProcState.h" |
9 #include "SkBitmapProcState_filter.h" | 9 #include "SkBitmapProcState_filter.h" |
10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 S16_D16_nofilter_DX_neon, | 89 S16_D16_nofilter_DX_neon, |
90 S16_D16_filter_DXDY_neon, | 90 S16_D16_filter_DXDY_neon, |
91 S16_D16_filter_DX_neon, | 91 S16_D16_filter_DX_neon, |
92 | 92 |
93 SI8_D16_nofilter_DXDY_neon, | 93 SI8_D16_nofilter_DXDY_neon, |
94 SI8_D16_nofilter_DX_neon, | 94 SI8_D16_nofilter_DX_neon, |
95 SI8_D16_filter_DXDY_neon, | 95 SI8_D16_filter_DXDY_neon, |
96 SI8_D16_filter_DX_neon, | 96 SI8_D16_filter_DX_neon, |
97 | 97 |
98 // Don't support 4444 -> 565 | 98 // Don't support 4444 -> 565 |
99 NULL, NULL, NULL, NULL, | 99 nullptr, nullptr, nullptr, nullptr, |
100 // Don't support A8 -> 565 | 100 // Don't support A8 -> 565 |
101 NULL, NULL, NULL, NULL, | 101 nullptr, nullptr, nullptr, nullptr, |
102 // Don't support G8 -> 565 (but we could) | 102 // Don't support G8 -> 565 (but we could) |
103 NULL, NULL, NULL, NULL, | 103 nullptr, nullptr, nullptr, nullptr, |
104 }; | 104 }; |
105 | 105 |
106 /////////////////////////////////////////////////////////////////////////////// | 106 /////////////////////////////////////////////////////////////////////////////// |
107 | 107 |
108 #include <arm_neon.h> | 108 #include <arm_neon.h> |
109 #include "SkConvolver.h" | 109 #include "SkConvolver.h" |
110 | 110 |
111 // Convolves horizontally along a single row. The row data is given in | 111 // Convolves horizontally along a single row. The row data is given in |
112 // |srcData| and continues for the numValues() of the filter. | 112 // |srcData| and continues for the numValues() of the filter. |
113 void convolveHorizontally_neon(const unsigned char* srcData, | 113 void convolveHorizontally_neon(const unsigned char* srcData, |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 } | 515 } |
516 } | 516 } |
517 | 517 |
518 void platformConvolutionProcs_arm_neon(SkConvolutionProcs* procs) { | 518 void platformConvolutionProcs_arm_neon(SkConvolutionProcs* procs) { |
519 procs->fExtraHorizontalReads = 3; | 519 procs->fExtraHorizontalReads = 3; |
520 procs->fConvolveVertically = &convolveVertically_neon; | 520 procs->fConvolveVertically = &convolveVertically_neon; |
521 procs->fConvolve4RowsHorizontally = &convolve4RowsHorizontally_neon; | 521 procs->fConvolve4RowsHorizontally = &convolve4RowsHorizontally_neon; |
522 procs->fConvolveHorizontally = &convolveHorizontally_neon; | 522 procs->fConvolveHorizontally = &convolveHorizontally_neon; |
523 procs->fApplySIMDPadding = &applySIMDPadding_neon; | 523 procs->fApplySIMDPadding = &applySIMDPadding_neon; |
524 } | 524 } |
OLD | NEW |