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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
62 inverted_CMYK_to_RGB1, // i.e. convert color space | 62 inverted_CMYK_to_RGB1, // i.e. convert color space |
63 inverted_CMYK_to_BGR1; // i.e. convert color space | 63 inverted_CMYK_to_BGR1; // i.e. convert color space |
64 | 64 |
65 extern void (*half_to_float)(float[], const uint16_t[], int); | 65 extern void (*half_to_float)(float[], const uint16_t[], int); |
66 extern void (*float_to_half)(uint16_t[], const float[], int); | 66 extern void (*float_to_half)(uint16_t[], const float[], int); |
67 | 67 |
68 // Blend ndst src pixels over dst, where both src and dst point to sRGB pixe ls (RGBA or BGRA). | 68 // Blend ndst src pixels over dst, where both src and dst point to sRGB pixe ls (RGBA or BGRA). |
69 // If nsrc < ndst, we loop over src to create a pattern. | 69 // If nsrc < ndst, we loop over src to create a pattern. |
70 extern void (*srcover_srgb_srgb)(uint32_t* dst, const uint32_t* src, int nds t, int nsrc); | 70 extern void (*srcover_srgb_srgb)(uint32_t* dst, const uint32_t* src, int nds t, int nsrc); |
71 | 71 |
72 // Color xform RGBA input into SkPMColor ordered 8888 pixels. Does not prem ultiply, and | 72 // Color xform RGB1 input into SkPMColor ordered 8888 opaque pixels. |
mtklein_C
2016/06/16 13:27:40
Doesn't this actually transform RGBA into RGB1 pix
mtklein
2016/06/16 13:29:28
Err, RGB1 -> RGB1. Just interested in color order
msarett
2016/06/16 15:46:11
Yes fixing this comment.
| |
73 // assumes src and dst gamma curves are both 2.2f exponentials. | 73 extern void (*color_xform_RGB1_srgb_to_2dot2) (uint32_t* dst, const uint32_t * src, int len, |
74 extern void (*color_xform_2Dot2_RGBA_to_8888)(uint32_t* dst, const uint32_t* src, int len, | 74 const float srcToDstMatrix[16 ]); |
75 const float srcToDstMatrix[16] ); | 75 extern void (*color_xform_RGB1_2dot2_to_2dot2)(uint32_t* dst, const uint32_t * src, int len, |
76 const float srcToDstMatrix[16 ]); | |
76 } | 77 } |
77 | 78 |
78 #endif//SkOpts_DEFINED | 79 #endif//SkOpts_DEFINED |
OLD | NEW |