#include <SkColorSpaceXformSteps.h>
Definition at line 19 of file SkColorSpaceXformSteps.h.
◆ SkColorSpaceXformSteps() [1/3]
SkColorSpaceXformSteps::SkColorSpaceXformSteps |
( |
| ) |
|
|
inline |
◆ SkColorSpaceXformSteps() [2/3]
Definition at line 23 of file SkColorSpaceXformSteps.cpp.
24 {
25
26
28 dstAT = srcAT;
29 }
30
31
32
35
36 if (
src->hash() ==
dst->hash() && srcAT == dstAT) {
38 return;
39 }
40
46
49 src->gamutTransformTo(
dst, &src_to_dst);
50
54
58
62 } else {
63 #ifdef SK_DEBUG
67 SkASSERT(0 == memcmp(&srcM, &dstM, 9*
sizeof(
float)) &&
"Hash collision");
68 #endif
69 }
70
71
74
75
77 !this->flags.gamut_transform &&
78 this->flags.encode &&
79 src->transferFnHash() ==
dst->transferFnHash())
80 {
81 #ifdef SK_DEBUG
83 dst->transferFn(&dstTF);
84 for (
int i = 0;
i < 7;
i++) {
86 }
87 #endif
90 }
91
92
94 !this->flags.linearize &&
95 !this->flags.encode &&
96 this->flags.premul)
97 {
100 }
101}
@ kOpaque_SkAlphaType
pixel is opaque
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
SkColorSpace * sk_srgb_singleton()
bool gammaIsLinear() const
void invTransferFn(skcms_TransferFunction *fn) const
static bool Equals(const SkColorSpace *, const SkColorSpace *)
uint32_t toXYZD50Hash() const
◆ SkColorSpaceXformSteps() [3/3]
template<typename S , typename
D >
SkColorSpaceXformSteps::SkColorSpaceXformSteps |
( |
const S & |
src, |
|
|
const D & |
dst |
|
) |
| |
|
inline |
◆ apply() [1/2]
void SkColorSpaceXformSteps::apply |
( |
float |
rgba[4] | ) |
const |
◆ apply() [2/2]
◆ dstTFInv
◆ flags
Flags SkColorSpaceXformSteps::flags |
◆ src_to_dst_matrix
float SkColorSpaceXformSteps::src_to_dst_matrix[9] |
◆ srcTF
The documentation for this struct was generated from the following files: