OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SKIA_EXT_CONVOLVER_H_ | 5 #ifndef SKIA_EXT_CONVOLVER_H_ |
6 #define SKIA_EXT_CONVOLVER_H_ | 6 #define SKIA_EXT_CONVOLVER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 // avoid confusion with Mac OS X's math library (Carbon) | 10 // avoid confusion with Mac OS X's math library (Carbon) |
11 #if defined(OS_MACOSX) | 11 #if defined(__APPLE__) |
12 #undef FloatToFixed | 12 #undef FloatToFixed |
13 #endif | 13 #endif |
14 | 14 |
15 namespace skia { | 15 namespace skia { |
16 | 16 |
17 // Represents a filter in one dimension. Each output pixel has one entry in this | 17 // Represents a filter in one dimension. Each output pixel has one entry in this |
18 // object for the filter values contributing to it. You build up the filter | 18 // object for the filter values contributing to it. You build up the filter |
19 // list by calling AddFilter for each output pixel (in order). | 19 // list by calling AddFilter for each output pixel (in order). |
20 // | 20 // |
21 // We do 2-dimensional convolusion by first convolving each row by one | 21 // We do 2-dimensional convolusion by first convolving each row by one |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 int source_byte_row_stride, | 126 int source_byte_row_stride, |
127 bool source_has_alpha, | 127 bool source_has_alpha, |
128 const ConvolusionFilter1D& xfilter, | 128 const ConvolusionFilter1D& xfilter, |
129 const ConvolusionFilter1D& yfilter, | 129 const ConvolusionFilter1D& yfilter, |
130 unsigned char* output); | 130 unsigned char* output); |
131 | 131 |
132 } // namespace skia | 132 } // namespace skia |
133 | 133 |
134 #endif // SKIA_EXT_CONVOLVER_H_ | 134 #endif // SKIA_EXT_CONVOLVER_H_ |
135 | 135 |
OLD | NEW |