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

Side by Side Diff: src/opts/SkBitmapFilter_opts_SSE2.h

Issue 19335002: Production quality fast image up/downsampler (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: avoid using any #defines related to SSE by incorporating padding into the function pointer structure Created 7 years, 5 months 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 | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkBitmapFilter_opts_sse2_DEFINED 10 #ifndef SkBitmapFilter_opts_sse2_DEFINED
11 #define SkBitmapFilter_opts_sse2_DEFINED 11 #define SkBitmapFilter_opts_sse2_DEFINED
12 12
13 #include "SkBitmapProcState.h" 13 #include "SkBitmapProcState.h"
14 #include "SkConvolver.h"
14 15
15 void highQualityFilter_ScaleOnly_SSE2(const SkBitmapProcState &s, int x, int y, 16 void highQualityFilter_ScaleOnly_SSE2(const SkBitmapProcState &s, int x, int y,
16 SkPMColor *SK_RESTRICT colors, int count); 17 SkPMColor *SK_RESTRICT colors, int count);
17 void highQualityFilter_SSE2(const SkBitmapProcState &s, int x, int y, 18 void highQualityFilter_SSE2(const SkBitmapProcState &s, int x, int y,
18 SkPMColor *SK_RESTRICT colors, int count); 19 SkPMColor *SK_RESTRICT colors, int count);
19 20
21
22 void convolveVertically_SSE2(const SkConvolutionFilter1D::Fixed* filter_values,
23 int filter_length,
24 unsigned char* const* source_data_rows,
25 int pixel_width,
26 unsigned char* out_row,
27 bool has_alpha);
28 void convolve4RowsHorizontally_SSE2(const unsigned char* src_data[4],
29 const SkConvolutionFilter1D& filter,
30 unsigned char* out_row[4]);
31 void convolveHorizontally_SSE2(const unsigned char* src_data,
32 const SkConvolutionFilter1D& filter,
33 unsigned char* out_row,
34 bool has_alpha);
35 void applySIMDPadding_SSE2(SkConvolutionFilter1D *filter);
reed1 2013/07/19 17:47:23 broken-record-nit: * on the type, not the value
36
20 #endif 37 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698