Home
last modified time | relevance | path

Searched refs:SkColorSpace_Base (Results 1 – 25 of 26) sorted by relevance

12

/external/skia/src/core/
DSkColorSpace.cpp86 SkColorSpace_Base::SkColorSpace_Base(sk_sp<SkData> profileData) in SkColorSpace_Base() function in SkColorSpace_Base
115 sk_sp<SkColorSpace> SkColorSpace_Base::MakeRGB(SkGammaNamed gammaNamed, const SkMatrix44& toXYZD50) in MakeRGB()
120 return SkColorSpace_Base::MakeNamed(kSRGB_Named); in MakeRGB()
125 return SkColorSpace_Base::MakeNamed(kAdobeRGB_Named); in MakeRGB()
130 return SkColorSpace_Base::MakeNamed(kSRGBLinear_Named); in MakeRGB()
146 return SkColorSpace_Base::MakeRGB(kLinear_SkGammaNamed, toXYZD50); in MakeRGB()
148 return SkColorSpace_Base::MakeRGB(kSRGB_SkGammaNamed, toXYZD50); in MakeRGB()
165 return SkColorSpace_Base::MakeRGB(k2Dot2Curve_SkGammaNamed, toXYZD50); in MakeRGB()
169 return SkColorSpace_Base::MakeRGB(kLinear_SkGammaNamed, toXYZD50); in MakeRGB()
202 sk_sp<SkColorSpace> SkColorSpace_Base::MakeNamed(Named named) { in MakeNamed()
[all …]
DSkColorSpace_Base.h139 class SkColorSpace_Base : public SkColorSpace {
209 SkColorSpace_Base(sk_sp<SkData> profileData);
221 static inline SkColorSpace_Base* as_CSB(SkColorSpace* colorSpace) { in as_CSB()
222 return static_cast<SkColorSpace_Base*>(colorSpace); in as_CSB()
225 static inline const SkColorSpace_Base* as_CSB(const SkColorSpace* colorSpace) { in as_CSB()
226 return static_cast<const SkColorSpace_Base*>(colorSpace); in as_CSB()
229 static inline SkColorSpace_Base* as_CSB(const sk_sp<SkColorSpace>& colorSpace) { in as_CSB()
230 return static_cast<SkColorSpace_Base*>(colorSpace.get()); in as_CSB()
DSkColorSpace_XYZ.h15 class SkColorSpace_XYZ : public SkColorSpace_Base {
58 friend class SkColorSpace_Base; variable
60 typedef SkColorSpace_Base INHERITED;
DSkColorSpace_A2B.h28 class SkColorSpace_A2B : public SkColorSpace_Base {
174 friend class SkColorSpace_Base; variable
176 typedef SkColorSpace_Base INHERITED;
DSkColorSpace_XYZ.cpp89 return SkColorSpace_Base::MakeRGB(kLinear_SkGammaNamed, fToXYZD50); in makeLinearGamma()
96 return SkColorSpace_Base::MakeRGB(kSRGB_SkGammaNamed, fToXYZD50); in makeSRGBGamma()
DSkColorSpace_ICC.cpp1183 static inline int icf_channels(SkColorSpace_Base::ICCTypeFlag iccType) { in icf_channels()
1185 case SkColorSpace_Base::kRGB_ICCTypeFlag: in icf_channels()
1187 case SkColorSpace_Base::kCMYK_ICCTypeFlag: in icf_channels()
1197 SkColorSpace_Base::ICCTypeFlag iccType) { in load_a2b0()
1430 return SkColorSpace_Base::MakeRGB(gammaNamed, mat); in make_xyz()
1455 return SkColorSpace_Base::MakeRGB(data.fNamed, toXYZD50); in make_gray()
1475 static sk_sp<SkColorSpace> make_a2b(SkColorSpace_Base::ICCTypeFlag iccType, in make_a2b()
1494 return SkColorSpace_Base::MakeICC(input, len, SkColorSpace_Base::kRGB_ICCTypeFlag); in MakeICC()
1497 sk_sp<SkColorSpace> SkColorSpace_Base::MakeICC(const void* input, size_t len, in MakeICC()
DSkColorSpaceXform_A2B.cpp111 case SkColorSpace_Base::kRGB_ICCTypeFlag: in SkColorSpaceXform_A2B()
114 case SkColorSpace_Base::kCMYK_ICCTypeFlag: { in SkColorSpaceXform_A2B()
DSkICC.cpp71 if (SkColorSpace_Base::Type::kA2B == as_CSB(fColorSpace)->type()) { in rawTransferFnData()
DSkColorSpaceXform.cpp311 if (SkColorSpace_Base::Type::kA2B == as_CSB(dstSpace)->type()) { in New()
316 if (SkColorSpace_Base::Type::kA2B == as_CSB(srcSpace)->type()) { in New()
/external/skia/tests/
DColorSpaceTest.cpp27 SkASSERT(SkColorSpace_Base::Type::kXYZ == as_CSB(space)->type()); in test_space()
182 SkColorSpace_Base::MakeNamed(SkColorSpace_Base::kAdobeRGB_Named); in DEF_TEST()
202 SkColorSpace_Base::Named fNamed; in DEF_TEST()
205 { SkColorSpace_Base::kSRGB_Named, kSRGB_SkGammaNamed }, in DEF_TEST()
206 { SkColorSpace_Base::kAdobeRGB_Named, k2Dot2Curve_SkGammaNamed }, in DEF_TEST()
207 { SkColorSpace_Base::kSRGBLinear_Named, kLinear_SkGammaNamed }, in DEF_TEST()
211 auto cs = SkColorSpace_Base::MakeNamed(rec.fNamed); in DEF_TEST()
214 SkASSERT(SkColorSpace_Base::Type::kXYZ == as_CSB(cs)->type()); in DEF_TEST()
245 test_serialize(r, SkColorSpace_Base::MakeNamed(SkColorSpace_Base::kAdobeRGB_Named).get(), true); in DEF_TEST()
272 sk_sp<SkColorSpace> adobe = SkColorSpace_Base::MakeNamed(SkColorSpace_Base::kAdobeRGB_Named); in DEF_TEST()
[all …]
DColorSpaceXformTest.cpp53 SkColorSpace_Base::kRGB_ICCTypeFlag, in CreateIdentityXform_A2B()
63 SkColorSpace_Base::ICCTypeFlag iccType, in CreateA2BSpace()
312 SkColorSpace_Base::kRGB_ICCTypeFlag, in DEF_TEST()
336 sk_sp<SkColorSpace> adobe = SkColorSpace_Base::MakeNamed(SkColorSpace_Base::kAdobeRGB_Named); in DEF_TEST()
DICCTest.cpp128 SkColorSpace_Base::MakeNamed(SkColorSpace_Base::kAdobeRGB_Named).get(), false); in DEF_TEST()
180 ICCTest::MakeICC(SkColorSpace_Base::MakeNamed(SkColorSpace_Base::kAdobeRGB_Named)); in DEF_TEST()
DImageIsOpaqueTest.cpp56 SkColorSpace_Base::MakeNamed(SkColorSpace_Base::kAdobeRGB_Named), in DEF_TEST()
DSurfaceTest.cpp819 auto adobeColorSpace = SkColorSpace_Base::MakeNamed(SkColorSpace_Base::kAdobeRGB_Named); in test_surface_creation_and_snapshot_with_color_space()
DCodecTest.cpp1160 SkASSERT(SkColorSpace_Base::Type::kXYZ == as_CSB(infoF16.colorSpace())->type()); in test_conversion_possible()
/external/skia/src/gpu/
DGrTestUtils.cpp303 gColorSpaces[2] = SkColorSpace_Base::MakeNamed(SkColorSpace_Base::kAdobeRGB_Named); in TestColorSpace()
314 … sk_sp<SkColorSpace> adobe = SkColorSpace_Base::MakeNamed(SkColorSpace_Base::kAdobeRGB_Named); in TestColorXform()
/external/skia/src/codec/
DSkHeifCodec.cpp144 SkColorSpace_Base::ICCTypeFlag iccType = SkColorSpace_Base::kRGB_ICCTypeFlag; in NewFromStream()
145 colorSpace = SkColorSpace_Base::MakeICC( in NewFromStream()
DSkJpegCodec.cpp234 SkColorSpace_Base::ICCTypeFlag iccType = SkColorSpace_Base::kRGB_ICCTypeFlag; in ReadHeader()
238 iccType = SkColorSpace_Base::kCMYK_ICCTypeFlag; in ReadHeader()
242 iccType |= SkColorSpace_Base::kGray_ICCTypeFlag; in ReadHeader()
247 colorSpace = SkColorSpace_Base::MakeICC(iccData->data(), iccData->size(), iccType); in ReadHeader()
DSkPngCodec.cpp344 SkColorSpace_Base::ICCTypeFlag iccType) { in read_color_space()
361 return SkColorSpace_Base::MakeICC(profile, length, iccType); in read_color_space()
901 SkColorSpace_Base::ICCTypeFlag iccType = SkColorSpace_Base::kRGB_ICCTypeFlag; in infoCallback()
903 iccType |= SkColorSpace_Base::kGray_ICCTypeFlag; in infoCallback()
DSkRawCodec.cpp657 colorSpace = SkColorSpace_Base::MakeNamed(SkColorSpace_Base::kAdobeRGB_Named); in NewFromStream()
/external/skia/include/core/
DSkColorSpace.h169 friend class SkColorSpace_Base; variable
/external/skia/tools/
Dcolorspaceinfo.cpp496 if (SkColorSpace_Base::Type::kXYZ == as_CSB(colorSpace)->type()) { in main()
543 case SkColorSpace_Base::kRGB_ICCTypeFlag: in main()
546 case SkColorSpace_Base::kCMYK_ICCTypeFlag: in main()
549 case SkColorSpace_Base::kGray_ICCTypeFlag: in main()
/external/skia/bench/
DColorCodecBench.cpp90 SkASSERT(SkColorSpace_Base::Type::kXYZ == as_CSB(fDstSpace)->type()); in onDelayedSetup()
/external/skia/src/shaders/gradients/
DSkGradientShader.cpp1941 SkASSERT(SkColorSpace_Base::Type::kXYZ == as_CSB(fColorSpace)->type()); in RandomGradientParams()
/external/skia/dm/
DDMSrcSink.cpp1082 SkASSERT(SkColorSpace_Base::Type::kXYZ == as_CSB(decodeInfo.colorSpace())->type()); in draw()

12