| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 typedef void (*Swizzle_8888)(uint32_t*, const void*, int); | 59 typedef void (*Swizzle_8888)(uint32_t*, const void*, int); |
| 60 extern Swizzle_8888 RGBA_to_BGRA, // i.e. just swap RB | 60 extern Swizzle_8888 RGBA_to_BGRA, // i.e. just swap RB |
| 61 RGBA_to_rgbA, // i.e. just premultiply | 61 RGBA_to_rgbA, // i.e. just premultiply |
| 62 RGBA_to_bgrA, // i.e. swap RB and premultiply | 62 RGBA_to_bgrA, // i.e. swap RB and premultiply |
| 63 RGB_to_RGB1, // i.e. insert an opaque alpha | 63 RGB_to_RGB1, // i.e. insert an opaque alpha |
| 64 RGB_to_BGR1, // i.e. swap RB and insert an opa
que alpha | 64 RGB_to_BGR1, // i.e. swap RB and insert an opa
que alpha |
| 65 gray_to_RGB1, // i.e. expand to color channels
+ an opaque alpha | 65 gray_to_RGB1, // i.e. expand to color channels
+ an opaque alpha |
| 66 grayA_to_RGBA, // i.e. expand to color channels | 66 grayA_to_RGBA, // i.e. expand to color channels |
| 67 grayA_to_rgbA, // i.e. expand to color channels
and premultiply | 67 grayA_to_rgbA, // i.e. expand to color channels
and premultiply |
| 68 inverted_CMYK_to_RGB1, // i.e. convert color space | 68 inverted_CMYK_to_RGB1, // i.e. convert color space |
| 69 inverted_CMYK_to_BGR1; // i.e. convert color space | 69 inverted_CMYK_to_BGR1, // i.e. convert color space |
| 70 RGBA_to_rgbA_sample2, // i.e. premultiply, keep every 2
nd other pixel |
| 71 RGBA_to_bgrA_sample2, // i.e. premultiply, swap RB, kee
p every 2nd pixel |
| 72 RGBA_to_rgbA_sample4, // i.e. premultiply, keep every 4
th other pixel |
| 73 RGBA_to_bgrA_sample4, // i.e. premultiply, swap RB, kee
p every 4th pixel |
| 74 RGBA_to_rgbA_sample8, // i.e. premultiply, keep every 8
th other pixel |
| 75 RGBA_to_bgrA_sample8; // i.e. premultiply, swap RB, kee
p every 8th pixel |
| 70 } | 76 } |
| 71 | 77 |
| 72 #endif//SkOpts_DEFINED | 78 #endif//SkOpts_DEFINED |
| OLD | NEW |