/third_party/skia/src/core/ |
H A D | SkICC.cpp | 183 static void write_xyz_tag(uint32_t* ptr, const skcms_Matrix3x3& toXYZD50, int col) { in write_xyz_tag() argument 186 ptr[2] = SkEndian_SwapBE32(float_round_to_fixed(toXYZD50.vals[0][col])); in write_xyz_tag() 187 ptr[3] = SkEndian_SwapBE32(float_round_to_fixed(toXYZD50.vals[1][col])); in write_xyz_tag() 188 ptr[4] = SkEndian_SwapBE32(float_round_to_fixed(toXYZD50.vals[2][col])); in write_xyz_tag() 249 const skcms_Matrix3x3& toXYZD50) { in get_color_profile_description() 251 bool srgb_gamut = nearly_equal(toXYZD50, SkNamedGamut::kSRGB); in get_color_profile_description() 263 if (twoDotTwo && nearly_equal(toXYZD50, SkNamedGamut::kAdobeRGB)) { in get_color_profile_description() 266 bool display_p3 = nearly_equal(toXYZD50, SkNamedGamut::kDisplayP3); in get_color_profile_description() 274 bool rec2020 = nearly_equal(toXYZD50, SkNamedGamut::kRec2020); in get_color_profile_description() 287 const skcms_Matrix3x3& toXYZD50) { in get_color_profile_tag() 248 get_color_profile_description(const skcms_TransferFunction& fn, const skcms_Matrix3x3& toXYZD50) get_color_profile_description() argument 285 get_color_profile_tag(char dst[kICCDescriptionTagSize], const skcms_TransferFunction& fn, const skcms_Matrix3x3& toXYZD50) get_color_profile_tag() argument 316 SkWriteICCProfile(const skcms_TransferFunction& fn, const skcms_Matrix3x3& toXYZD50) SkWriteICCProfile() argument 374 SkWriteICCProfileWithCicp(const skcms_TransferFunction& fn, const skcms_Matrix3x3& toXYZD50, const skcms_CICP& cicp) SkWriteICCProfileWithCicp() argument [all...] |
H A D | SkColorSpace.cpp | 15 bool SkColorSpacePrimaries::toXYZD50(skcms_Matrix3x3* toXYZ_D50) const { in toXYZD50() function in SkColorSpacePrimaries 20 const skcms_Matrix3x3& toXYZD50) in SkColorSpace() 22 , fToXYZD50(toXYZD50) { in SkColorSpace() 99 SkAssertResult(skcms_Matrix3x3_invert(&skcms_sRGB_profile()->toXYZD50, in computeLazyDstFields() 135 bool SkColorSpace::toXYZD50(skcms_Matrix3x3* toXYZD50) const { in toXYZD50() function in SkColorSpace 136 *toXYZD50 = fToXYZD50; in toXYZD50() 216 if (!skcms_Matrix3x3_invert(&profile.toXYZD50, &inv)) { in Make() 231 return SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, profile.toXYZD50); in Make() 236 return SkColorSpace::MakeRGB(profile.trc[0].parametric, profile.toXYZD50); in Make() 19 SkColorSpace(const skcms_TransferFunction& transferFn, const skcms_Matrix3x3& toXYZD50) SkColorSpace() argument [all...] |
H A D | SkColorSpaceXformSteps.cpp | 58 src->toXYZD50(&srcM); in SkColorSpaceXformSteps() 59 dst->toXYZD50(&dstM); in SkColorSpaceXformSteps()
|
H A D | SkColorFilter.cpp | 347 if (fUseDstGamut) { SkAssertResult(dstCS->toXYZD50 (&gamut)); } in workingFormat()
|
/third_party/skia/src/images/ |
H A D | SkImageEncoderFns.h | 189 skcms_Matrix3x3 toXYZD50; in icc_from_color_space() local 191 if (cs->toXYZD50(&toXYZD50)) { in icc_from_color_space() 194 return SkWriteICCProfileWithCicp(fn, toXYZD50, cicp); in icc_from_color_space() 196 return SkWriteICCProfile(fn, toXYZD50); in icc_from_color_space()
|
/third_party/skia/include/core/ |
H A D | SkColorSpace.h | 33 * Convert primaries and a white point to a toXYZD50 matrix, the preferred color gamut 36 bool toXYZD50(skcms_Matrix3x3* toXYZD50) const; 150 * Returns true and sets |toXYZD50| if the color gamut can be described as a matrix. 153 bool toXYZD50(skcms_Matrix3x3* toXYZD50) const;
|
H A D | SkICC.h | 19 const skcms_Matrix3x3& toXYZD50); 20 SK_API sk_sp<SkData> SkWriteICCProfileWithCicp(const skcms_TransferFunction&, const skcms_Matrix3x3& toXYZD50,
|
/third_party/skia/include/third_party/skcms/ |
H A D | skcms.h | 179 // skcms_Parse() sets toXYZD50 to that transform and has_toXYZD50 to true. 181 skcms_Matrix3x3 toXYZD50; member 367 skcms_Matrix3x3* toXYZD50); 375 skcms_Matrix3x3* toXYZD50); 398 p->toXYZD50 = *m; in skcms_SetXYZD50()
|
/third_party/skia/gm/ |
H A D | readpixels.cpp | 76 skcms_Matrix3x3 toXYZD50; in make_parametric_transfer_fn() local 77 SkAssertResult(primaries.toXYZD50(&toXYZD50)); in make_parametric_transfer_fn() 79 return SkColorSpace::MakeRGB(fn, toXYZD50); in make_parametric_transfer_fn()
|
/third_party/skia/third_party/skcms/ |
H A D | skcms.cc | 1300 profile->toXYZD50.vals[0][0] = illuminant_X; 1301 profile->toXYZD50.vals[1][1] = illuminant_Y; 1302 profile->toXYZD50.vals[2][2] = illuminant_Z; 1323 if (!read_to_XYZD50(&rXYZ, &gXYZ, &bXYZ, &profile->toXYZD50)) { 1393 true, // has_toXYZD50, followed by 3x3 toXYZD50 matrix 1470 // Just like sRGB above, but with identity transfer functions and toXYZD50 matrix. 1486 true, // has_toXYZD50, followed by 3x3 toXYZD50 matrix 1683 skcms_Matrix3x3* toXYZD50) { 1685 !toXYZD50) { 1692 // Now convert toXYZ matrix to toXYZD50 [all...] |
/third_party/skia/tests/ |
H A D | ColorSpaceTest.cpp | 38 space->toXYZD50(&mat); in test_space() 209 bool result = primaries.toXYZD50(&toXYZ); in check_primaries() 274 SkAssertResult(space->toXYZD50(&reference)); in DEF_TEST() 288 SkAssertResult(space->toXYZD50(&reference)); in DEF_TEST()
|
H A D | AndroidCodecTest.cpp | 196 cs->toXYZD50(&matrix); in DEF_TEST()
|
H A D | NdkEncodeTest.cpp | 261 return a && b && a->isNumericalTransferFn(&fnA) && a->toXYZD50(&gamutA) in nearly_equal() 262 && b->isNumericalTransferFn(&fnB) && b->toXYZD50(&gamutB) in nearly_equal()
|
H A D | CodecTest.cpp | 1616 bool success = p3->toXYZD50(&mat0); in test_encode_icc() 1618 success = p3Codec->getInfo().colorSpace()->toXYZD50(&mat1); in test_encode_icc()
|
/third_party/skia/docs/examples/ |
H A D | DCIToXYZD50.cpp | 19 p.toXYZD50(&toXYZ); in REG_FIDDLE()
|
/third_party/skia/src/codec/ |
H A D | SkPngCodec.cpp | 388 skcms_Matrix3x3 toXYZD50 = skcms_sRGB_profile()->toXYZD50; in read_color_profile() local 406 toXYZD50 = tmp; in read_color_profile() 428 skcms_SetXYZD50(&skcmsProfile, &toXYZD50); in read_color_profile()
|
H A D | SkAndroidCodec.cpp | 51 load_gamut(rgb, profile.toXYZD50); in is_wide_gamut()
|
/third_party/skia/src/ports/ |
H A D | SkNDKConversions.cpp | 100 if (cs->isNumericalTransferFn(&fn) && cs->toXYZD50(&gamut)) { in toDataSpace()
|
/third_party/skia/experimental/ffmpeg/ |
H A D | SkVideoDecoder.cpp | 108 p->toXYZD50(&matrix); in make_colorspace()
|
/third_party/skia/dm/ |
H A D | DM.cpp | 1260 if (cs->toXYZD50(&gamut)) { in identify_gamut()
|
/third_party/skia/tools/viewer/ |
H A D | Viewer.cpp | 1475 SkAssertResult(fColorSpacePrimaries.toXYZD50(&toXYZ)); in drawSlide()
|