OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 #ifndef SkBitmapFilter_opts_sse2_DEFINED | 8 #ifndef SkBitmapFilter_opts_sse2_DEFINED |
9 #define SkBitmapFilter_opts_sse2_DEFINED | 9 #define SkBitmapFilter_opts_sse2_DEFINED |
10 | 10 |
11 #include "SkBitmapProcState.h" | 11 #include "SkBitmapProcState.h" |
12 #include "SkConvolver.h" | 12 #include "SkConvolver.h" |
13 | 13 |
14 void convolveVertically_SSE2(const SkConvolutionFilter1D::ConvolutionFixed* filt
er_values, | 14 void convolveVertically_SSE2(const SkConvolutionFilter1D::ConvolutionFixed* filt
er_values, |
15 int filter_length, | 15 int filter_length, |
16 unsigned char* const* source_data_rows, | 16 unsigned char* const* source_data_rows, |
17 int pixel_width, | 17 int pixel_width, |
18 unsigned char* out_row, | 18 unsigned char* out_row, |
19 bool has_alpha); | 19 bool has_alpha); |
20 void convolve4RowsHorizontally_SSE2(const unsigned char* src_data[4], | 20 void convolve4RowsHorizontally_SSE2(const unsigned char* src_data[4], |
21 const SkConvolutionFilter1D& filter, | 21 const SkConvolutionFilter1D& filter, |
22 unsigned char* out_row[4]); | 22 unsigned char* out_row[4], |
| 23 size_t outRowBytes); |
23 void convolveHorizontally_SSE2(const unsigned char* src_data, | 24 void convolveHorizontally_SSE2(const unsigned char* src_data, |
24 const SkConvolutionFilter1D& filter, | 25 const SkConvolutionFilter1D& filter, |
25 unsigned char* out_row, | 26 unsigned char* out_row, |
26 bool has_alpha); | 27 bool has_alpha); |
27 void applySIMDPadding_SSE2(SkConvolutionFilter1D* filter); | 28 void applySIMDPadding_SSE2(SkConvolutionFilter1D* filter); |
28 | 29 |
29 #endif | 30 #endif |
OLD | NEW |