Home
last modified time | relevance | path

Searched refs:toXYZ (Results 1 – 11 of 11) sorted by relevance

/external/skqp/src/core/
DSkColorSpace.cpp40 const skcms_Matrix3x3& toXYZ) { in MakeRGB() argument
48 if (xyz_almost_equal(toXYZ, SkNamedGamut::kSRGB)) { in MakeRGB()
55 if (xyz_almost_equal(toXYZ, SkNamedGamut::kSRGB)) { in MakeRGB()
61 return sk_sp<SkColorSpace>(new SkColorSpace(tf, toXYZ)); in MakeRGB()
194 skcms_Matrix3x3 toXYZ; in makeColorSpin() local
195 this->toXYZD50(&toXYZ); in makeColorSpin()
197 skcms_Matrix3x3 spun = skcms_Matrix3x3_concat(&toXYZ, &spin); in makeColorSpin()
321 skcms_Matrix3x3 toXYZ; in Deserialize() local
322 memcpy(&toXYZ, data, 9 * sizeof(float)); in Deserialize()
323 return SkColorSpace::MakeRGB(transferFn, toXYZ); in Deserialize()
[all …]
/external/skia/src/core/
DSkColorSpace.cpp40 const skcms_Matrix3x3& toXYZ) { in MakeRGB() argument
48 if (xyz_almost_equal(toXYZ, SkNamedGamut::kSRGB)) { in MakeRGB()
55 if (xyz_almost_equal(toXYZ, SkNamedGamut::kSRGB)) { in MakeRGB()
61 return sk_sp<SkColorSpace>(new SkColorSpace(*tf, toXYZ)); in MakeRGB()
297 skcms_Matrix3x3 toXYZ; in Deserialize() local
298 memcpy(&toXYZ, data, 9 * sizeof(float)); in Deserialize()
299 return SkColorSpace::MakeRGB(transferFn, toXYZ); in Deserialize()
319 skcms_Matrix3x3 toXYZ; in Deserialize() local
320 memcpy(&toXYZ.vals[0][0], (const float*)data + 0, 3 * sizeof(float)); in Deserialize()
321 memcpy(&toXYZ.vals[1][0], (const float*)data + 4, 3 * sizeof(float)); in Deserialize()
[all …]
/external/skia/docs/examples/
DDCIToXYZD50.cpp18 skcms_Matrix3x3 toXYZ; in draw() local
19 p.toXYZD50(&toXYZ); in draw()
22 SkDebugf("%f %f %f\n", toXYZ.vals[i][0], toXYZ.vals[i][1], toXYZ.vals[i][2]); in draw()
/external/skqp/tests/
DColorSpaceTest.cpp140 skcms_Matrix3x3 toXYZ = {{ in DEF_TEST() local
145 test_serialize(r, SkColorSpace::MakeRGB(fn, toXYZ), false); in DEF_TEST()
173 skcms_Matrix3x3 toXYZ = {{ in DEF_TEST() local
178 sk_sp<SkColorSpace> rgb4 = SkColorSpace::MakeRGB(fn, toXYZ); in DEF_TEST()
207 skcms_Matrix3x3 toXYZ; in check_primaries() local
208 bool result = primaries.toXYZD50(&toXYZ); in check_primaries()
210 REPORTER_ASSERT(r, matrix_almost_equal(toXYZ, reference)); in check_primaries()
/external/skia/tests/
DColorSpaceTest.cpp141 skcms_Matrix3x3 toXYZ = {{ in DEF_TEST() local
146 test_serialize(r, SkColorSpace::MakeRGB(fn, toXYZ), false); in DEF_TEST()
174 skcms_Matrix3x3 toXYZ = {{ in DEF_TEST() local
179 sk_sp<SkColorSpace> rgb4 = SkColorSpace::MakeRGB(fn, toXYZ); in DEF_TEST()
208 skcms_Matrix3x3 toXYZ; in check_primaries() local
209 bool result = primaries.toXYZD50(&toXYZ); in check_primaries()
211 REPORTER_ASSERT(r, matrix_almost_equal(toXYZ, reference)); in check_primaries()
/external/skqp/include/core/
DSkColorSpace.h112 const skcms_Matrix3x3& toXYZ);
225 const skcms_Matrix3x3& toXYZ);
/external/skia/include/core/
DSkColorSpace.h120 const skcms_Matrix3x3& toXYZ);
230 SkColorSpace(const skcms_TransferFunction& transferFn, const skcms_Matrix3x3& toXYZ);
/external/skqp/third_party/skcms/
Dskcms.cc239 const skcms_ICCTag* bXYZ, skcms_Matrix3x3* toXYZ) { in read_to_XYZD50() argument
240 return read_tag_xyz(rXYZ, &toXYZ->vals[0][0], &toXYZ->vals[1][0], &toXYZ->vals[2][0]) && in read_to_XYZD50()
241 read_tag_xyz(gXYZ, &toXYZ->vals[0][1], &toXYZ->vals[1][1], &toXYZ->vals[2][1]) && in read_to_XYZD50()
242 read_tag_xyz(bXYZ, &toXYZ->vals[0][2], &toXYZ->vals[1][2], &toXYZ->vals[2][2]); in read_to_XYZD50()
1246 skcms_Matrix3x3 toXYZ = {{ in skcms_PrimariesToXYZD50() local
1251 toXYZ = skcms_Matrix3x3_concat(&primaries, &toXYZ); in skcms_PrimariesToXYZD50()
1281 *toXYZD50 = skcms_Matrix3x3_concat(&DXtoD50, &toXYZ); in skcms_PrimariesToXYZD50()
/external/skia/third_party/skcms/
Dskcms.cc429 const skcms_ICCTag* bXYZ, skcms_Matrix3x3* toXYZ) { in read_to_XYZD50() argument
430 return read_tag_xyz(rXYZ, &toXYZ->vals[0][0], &toXYZ->vals[1][0], &toXYZ->vals[2][0]) && in read_to_XYZD50()
431 read_tag_xyz(gXYZ, &toXYZ->vals[0][1], &toXYZ->vals[1][1], &toXYZ->vals[2][1]) && in read_to_XYZD50()
432 read_tag_xyz(bXYZ, &toXYZ->vals[0][2], &toXYZ->vals[1][2], &toXYZ->vals[2][2]); in read_to_XYZD50()
1721 skcms_Matrix3x3 toXYZ = {{ in skcms_PrimariesToXYZD50() local
1726 toXYZ = skcms_Matrix3x3_concat(&primaries, &toXYZ); in skcms_PrimariesToXYZD50()
1733 *toXYZD50 = skcms_Matrix3x3_concat(&DXtoD50, &toXYZ); in skcms_PrimariesToXYZD50()
/external/skqp/tools/viewer/
DViewer.cpp1124 skcms_Matrix3x3 toXYZ; in drawSlide() local
1125 SkAssertResult(fColorSpacePrimaries.toXYZD50(&toXYZ)); in drawSlide()
1126 colorSpace = SkColorSpace::MakeRGB(fColorSpaceTransferFn, toXYZ); in drawSlide()
/external/skia/tools/viewer/
DViewer.cpp1424 skcms_Matrix3x3 toXYZ; in drawSlide() local
1425 SkAssertResult(fColorSpacePrimaries.toXYZD50(&toXYZ)); in drawSlide()
1426 colorSpace = SkColorSpace::MakeRGB(fColorSpaceTransferFn, toXYZ); in drawSlide()