/external/skqp/src/core/ |
D | SkColorSpace.cpp | 18 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/ |
D | SkColorSpace.cpp | 18 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/ |
D | ColorSpaceTest.cpp | 30 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/ |
D | ColorSpaceTest.cpp | 29 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/ |
D | SkColorSpace.h | 96 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 …]
|
D | SkImage.h | 228 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/ |
D | SkColorSpace.h | 106 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 …]
|
D | SkImage.h | 330 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 …]
|
D | SkImageInfo.h | 186 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/ |
D | ColorCanvasDrawBitmapBench.cpp | 16 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/ |
D | readpixels.cpp | 77 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 …]
|
D | makecolorspace.cpp | 37 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/ |
D | readpixels.cpp | 61 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/ |
D | GrColorSpaceXform.h | 15 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);
|
D | GrContextPriv.h | 52 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/ |
D | Image_makeColorSpace.cpp | 8 sk_sp<SkColorSpace> normalColorSpace = SkColorSpace::MakeRGB( 9 SkColorSpace::kSRGB_RenderTargetGamma, SkColorSpace::kSRGB_Gamut); 10 sk_sp<SkColorSpace> wackyColorSpace = normalColorSpace->makeColorSpin();
|
D | Image_colorSpace.cpp | 12 for (auto gamma : { SkColorSpace::kLinear_RenderTargetGamma, 13 SkColorSpace::kSRGB_RenderTargetGamma } ) { 15 sk_sp<SkColorSpace> colorSpace = SkColorSpace::MakeRGB(gamma, SkColorSpace::kSRGB_Gamut);
|
D | Image_refColorSpace.cpp | 12 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/ |
D | SkImage_GpuYUVA.h | 29 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;
|
D | SkImage.cpp | 82 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/ |
D | GrColorSpaceXform.h | 16 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/ |
D | SkImage_GpuYUVA.h | 29 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;
|
D | SkImage.cpp | 87 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/ |
D | SkToSRGBColorFilter.h | 15 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/ |
D | WritePixelsBench.cpp | 19 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::…
|