Home
last modified time | relevance | path

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

/third_party/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 …]
/third_party/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()
/third_party/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()
/third_party/skia/include/core/
DSkColorSpace.h120 const skcms_Matrix3x3& toXYZ);
230 SkColorSpace(const skcms_TransferFunction& transferFn, const skcms_Matrix3x3& toXYZ);
/third_party/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()
/third_party/skia/tools/viewer/
DViewer.cpp1474 skcms_Matrix3x3 toXYZ; in drawSlide() local
1475 SkAssertResult(fColorSpacePrimaries.toXYZD50(&toXYZ)); in drawSlide()
1476 colorSpace = SkColorSpace::MakeRGB(fColorSpaceTransferFn, toXYZ); in drawSlide()