| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 SkOpts_DEFINED | 8 #ifndef SkOpts_DEFINED |
| 9 #define SkOpts_DEFINED | 9 #define SkOpts_DEFINED |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 typedef void (*Morph)(const SkPMColor*, SkPMColor*, int, int, int, int, int)
; | 32 typedef void (*Morph)(const SkPMColor*, SkPMColor*, int, int, int, int, int)
; |
| 33 extern Morph dilate_x, dilate_y, erode_x, erode_y; | 33 extern Morph dilate_x, dilate_y, erode_x, erode_y; |
| 34 | 34 |
| 35 typedef bool (*TextureCompressor)(uint8_t* dst, const uint8_t* src, | 35 typedef bool (*TextureCompressor)(uint8_t* dst, const uint8_t* src, |
| 36 int width, int height, size_t rowBytes); | 36 int width, int height, size_t rowBytes); |
| 37 extern TextureCompressor (*texture_compressor)(SkColorType, SkTextureCompres
sor::Format); | 37 extern TextureCompressor (*texture_compressor)(SkColorType, SkTextureCompres
sor::Format); |
| 38 extern bool (*fill_block_dimensions)(SkTextureCompressor::Format, int* x, in
t* y); | 38 extern bool (*fill_block_dimensions)(SkTextureCompressor::Format, int* x, in
t* y); |
| 39 | 39 |
| 40 extern void (*blit_mask_d32_a8)(SkPMColor*, size_t, const SkAlpha*, size_t,
SkColor, int, int); | 40 extern void (*blit_mask_d32_a8)(SkPMColor*, size_t, const SkAlpha*, size_t,
SkColor, int, int); |
| 41 extern void (*blit_row_color32)(SkPMColor*, const SkPMColor*, int, SkPMColor
); | 41 extern void (*blit_row_color32)(SkPMColor*, const SkPMColor*, int, SkPMColor
); |
| 42 extern void (*blit_row_s32a_opaque)(SkPMColor*, const SkPMColor*, int, U8CPU
); |
| 42 | 43 |
| 43 // This function is an optimized version of SkColorCubeFilter::filterSpan | 44 // This function is an optimized version of SkColorCubeFilter::filterSpan |
| 44 extern void (*color_cube_filter_span)(const SkPMColor[], | 45 extern void (*color_cube_filter_span)(const SkPMColor[], |
| 45 int, | 46 int, |
| 46 SkPMColor[], | 47 SkPMColor[], |
| 47 const int * [2], | 48 const int * [2], |
| 48 const SkScalar * [2], | 49 const SkScalar * [2], |
| 49 int, | 50 int, |
| 50 const SkColor*); | 51 const SkColor*); |
| 51 | 52 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 62 grayA_to_RGBA, // i.e. expand to color channels | 63 grayA_to_RGBA, // i.e. expand to color channels |
| 63 grayA_to_rgbA, // i.e. expand to color channels
and premultiply | 64 grayA_to_rgbA, // i.e. expand to color channels
and premultiply |
| 64 inverted_CMYK_to_RGB1, // i.e. convert color space | 65 inverted_CMYK_to_RGB1, // i.e. convert color space |
| 65 inverted_CMYK_to_BGR1; // i.e. convert color space | 66 inverted_CMYK_to_BGR1; // i.e. convert color space |
| 66 | 67 |
| 67 extern void (*half_to_float)(float[], const uint16_t[], int); | 68 extern void (*half_to_float)(float[], const uint16_t[], int); |
| 68 extern void (*float_to_half)(uint16_t[], const float[], int); | 69 extern void (*float_to_half)(uint16_t[], const float[], int); |
| 69 } | 70 } |
| 70 | 71 |
| 71 #endif//SkOpts_DEFINED | 72 #endif//SkOpts_DEFINED |
| OLD | NEW |