Go to the source code of this file.
◆ identify_gamut()
Definition at line 15 of file SurfaceManager.cpp.
15 {
16 if (!cs) {
17 return "untagged";
18 }
19
23 for (
int i = 0;
i < 3;
i++) {
24 for (int j = 0; j < 3; j++) {
25 if (
x.vals[
i][j] !=
y.vals[
i][j]) {
26 return false;
27 }
28 }
29 }
30 return true;
31 };
32
34 return "sRGB";
35 }
37 return "Adobe";
38 }
40 return "P3";
41 }
43 return "2020";
44 }
46 return "XYZ";
47 }
49 return "narrow";
50 }
51 return "other";
52 }
53 return "non-XYZ";
54}
static bool eq(const SkM44 &a, const SkM44 &b, float tol)
static constexpr skcms_Matrix3x3 gNarrow_toXYZD50
bool toXYZD50(skcms_Matrix3x3 *toXYZD50) const
static constexpr skcms_Matrix3x3 kSRGB
static constexpr skcms_Matrix3x3 kAdobeRGB
static constexpr skcms_Matrix3x3 kXYZ
static constexpr skcms_Matrix3x3 kRec2020
static constexpr skcms_Matrix3x3 kDisplayP3
◆ identify_transfer_fn()
static std::string identify_transfer_fn |
( |
SkColorSpace * |
cs | ) |
|
|
static |
Definition at line 58 of file SurfaceManager.cpp.
58 {
59 if (!cs) {
60 return "untagged";
61 }
62
64 return x.g ==
y.g &&
x.a ==
y.a &&
x.b ==
y.b &&
x.c ==
y.c &&
x.d ==
y.d &&
x.e ==
y.e &&
66 };
67
72 if (tf.
a == 1 && tf.
b == 0 && tf.
c == 0 && tf.
d == 0 && tf.
e == 0 && tf.
f == 0) {
74 }
76 return "sRGB";
77 }
79 return "2020";
80 }
90
93 return "PQ";
94 }
103
106 return "HLG";
107 }
116
118 break;
120 break;
121 }
122 return "non-numeric";
123}
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
void transferFn(float gabcdef[7]) const
const char * c_str() const
static constexpr skcms_TransferFunction kRec2020
static constexpr skcms_TransferFunction kSRGB
static constexpr skcms_TransferFunction kHLG
static constexpr skcms_TransferFunction kPQ
skcms_TFType skcms_TransferFunction_getType(const skcms_TransferFunction *tf)