Home
last modified time | relevance | path

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

12345678910>>...18

/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.cpp18 SkColorSpace::SkColorSpace(const skcms_TransferFunction& transferFn, in SkColorSpace() function in SkColorSpace
38 sk_sp<SkColorSpace> SkColorSpace::MakeRGB(const skcms_TransferFunction& transferFn, in MakeRGB()
48 return SkColorSpace::MakeSRGB(); in MakeRGB()
55 return SkColorSpace::MakeSRGBLinear(); in MakeRGB()
60 return sk_sp<SkColorSpace>(new SkColorSpace(*tf, toXYZ)); in MakeRGB()
65 static SkColorSpace* Make(const skcms_TransferFunction& transferFn, in Make()
67 return new SkColorSpace(transferFn, to_xyz); in Make()
71 SkColorSpace* sk_srgb_singleton() { in sk_srgb_singleton()
72 static SkColorSpace* cs = SkColorSpaceSingletonFactory::Make(SkNamedTransferFn::kSRGB, in sk_srgb_singleton()
77 SkColorSpace* sk_srgb_linear_singleton() { in sk_srgb_linear_singleton()
[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 …]
/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.h106 class SK_API SkColorSpace : public SkNVRefCnt<SkColorSpace> {
111 static sk_sp<SkColorSpace> MakeSRGB();
116 static sk_sp<SkColorSpace> MakeSRGBLinear();
121 static sk_sp<SkColorSpace> MakeRGB(const skcms_TransferFunction& transferFn,
127 static sk_sp<SkColorSpace> Make(const skcms_ICCProfile&);
168 sk_sp<SkColorSpace> makeLinearGamma() const;
175 sk_sp<SkColorSpace> makeSRGBGamma() const;
185 sk_sp<SkColorSpace> makeColorSpin() const;
213 static sk_sp<SkColorSpace> Deserialize(const void* data, size_t length);
219 static bool Equals(const SkColorSpace*, const SkColorSpace*);
[all …]
DSkImage.h330 sk_sp<SkColorSpace> colorSpace) { in MakeFromTexture()
360 sk_sp<SkColorSpace> colorSpace,
392 sk_sp<SkColorSpace> colorSpace,
441 sk_sp<SkColorSpace> colorSpace = nullptr);
463 sk_sp<SkColorSpace> imageColorSpace = nullptr);
490 sk_sp<SkColorSpace> imageColorSpace = nullptr,
514 sk_sp<SkColorSpace> imageColorSpace = nullptr);
543 sk_sp<SkColorSpace> imageColorSpace = nullptr);
550 sk_sp<SkColorSpace> imageColorSpace = nullptr);
560 sk_sp<SkColorSpace> imageColorSpace = nullptr);
[all …]
DSkImageInfo.h186 SkColorInfo(SkColorType ct, SkAlphaType at, sk_sp<SkColorSpace> cs) in SkColorInfo()
195 SkColorSpace* colorSpace() const { return fColorSpace.get(); } in colorSpace()
196 sk_sp<SkColorSpace> refColorSpace() const { return fColorSpace; } in refColorSpace()
207 SkColorSpace::Equals(fColorSpace.get(), other.fColorSpace.get());
233 SkColorInfo makeColorSpace(sk_sp<SkColorSpace> cs) const { in makeColorSpace()
256 sk_sp<SkColorSpace> fColorSpace;
296 sk_sp<SkColorSpace> cs = nullptr) {
300 sk_sp<SkColorSpace> cs = nullptr) {
337 sk_sp<SkColorSpace> cs = nullptr) {
369 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.cpp77 SkColorSpace::MakeSRGB()); in make_picture_image()
80 static sk_sp<SkColorSpace> make_parametric_transfer_fn(const SkColorSpacePrimaries& primaries) { in make_parametric_transfer_fn()
84 return SkColorSpace::MakeRGB(fn, toXYZD50); in make_parametric_transfer_fn()
87 static sk_sp<SkColorSpace> make_wide_gamut() { in make_wide_gamut()
101 static sk_sp<SkColorSpace> make_small_gamut() { in make_small_gamut()
115 SkAlphaType dstAlphaType, sk_sp<SkColorSpace> dstColorSpace, in draw_image()
126 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); in draw_image()
154 const sk_sp<SkColorSpace> colorSpaces[] = { in onDraw()
156 SkColorSpace::MakeSRGB(), in onDraw()
160 for (sk_sp<SkColorSpace> dstColorSpace : colorSpaces) { in onDraw()
[all …]
Dmakecolorspace.cpp37 sk_sp<SkImage> make_color_space(sk_sp<SkImage> orig, sk_sp<SkColorSpace> colorSpace) { in make_color_space()
42 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); in make_color_space()
44 srgb = SkColorSpace::MakeSRGBLinear(); in make_color_space()
50 sk_sp<SkColorSpace> wideGamut = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB,
52 sk_sp<SkColorSpace> wideGamutLinear = wideGamut->makeLinearGamma();
86 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 const SkYUVAIndex[4], GrSurfaceOrigin, sk_sp<SkColorSpace>);
45 SkColorType, sk_sp<SkColorSpace>) const final;
47 sk_sp<SkImage> onReinterpretColorSpace(sk_sp<SkColorSpace>) const final;
75 sk_sp<SkColorSpace> imageColorSpace,
83 SkImage_GpuYUVA(const SkImage_GpuYUVA* image, sk_sp<SkColorSpace>);
98 const sk_sp<SkColorSpace> fFromColorSpace;
102 mutable sk_sp<SkColorSpace> fOnMakeColorSpaceTarget;
DSkImage.cpp82 SkColorSpace* SkImage::colorSpace() const { return fInfo.colorSpace(); } in colorSpace()
84 sk_sp<SkColorSpace> SkImage::refColorSpace() const { return fInfo.refColorSpace(); } in refColorSpace()
253 BitDepth bitDepth, sk_sp<SkColorSpace> colorSpace) { in MakeFromPicture()
329 sk_sp<SkImage> SkImage::makeColorSpace(sk_sp<SkColorSpace> target) const { in makeColorSpace()
337 SkColorSpace* colorSpace = this->colorSpace(); in makeColorSpace()
341 if (SkColorSpace::Equals(colorSpace, target.get()) || this->isAlphaOnly()) { in makeColorSpace()
355 sk_sp<SkColorSpace> targetColorSpace) const { in makeColorTypeAndColorSpace()
361 SkColorSpace* colorSpace = this->colorSpace(); in makeColorTypeAndColorSpace()
366 (SkColorSpace::Equals(colorSpace, targetColorSpace.get()) || this->isAlphaOnly())) { in makeColorTypeAndColorSpace()
379 sk_sp<SkImage> SkImage::reinterpretColorSpace(sk_sp<SkColorSpace> target) const { in reinterpretColorSpace()
[all …]
/external/skia/src/gpu/
DGrColorSpaceXform.h16 class SkColorSpace; variable
25 static sk_sp<GrColorSpaceXform> Make(SkColorSpace* src, SkAlphaType srcAT,
26 SkColorSpace* dst, SkAlphaType dstAT);
65 static std::unique_ptr<GrFragmentProcessor> Make(SkColorSpace* src, SkAlphaType srcAT,
66 SkColorSpace* dst, SkAlphaType dstAT);
73 SkColorSpace* src, SkAlphaType srcAT,
74 SkColorSpace* dst);
/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>>...18