Home
last modified time | relevance | path

Searched refs:SkColorSpace (Results 1 – 25 of 451) sorted by relevance

12345678910>>...19

/external/skqp/src/core/
DSkColorSpace.cpp18 SkColorSpace::SkColorSpace(const float transferFn[7], in SkColorSpace() function in SkColorSpace
39 sk_sp<SkColorSpace> SkColorSpace::MakeRGB(const skcms_TransferFunction& transferFn, in MakeRGB()
49 return SkColorSpace::MakeSRGB(); in MakeRGB()
56 return SkColorSpace::MakeSRGBLinear(); in MakeRGB()
61 return sk_sp<SkColorSpace>(new SkColorSpace(tf, toXYZ)); in MakeRGB()
66 static SkColorSpace* Make(const skcms_TransferFunction& transferFn, in Make()
68 return new SkColorSpace(&transferFn.g, to_xyz); in Make()
72 SkColorSpace* sk_srgb_singleton() { in sk_srgb_singleton()
73 static SkColorSpace* cs = SkColorSpaceSingletonFactory::Make(SkNamedTransferFn::kSRGB, in sk_srgb_singleton()
78 SkColorSpace* sk_srgb_linear_singleton() { in sk_srgb_linear_singleton()
[all …]
/external/skia/src/core/
DSkColorSpace.cpp19 SkColorSpace::SkColorSpace(const skcms_TransferFunction& transferFn, in SkColorSpace() function in SkColorSpace
39 sk_sp<SkColorSpace> SkColorSpace::MakeRGB(const skcms_TransferFunction& transferFn, in MakeRGB()
49 return SkColorSpace::MakeSRGB(); in MakeRGB()
56 return SkColorSpace::MakeSRGBLinear(); in MakeRGB()
61 return sk_sp<SkColorSpace>(new SkColorSpace(*tf, toXYZ)); in MakeRGB()
66 static SkColorSpace* Make(const skcms_TransferFunction& transferFn, in Make()
68 return new SkColorSpace(transferFn, to_xyz); in Make()
72 SkColorSpace* sk_srgb_singleton() { in sk_srgb_singleton()
73 static SkColorSpace* cs = SkColorSpaceSingletonFactory::Make(SkNamedTransferFn::kSRGB, in sk_srgb_singleton()
78 SkColorSpace* sk_srgb_linear_singleton() { in sk_srgb_linear_singleton()
[all …]
DSkColorFilter.cpp67 SkColorSpace* dstCS, in program()
82 SkColorSpace* cs = nullptr; in filterColor()
86 SkColor4f SkColorFilter::filterColor4f(const SkColor4f& origSrcColor, SkColorSpace* srcCS, in filterColor4f()
87 SkColorSpace* dstCS) const { in filterColor4f()
96 SkColorSpace* dstCS) const { in onFilterColor4f()
153 SkColorSpace* dstCS, in onProgram()
274 skvm::Color onProgram(skvm::Builder* p, skvm::Color c, SkColorSpace* dstCS, in onProgram()
333 sk_sp<SkColorSpace> workingFormat(const sk_sp<SkColorSpace>& dstCS, SkAlphaType* at) const { in workingFormat()
341 return SkColorSpace::MakeRGB(tf, gamut); in workingFormat()
348 sk_sp<SkColorSpace> dstCS = dstColorInfo.refColorSpace(); in asFragmentProcessor()
[all …]
/external/skia/tests/
DColorSpaceTest.cpp30 static void test_space(skiatest::Reporter* r, SkColorSpace* space, in test_space()
96 static void test_serialize(skiatest::Reporter* r, sk_sp<SkColorSpace> space, bool isNamed) { in test_serialize()
103 sk_sp<SkColorSpace> newSpace1 = SkColorSpace::Deserialize(data1->data(), data1->size()); in test_serialize()
104 sk_sp<SkColorSpace> newSpace2 = SkColorSpace::Deserialize(data2->data(), data2->size()); in test_serialize()
110 REPORTER_ASSERT(r, SkColorSpace::Equals(space.get(), newSpace1.get())); in test_serialize()
111 REPORTER_ASSERT(r, SkColorSpace::Equals(space.get(), newSpace2.get())); in test_serialize()
116 test_serialize(r, SkColorSpace::MakeSRGB(), true); in DEF_TEST()
117 test_serialize(r, SkColorSpace::MakeSRGBLinear(), true); in DEF_TEST()
125 sk_sp<SkColorSpace> space = SkColorSpace::Make(profile); in DEF_TEST()
146 test_serialize(r, SkColorSpace::MakeRGB(fn, toXYZ), false); in DEF_TEST()
[all …]
DNdkDecodeTest.cpp77 for (sk_sp<SkColorSpace> cs : { in DEF_TEST()
78 sk_sp<SkColorSpace>(nullptr), in DEF_TEST()
79 SkColorSpace::MakeSRGB(), in DEF_TEST()
80 SkColorSpace::MakeSRGBLinear(), in DEF_TEST()
81 SkColorSpace::MakeRGB(SkNamedTransferFn::kRec2020, SkNamedGamut::kSRGB), in DEF_TEST()
82 SkColorSpace::MakeRGB(SkNamedTransferFn::kRec2020, SkNamedGamut::kRec2020), in DEF_TEST()
83 SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kDisplayP3), in DEF_TEST()
84 SkColorSpace::MakeRGB(SkNamedTransferFn::k2Dot2, SkNamedGamut::kAdobeRGB), in DEF_TEST()
85 SkColorSpace::MakeRGB(k2Dot6, kDCIP3), in DEF_TEST()
101 if (!cs) cs = SkColorSpace::MakeSRGB(); in DEF_TEST()
[all …]
DNdkEncodeTest.cpp190 auto info = SkImageInfo::Make(7, 13, ct, kOpaque_SkAlphaType, SkColorSpace::MakeSRGB()); in DEF_TEST()
258 static bool nearly_equal(SkColorSpace* a, SkColorSpace* b) { in nearly_equal()
268 sk_sp<SkColorSpace> cs; in DEF_TEST()
271 { sk_sp<SkColorSpace>(nullptr), "null" }, in DEF_TEST()
272 { SkColorSpace::MakeSRGB(), "srgb" }, in DEF_TEST()
273 { SkColorSpace::MakeSRGBLinear(), "srgb-linear"}, in DEF_TEST()
274 { SkColorSpace::MakeRGB(SkNamedTransferFn::kRec2020, SkNamedGamut::kSRGB), "bt709" }, in DEF_TEST()
275 { SkColorSpace::MakeRGB(SkNamedTransferFn::kRec2020, SkNamedGamut::kRec2020), "rec2020" }, in DEF_TEST()
276 { SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kDisplayP3), "p3" }, in DEF_TEST()
277 { SkColorSpace::MakeRGB(SkNamedTransferFn::k2Dot2, SkNamedGamut::kAdobeRGB), "adobeRGB"}, in DEF_TEST()
[all …]
/external/skqp/tests/
DColorSpaceTest.cpp29 static void test_space(skiatest::Reporter* r, SkColorSpace* space, in test_space()
95 static void test_serialize(skiatest::Reporter* r, sk_sp<SkColorSpace> space, bool isNamed) { in test_serialize()
102 sk_sp<SkColorSpace> newSpace1 = SkColorSpace::Deserialize(data1->data(), data1->size()); in test_serialize()
103 sk_sp<SkColorSpace> newSpace2 = SkColorSpace::Deserialize(data2->data(), data2->size()); in test_serialize()
109 REPORTER_ASSERT(r, SkColorSpace::Equals(space.get(), newSpace1.get())); in test_serialize()
110 REPORTER_ASSERT(r, SkColorSpace::Equals(space.get(), newSpace2.get())); in test_serialize()
115 test_serialize(r, SkColorSpace::MakeSRGB(), true); in DEF_TEST()
116 test_serialize(r, SkColorSpace::MakeSRGBLinear(), true); in DEF_TEST()
124 sk_sp<SkColorSpace> space = SkColorSpace::Make(profile); in DEF_TEST()
145 test_serialize(r, SkColorSpace::MakeRGB(fn, toXYZ), false); in DEF_TEST()
[all …]
/external/skqp/include/core/
DSkColorSpace.h96 class SK_API SkColorSpace : public SkNVRefCnt<SkColorSpace> {
101 static sk_sp<SkColorSpace> MakeSRGB();
106 static sk_sp<SkColorSpace> MakeSRGBLinear();
111 static sk_sp<SkColorSpace> MakeRGB(const skcms_TransferFunction& transferFn,
117 static sk_sp<SkColorSpace> Make(const skcms_ICCProfile&);
161 sk_sp<SkColorSpace> makeLinearGamma() const;
168 sk_sp<SkColorSpace> makeSRGBGamma() const;
178 sk_sp<SkColorSpace> makeColorSpin() const;
206 static sk_sp<SkColorSpace> Deserialize(const void* data, size_t length);
212 static bool Equals(const SkColorSpace*, const SkColorSpace*);
[all …]
DSkImage.h228 sk_sp<SkColorSpace> colorSpace) { in MakeFromTexture()
263 sk_sp<SkColorSpace> colorSpace,
293 bool buildMips, SkColorSpace* dstColorSpace,
322 bool buildMips, SkColorSpace* dstColorSpace,
352 sk_sp<SkColorSpace> colorSpace = nullptr);
377 sk_sp<SkColorSpace> imageColorSpace = nullptr);
405 sk_sp<SkColorSpace> imageColorSpace = nullptr);
430 sk_sp<SkColorSpace> imageColorSpace = nullptr);
462 sk_sp<SkColorSpace> imageColorSpace = nullptr);
469 sk_sp<SkColorSpace> imageColorSpace = nullptr);
[all …]
/external/skia/include/core/
DSkColorSpace.h104 class SK_API SkColorSpace : public SkNVRefCnt<SkColorSpace> {
109 static sk_sp<SkColorSpace> MakeSRGB();
114 static sk_sp<SkColorSpace> MakeSRGBLinear();
119 static sk_sp<SkColorSpace> MakeRGB(const skcms_TransferFunction& transferFn,
125 static sk_sp<SkColorSpace> Make(const skcms_ICCProfile&);
166 sk_sp<SkColorSpace> makeLinearGamma() const;
173 sk_sp<SkColorSpace> makeSRGBGamma() const;
183 sk_sp<SkColorSpace> makeColorSpin() const;
211 static sk_sp<SkColorSpace> Deserialize(const void* data, size_t length);
217 static bool Equals(const SkColorSpace*, const SkColorSpace*);
[all …]
DSkImageInfo.h195 SkColorInfo(SkColorType ct, SkAlphaType at, sk_sp<SkColorSpace> cs) in SkColorInfo()
204 SkColorSpace* colorSpace() const { return fColorSpace.get(); } in colorSpace()
205 sk_sp<SkColorSpace> refColorSpace() const { return fColorSpace; } in refColorSpace()
219 SkColorSpace::Equals(fColorSpace.get(), other.fColorSpace.get());
245 SkColorInfo makeColorSpace(sk_sp<SkColorSpace> cs) const { in makeColorSpace()
268 sk_sp<SkColorSpace> fColorSpace;
308 sk_sp<SkColorSpace> cs = nullptr) {
312 sk_sp<SkColorSpace> cs = nullptr) {
349 sk_sp<SkColorSpace> cs = nullptr) {
381 static SkImageInfo MakeN32Premul(int width, int height, sk_sp<SkColorSpace> cs = nullptr) {
[all …]
/external/skqp/bench/
DColorCanvasDrawBitmapBench.cpp16 ColorCanvasDrawBitmap(sk_sp<SkColorSpace> src, sk_sp<SkColorSpace> dst, const char* name) in ColorCanvasDrawBitmap()
46 sk_sp<SkColorSpace> fDst;
53 DEF_BENCH(return new ColorCanvasDrawBitmap(nullptr, SkColorSpace::MakeSRGB(), "null_to_sRGB");)
54 DEF_BENCH(return new ColorCanvasDrawBitmap(SkColorSpace::MakeSRGB(), SkColorSpace::MakeSRGB(),
57 SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kAdobeRGB),
58 SkColorSpace::MakeSRGB(), "AdobeRGB_to_sRGB");)
/external/skia/gm/
Dreadpixels.cpp72 SkColorSpace::MakeSRGB()); in make_picture_image()
75 static sk_sp<SkColorSpace> make_parametric_transfer_fn(const SkColorSpacePrimaries& primaries) { in make_parametric_transfer_fn()
79 return SkColorSpace::MakeRGB(fn, toXYZD50); in make_parametric_transfer_fn()
82 static sk_sp<SkColorSpace> make_wide_gamut() { in make_wide_gamut()
96 static sk_sp<SkColorSpace> make_small_gamut() { in make_small_gamut()
111 sk_sp<SkColorSpace> dstColorSpace, SkImage::CachingHint hint) { in draw_image()
121 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); in draw_image()
149 const sk_sp<SkColorSpace> colorSpaces[] = { in onDraw()
151 SkColorSpace::MakeSRGB(), in onDraw()
155 for (const sk_sp<SkColorSpace>& dstColorSpace : colorSpaces) { in onDraw()
[all …]
Dmakecolorspace.cpp35 sk_sp<SkImage> orig, sk_sp<SkColorSpace> colorSpace, GrDirectContext* direct) { in make_color_space()
40 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); in make_color_space()
42 srgb = SkColorSpace::MakeSRGBLinear(); in make_color_space()
48 sk_sp<SkColorSpace> wideGamut = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB,
50 sk_sp<SkColorSpace> wideGamutLinear = wideGamut->makeLinearGamma();
85 auto rec2020 = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kRec2020);
142 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB();
143 sk_sp<SkColorSpace> spin = srgb->makeColorSpin();
/external/skqp/gm/
Dreadpixels.cpp61 SkColorSpace::MakeSRGB()); in make_picture_image()
64 static sk_sp<SkColorSpace> make_parametric_transfer_fn(const SkColorSpacePrimaries& primaries) { in make_parametric_transfer_fn()
68 return SkColorSpace::MakeRGB(fn, toXYZD50); in make_parametric_transfer_fn()
71 static sk_sp<SkColorSpace> make_wide_gamut() { in make_wide_gamut()
85 static sk_sp<SkColorSpace> make_small_gamut() { in make_small_gamut()
99 SkAlphaType dstAlphaType, sk_sp<SkColorSpace> dstColorSpace, in draw_image()
110 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); in draw_image()
138 const sk_sp<SkColorSpace> colorSpaces[] = { in onDraw()
140 SkColorSpace::MakeSRGB(), in onDraw()
144 for (sk_sp<SkColorSpace> dstColorSpace : colorSpaces) { in onDraw()
[all …]
/external/skqp/src/gpu/
DGrColorSpaceXform.h15 class SkColorSpace; variable
24 static sk_sp<GrColorSpaceXform> Make(SkColorSpace* src, SkAlphaType srcAT,
25 SkColorSpace* dst, SkAlphaType dstAT);
53 static std::unique_ptr<GrFragmentProcessor> Make(SkColorSpace* src, SkAlphaType srcAT,
54 SkColorSpace* dst, SkAlphaType dstAT);
61 SkColorSpace* src, SkAlphaType srcAT,
62 SkColorSpace* dst);
DGrContextPriv.h52 sk_sp<SkColorSpace> = nullptr,
61 sk_sp<SkColorSpace> colorSpace = nullptr,
66 sk_sp<SkColorSpace> colorSpace);
72 sk_sp<SkColorSpace> colorSpace,
78 sk_sp<SkColorSpace> colorSpace,
85 sk_sp<SkColorSpace> colorSpace,
169 GrColorType dstColorType, SkColorSpace* dstColorSpace, void* buffer,
190 GrColorType srcColorType, SkColorSpace* srcColorSpace,
235 sk_sp<SkColorSpace> colorSpace,
252 sk_sp<SkColorSpace> colorSpace,
/external/skia/docs/examples/
DImage_makeColorSpace.cpp8 sk_sp<SkColorSpace> normalColorSpace = SkColorSpace::MakeRGB(
9 SkColorSpace::kSRGB_RenderTargetGamma, SkColorSpace::kSRGB_Gamut);
10 sk_sp<SkColorSpace> wackyColorSpace = normalColorSpace->makeColorSpin();
DImage_colorSpace.cpp12 for (auto gamma : { SkColorSpace::kLinear_RenderTargetGamma,
13 SkColorSpace::kSRGB_RenderTargetGamma } ) {
15 sk_sp<SkColorSpace> colorSpace = SkColorSpace::MakeRGB(gamma, SkColorSpace::kSRGB_Gamut);
DImage_refColorSpace.cpp12 for (auto gamma : { SkColorSpace::kLinear_RenderTargetGamma,
13 SkColorSpace::kSRGB_RenderTargetGamma } ) {
15 sk_sp<SkColorSpace> colorSpace = SkColorSpace::MakeRGB(gamma, SkColorSpace::kSRGB_Gamut);
/external/skia/src/image/
DSkImage_GpuYUVA.h29 sk_sp<SkColorSpace>);
39 sk_sp<SkImage> onMakeColorTypeAndColorSpace(SkColorType, sk_sp<SkColorSpace>,
42 sk_sp<SkImage> onReinterpretColorSpace(sk_sp<SkColorSpace>) const final;
50 SkImage_GpuYUVA(sk_sp<GrImageContext>, const SkImage_GpuYUVA* image, sk_sp<SkColorSpace>);
68 const sk_sp<SkColorSpace> fFromColorSpace;
72 mutable sk_sp<SkColorSpace> fOnMakeColorSpaceTarget;
/external/skqp/src/image/
DSkImage_GpuYUVA.h29 GrSurfaceOrigin, sk_sp<SkColorSpace>);
39 sk_sp<SkImage> onMakeColorTypeAndColorSpace(SkColorType, sk_sp<SkColorSpace>) const final;
58 SkColorSpace* targetColorSpace() const { return fTargetColorSpace.get(); } in targetColorSpace()
71 sk_sp<SkColorSpace> imageColorSpace,
79 SkImage_GpuYUVA(const SkImage_GpuYUVA* image, sk_sp<SkColorSpace>);
88 const sk_sp<SkColorSpace> fTargetColorSpace;
92 mutable sk_sp<SkColorSpace> fOnMakeColorSpaceTarget;
DSkImage.cpp87 SkColorSpace* SkImage::colorSpace() const { in colorSpace()
91 sk_sp<SkColorSpace> SkImage::refColorSpace() const { in refColorSpace()
246 BitDepth bitDepth, sk_sp<SkColorSpace> colorSpace) { in MakeFromPicture()
304 sk_sp<SkImage> SkImage::makeColorSpace(sk_sp<SkColorSpace> target) const { in makeColorSpace()
312 SkColorSpace* colorSpace = this->colorSpace(); in makeColorSpace()
316 if (SkColorSpace::Equals(colorSpace, target.get()) || this->isAlphaOnly()) { in makeColorSpace()
324 sk_sp<SkColorSpace> targetColorSpace) const { in makeColorTypeAndColorSpace()
330 SkColorSpace* colorSpace = this->colorSpace(); in makeColorTypeAndColorSpace()
335 (SkColorSpace::Equals(colorSpace, targetColorSpace.get()) || this->isAlphaOnly())) { in makeColorTypeAndColorSpace()
377 SkColorType ct, SkAlphaType at, sk_sp<SkColorSpace> cs, in MakeFromTexture()
[all …]
/external/skqp/include/effects/
DSkToSRGBColorFilter.h15 class SkColorSpace; variable
23 static sk_sp<SkColorFilter> Make(sk_sp<SkColorSpace> srcColorSpace);
34 SkToSRGBColorFilter(sk_sp<SkColorSpace>);
35 void onAppendStages(SkRasterPipeline*, SkColorSpace*, SkArenaAlloc*,
38 sk_sp<SkColorSpace> fSrcColorSpace;
/external/skia/bench/
DWritePixelsBench.cpp19 WritePixelsBench(SkColorType ct, SkAlphaType at, sk_sp<SkColorSpace> cs) in WritePixelsBench()
51 sk_sp<SkColorSpace> fCS;
61 DEF_BENCH(return new WritePixelsBench(kRGBA_8888_SkColorType, kPremul_SkAlphaType, SkColorSpace::Ma…
62 DEF_BENCH(return new WritePixelsBench(kRGBA_8888_SkColorType, kUnpremul_SkAlphaType, SkColorSpace::…
66 DEF_BENCH(return new WritePixelsBench(kBGRA_8888_SkColorType, kPremul_SkAlphaType, SkColorSpace::Ma…
67 DEF_BENCH(return new WritePixelsBench(kBGRA_8888_SkColorType, kUnpremul_SkAlphaType, SkColorSpace::…

12345678910>>...19