| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 4 * | 3 * |
| 5 * 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 |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 | |
| 10 #ifndef SkBitmapFilter_opts_sse2_DEFINED | 8 #ifndef SkBitmapFilter_opts_sse2_DEFINED |
| 11 #define SkBitmapFilter_opts_sse2_DEFINED | 9 #define SkBitmapFilter_opts_sse2_DEFINED |
| 12 | 10 |
| 13 #include "SkBitmapProcState.h" | 11 #include "SkBitmapProcState.h" |
| 14 #include "SkConvolver.h" | 12 #include "SkConvolver.h" |
| 15 | 13 |
| 16 void highQualityFilter_ScaleOnly_SSE2(const SkBitmapProcState &s, int x, int y, | 14 void highQualityFilter_ScaleOnly_SSE2(const SkBitmapProcState &s, int x, int y, |
| 17 SkPMColor *SK_RESTRICT colors, int count); | 15 SkPMColor *SK_RESTRICT colors, int count); |
| 18 void highQualityFilter_SSE2(const SkBitmapProcState &s, int x, int y, | 16 void highQualityFilter_SSE2(const SkBitmapProcState &s, int x, int y, |
| 19 SkPMColor *SK_RESTRICT colors, int count); | 17 SkPMColor *SK_RESTRICT colors, int count); |
| 20 | 18 |
| 21 | 19 |
| 22 void convolveVertically_SSE2(const SkConvolutionFilter1D::ConvolutionFixed* filt
er_values, | 20 void convolveVertically_SSE2(const SkConvolutionFilter1D::ConvolutionFixed* filt
er_values, |
| 23 int filter_length, | 21 int filter_length, |
| 24 unsigned char* const* source_data_rows, | 22 unsigned char* const* source_data_rows, |
| 25 int pixel_width, | 23 int pixel_width, |
| 26 unsigned char* out_row, | 24 unsigned char* out_row, |
| 27 bool has_alpha); | 25 bool has_alpha); |
| 28 void convolve4RowsHorizontally_SSE2(const unsigned char* src_data[4], | 26 void convolve4RowsHorizontally_SSE2(const unsigned char* src_data[4], |
| 29 const SkConvolutionFilter1D& filter, | 27 const SkConvolutionFilter1D& filter, |
| 30 unsigned char* out_row[4]); | 28 unsigned char* out_row[4]); |
| 31 void convolveHorizontally_SSE2(const unsigned char* src_data, | 29 void convolveHorizontally_SSE2(const unsigned char* src_data, |
| 32 const SkConvolutionFilter1D& filter, | 30 const SkConvolutionFilter1D& filter, |
| 33 unsigned char* out_row, | 31 unsigned char* out_row, |
| 34 bool has_alpha); | 32 bool has_alpha); |
| 35 void applySIMDPadding_SSE2(SkConvolutionFilter1D* filter); | 33 void applySIMDPadding_SSE2(SkConvolutionFilter1D* filter); |
| 36 | 34 |
| 37 #endif | 35 #endif |
| OLD | NEW |