/external/skia/tests/ |
D | ColorSpaceTest.cpp | 22 static void test_space(skiatest::Reporter* r, SkColorSpace* space, in test_space() 62 SkColorSpace* colorSpace = codec->getInfo().colorSpace(); in test_path() 77 test_space(r, SkColorSpace::MakeSRGB().get(), in DEF_TEST() 106 sk_sp<SkColorSpace> namedColorSpace = SkColorSpace::MakeSRGB(); in DEF_TEST() 111 sk_sp<SkColorSpace> rgbColorSpace = in DEF_TEST() 112 SkColorSpace::MakeRGB(SkColorSpace::kSRGB_RenderTargetGamma, srgbToxyzD50); in DEF_TEST() 123 sk_sp<SkColorSpace> rgbColorSpace2 = SkColorSpace::MakeRGB(srgbFn, srgbToxyzD50); in DEF_TEST() 128 sk_sp<SkColorSpace> strangeColorSpace = in DEF_TEST() 129 SkColorSpace::MakeRGB(SkColorSpace::kSRGB_RenderTargetGamma, srgbToxyzD50); in DEF_TEST() 135 sk_sp<SkColorSpace> namedColorSpace = SkColorSpace::MakeSRGBLinear(); in DEF_TEST() [all …]
|
D | ImageIsOpaqueTest.cpp | 44 sk_sp<SkColorSpace> space0 = SkColorSpace::MakeICC(data->data(), data->size()); in DEF_TEST() 46 sk_sp<SkColorSpace> space1 = SkColorSpace::MakeICC(data->data(), data->size()); in DEF_TEST() 48 sk_sp<SkColorSpace> space2 = SkColorSpace::MakeICC(data->data(), data->size()); in DEF_TEST() 50 sk_sp<SkColorSpace> space3 = SkColorSpace::MakeICC(data->data(), data->size()); in DEF_TEST() 52 sk_sp<SkColorSpace> spaces[] = { in DEF_TEST() 54 SkColorSpace::MakeSRGB(), in DEF_TEST() 130 SkColorSpace::MakeSRGB()), in DEF_TEST()
|
/external/skia/gm/ |
D | gammaencodedpremul.cpp | 29 GammaEncodedPremulGM(sk_sp<SkColorSpace> dst, sk_sp<SkColorSpace> src, const char* desc) in GammaEncodedPremulGM() 109 sk_sp<SkColorSpace> fDstSpace; 110 sk_sp<SkColorSpace> fSrcSpace; 118 DEF_GM(return new GammaEncodedPremulGM(SkColorSpace::MakeSRGB(), 119 SkColorSpace::MakeRGB(SkColorSpace::kSRGB_RenderTargetGamma, SkColorSpace::kRec2020_Gamut), 121 DEF_GM(return new GammaEncodedPremulGM(SkColorSpace::MakeRGB(SkColorSpace::kSRGB_RenderTargetGamma, 122 SkColorSpace::kRec2020_Gamut), SkColorSpace::MakeSRGB(), "fromWideGamut");) 123 DEF_GM(return new GammaEncodedPremulGM(SkColorSpace::MakeSRGB(), 124 SkColorSpace::MakeRGB(SkColorSpace::kLinear_RenderTargetGamma, SkColorSpace::kSRGB_Gamut), 127 SkColorSpace::MakeRGB(SkColorSpace::kLinear_RenderTargetGamma, SkColorSpace::kSRGB_Gamut), [all …]
|
D | readpixels.cpp | 42 sk_sp<SkColorSpace> fix_for_colortype(SkColorSpace* colorSpace, SkColorType colorType) { in fix_for_colortype() 91 SkColorSpace::MakeSRGB()); in make_picture_image() 94 static sk_sp<SkColorSpace> make_srgb_transfer_fn(const SkColorSpacePrimaries& primaries) { in make_srgb_transfer_fn() 97 return SkColorSpace::MakeRGB(SkColorSpace::kSRGB_RenderTargetGamma, toXYZD50); in make_srgb_transfer_fn() 100 static sk_sp<SkColorSpace> make_wide_gamut() { in make_wide_gamut() 114 static sk_sp<SkColorSpace> make_small_gamut() { in make_small_gamut() 128 SkAlphaType dstAlphaType, sk_sp<SkColorSpace> dstColorSpace, in draw_image() 154 sk_sp<SkColorSpace> srgb = fix_for_colortype( in draw_image() 155 SkColorSpace::MakeSRGB().get(), dstColorType); in draw_image() 188 const sk_sp<SkColorSpace> colorSpaces[] = { in onDraw() [all …]
|
D | colorspacexform.cpp | 40 sk_sp<SkColorSpace> srcSpace = SkColorSpace::MakeSRGB(); in onOnceBeforeDraw() 41 sk_sp<SkColorSpace> dstSpace = in onOnceBeforeDraw() 42 SkColorSpace::MakeRGB(SkColorSpace::kLinear_RenderTargetGamma, wideGamut); in onOnceBeforeDraw() 71 auto space = SkColorSpace::MakeSRGBLinear(); in onDraw()
|
D | encode-srgb.cpp | 28 sk_sp<SkColorSpace> fix_for_colortype(sk_sp<SkColorSpace> colorSpace, SkColorType colorType) { in fix_for_colortype() 31 return SkColorSpace::MakeSRGBLinear(); in fix_for_colortype() 40 static void make_index8(SkBitmap* bitmap, SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) { in make_index8() 83 sk_sp<SkColorSpace> colorSpace) { in make() 178 const sk_sp<SkColorSpace> colorSpaces[] = { in onDraw() 179 nullptr, SkColorSpace::MakeSRGB(), in onDraw() 186 for (sk_sp<SkColorSpace> colorSpace : colorSpaces) { in onDraw()
|
/external/skia/include/core/ |
D | SkColorSpace.h | 59 class SK_API SkColorSpace : public SkRefCnt { 65 static sk_sp<SkColorSpace> MakeSRGB(); 71 static sk_sp<SkColorSpace> MakeSRGBLinear(); 96 static sk_sp<SkColorSpace> MakeRGB(RenderTargetGamma gamma, Gamut gamut); 97 static sk_sp<SkColorSpace> MakeRGB(RenderTargetGamma gamma, const SkMatrix44& toXYZD50); 98 static sk_sp<SkColorSpace> MakeRGB(const SkColorSpaceTransferFn& coeffs, Gamut gamut); 99 static sk_sp<SkColorSpace> MakeRGB(const SkColorSpaceTransferFn& coeffs, 105 static sk_sp<SkColorSpace> MakeICC(const void*, size_t); 159 static sk_sp<SkColorSpace> Deserialize(const void* data, size_t length); 165 static bool Equals(const SkColorSpace* src, const SkColorSpace* dst); [all …]
|
D | SkImage.h | 126 sk_sp<SkColorSpace>, TextureReleaseProc, ReleaseContext); 136 sk_sp<SkColorSpace> = nullptr); 147 sk_sp<SkColorSpace> = nullptr); 157 sk_sp<SkColorSpace> = nullptr); 170 sk_sp<SkColorSpace>); 188 SkColorSpace* colorSpace() const; 189 sk_sp<SkColorSpace> refColorSpace() const; 333 sk_sp<SkImage> makeTextureImage(GrContext*, SkColorSpace* dstColorSpace) const; 407 SkColorSpace* dstColorSpace = nullptr) const;
|
D | SkImageInfo.h | 192 sk_sp<SkColorSpace> cs = nullptr) { 200 sk_sp<SkColorSpace> cs = nullptr) { 212 static SkImageInfo MakeN32Premul(int width, int height, sk_sp<SkColorSpace> cs = nullptr) { 236 SkColorSpace* colorSpace() const { return fColorSpace.get(); } in colorSpace() 237 sk_sp<SkColorSpace> refColorSpace() const { return fColorSpace; } in refColorSpace() 268 SkImageInfo makeColorSpace(sk_sp<SkColorSpace> cs) const { in makeColorSpace() 297 SkColorSpace::Equals(fColorSpace.get(), other.fColorSpace.get()); 337 sk_sp<SkColorSpace> fColorSpace; 343 SkImageInfo(int width, int height, SkColorType ct, SkAlphaType at, sk_sp<SkColorSpace> cs) in SkImageInfo()
|
/external/skia/src/core/ |
D | SkColorSpace.cpp | 115 sk_sp<SkColorSpace> SkColorSpace_Base::MakeRGB(SkGammaNamed gammaNamed, const SkMatrix44& toXYZD50) in MakeRGB() 140 return sk_sp<SkColorSpace>(new SkColorSpace_XYZ(gammaNamed, toXYZD50)); in MakeRGB() 143 sk_sp<SkColorSpace> SkColorSpace::MakeRGB(RenderTargetGamma gamma, const SkMatrix44& toXYZD50) { in MakeRGB() 154 sk_sp<SkColorSpace> SkColorSpace::MakeRGB(const SkColorSpaceTransferFn& coeffs, in MakeRGB() 161 return SkColorSpace::MakeRGB(kSRGB_RenderTargetGamma, toXYZD50); in MakeRGB() 182 return sk_sp<SkColorSpace>(new SkColorSpace_XYZ(kNonStandard_SkGammaNamed, in MakeRGB() 186 sk_sp<SkColorSpace> SkColorSpace::MakeRGB(RenderTargetGamma gamma, Gamut gamut) { in MakeRGB() 189 return SkColorSpace::MakeRGB(gamma, toXYZD50); in MakeRGB() 192 sk_sp<SkColorSpace> SkColorSpace::MakeRGB(const SkColorSpaceTransferFn& coeffs, Gamut gamut) { in MakeRGB() 195 return SkColorSpace::MakeRGB(coeffs, toXYZD50); in MakeRGB() [all …]
|
D | SkColorSpace_Base.h | 139 class SkColorSpace_Base : public SkColorSpace { 174 virtual sk_sp<SkColorSpace> makeLinearGamma() = 0; 181 virtual sk_sp<SkColorSpace> makeSRGBGamma() = 0; 195 static sk_sp<SkColorSpace> MakeICC(const void* input, size_t len, ICCTypeFlag type); 197 static sk_sp<SkColorSpace> MakeRGB(SkGammaNamed gammaNamed, const SkMatrix44& toXYZD50); 206 static sk_sp<SkColorSpace> MakeNamed(Named); 214 friend class SkColorSpace; variable 218 typedef SkColorSpace INHERITED; 221 static inline SkColorSpace_Base* as_CSB(SkColorSpace* colorSpace) { in as_CSB() 225 static inline const SkColorSpace_Base* as_CSB(const SkColorSpace* colorSpace) { in as_CSB() [all …]
|
D | SkPM4fPriv.h | 104 SkColorSpace* src, SkColorSpace* dst) { in append_gamut_transform() 134 SkColorSpace* src, SkColorSpace* dst) { in append_gamut_transform() 138 static inline SkColor4f to_colorspace(const SkColor4f& c, SkColorSpace* src, SkColorSpace* dst) { in to_colorspace() 155 static inline SkColor4f SkColor4f_from_SkColor(SkColor color, SkColorSpace* dst) { in SkColor4f_from_SkColor() 160 SkColorSpace::MakeSRGB().get(), dst); in SkColor4f_from_SkColor() 168 static inline SkPM4f SkPM4f_from_SkColor(SkColor color, SkColorSpace* dst) { in SkPM4f_from_SkColor()
|
D | SkImageCacherator.h | 52 bool lockAsBitmap(GrContext*, SkBitmap*, const SkImage* client, SkColorSpace* dstColorSpace, 71 SkColorSpace* dstColorSpace, 72 sk_sp<SkColorSpace>* texColorSpace, 130 CachedFormat chooseCacheFormat(SkColorSpace* dstColorSpace, const GrCaps* = nullptr); 144 SkColorSpace* dstColorSpace); 148 sk_sp<SkColorSpace> getColorSpace(GrContext*, SkColorSpace* dstColorSpace);
|
D | SkSpecialImage.cpp | 51 virtual SkColorSpace* onGetColorSpace() const = 0; 145 SkColorSpace* SkSpecialImage::getColorSpace() const { in getColorSpace() 190 SkColorSpace* dstColorSpace, in MakeFromImage() 245 SkColorSpace* onGetColorSpace() const override { in onGetColorSpace() 267 SkColorSpace* colorSpace = outProps.colorSpace(); in onMakeSurface() 269 SkColorSpace* colorSpace = nullptr; in onMakeSurface() 307 SkColorSpace* colorSpace = outProps.colorSpace(); in onMakeTightSurface() 309 SkColorSpace* colorSpace = nullptr; in onMakeTightSurface() 350 SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) { in wrap_proxy_in_image() 359 sk_sp<SkColorSpace> colorSpace, const SkSurfaceProps* props) in SkSpecialImage_Gpu() [all …]
|
/external/skia/bench/ |
D | ColorCanvasDrawBitmapBench.cpp | 15 ColorCanvasDrawBitmap(sk_sp<SkColorSpace> src, sk_sp<SkColorSpace> dst, const char* name) in ColorCanvasDrawBitmap() 45 sk_sp<SkColorSpace> fDst; 52 DEF_BENCH(return new ColorCanvasDrawBitmap(nullptr, SkColorSpace::MakeSRGB(), "null_to_sRGB");) 53 DEF_BENCH(return new ColorCanvasDrawBitmap(SkColorSpace::MakeSRGB(), SkColorSpace::MakeSRGB(), 56 SkColorSpace::MakeRGB(SkColorSpace::kSRGB_RenderTargetGamma, SkColorSpace::kAdobeRGB_Gamut), 57 SkColorSpace::MakeSRGB(), "AdobeRGB_to_sRGB");)
|
/external/skia/src/gpu/ |
D | GrTextureMaker.h | 27 SkColorSpace* dstColorSpace, 28 sk_sp<SkColorSpace>* texColorSpace, 37 SkColorSpace* dstColorSpace) override; 49 SkColorSpace* dstColorSpace) = 0; 55 virtual sk_sp<SkColorSpace> getColorSpace(SkColorSpace* dstColorSpace) = 0; 69 SkColorSpace* dstColorSpace);
|
D | GrContextPriv.h | 27 sk_sp<SkColorSpace> colorSpace, 34 sk_sp<SkColorSpace>); 43 sk_sp<SkColorSpace> colorSpace); 47 sk_sp<SkColorSpace> colorSpace, 52 sk_sp<SkColorSpace> colorSpace, 57 sk_sp<SkColorSpace> colorSpace,
|
D | GrBitmapTextureMaker.h | 22 SkColorSpace* dstColorSpace) override; 25 SkColorSpace* dstColorSpace) override; 30 sk_sp<SkColorSpace> getColorSpace(SkColorSpace* dstColorSpace) override;
|
D | GrImageTextureMaker.h | 28 SkColorSpace* dstColorSpace) override; 31 SkColorSpace* dstColorSpace) override; 35 sk_sp<SkColorSpace> getColorSpace(SkColorSpace* dstColorSpace) override;
|
/external/skia/src/image/ |
D | SkImage_Gpu.h | 26 sk_sp<SkColorSpace>, SkBudgeted); 32 bool getROPixels(SkBitmap*, SkColorSpace* dstColorSpace, CachingHint) const override; 44 sk_sp<GrTextureProxy> asTextureProxyRef(GrContext*, const GrSamplerParams&, SkColorSpace*, 45 sk_sp<SkColorSpace>*, 63 sk_sp<SkColorSpace> refColorSpace() { return fColorSpace; } in refColorSpace() 65 sk_sp<SkImage> onMakeColorSpace(sk_sp<SkColorSpace>) const override; 72 sk_sp<SkColorSpace> fColorSpace;
|
D | SkImage_Generator.cpp | 33 SkColorSpace*, sk_sp<SkColorSpace>*, 39 bool getROPixels(SkBitmap*, SkColorSpace* dstColorSpace, CachingHint) const override; 41 sk_sp<SkImage> onMakeColorSpace(sk_sp<SkColorSpace>) const override; 53 SkColorSpace* dstColorSpace = dstInfo.colorSpace(); in onReadPixels() 80 bool SkImage_Generator::getROPixels(SkBitmap* bitmap, SkColorSpace* dstColorSpace, in getROPixels() 88 SkColorSpace* dstColorSpace, in asTextureProxyRef() 89 sk_sp<SkColorSpace>* texColorSpace, in asTextureProxyRef() 105 sk_sp<SkImage> SkImage_Generator::onMakeColorSpace(sk_sp<SkColorSpace> target) const { in onMakeColorSpace()
|
D | SkImage.cpp | 87 SkColorSpace* SkImage::colorSpace() const { in colorSpace() 91 sk_sp<SkColorSpace> SkImage::refColorSpace() const { in refColorSpace() 102 SkColorSpace* legacyColorSpace = nullptr; in encode() 119 SkColorSpace* legacyColorSpace = nullptr; in encode() 256 BitDepth bitDepth, sk_sp<SkColorSpace> colorSpace) { in MakeFromPicture() 268 SkColorSpace* colorSpace = as_IB(this)->onImageInfo().colorSpace(); in makeWithFilter() 305 sk_sp<SkImage> SkImage_Base::makeColorSpace(sk_sp<SkColorSpace> target) const { in makeColorSpace() 315 SkColorSpace::Equals(this->colorSpace(), target.get()) || in makeColorSpace() 333 sk_sp<SkColorSpace>, TextureReleaseProc, ReleaseContext) { in MakeFromTexture() argument 340 SkColorSpace* dstColorSpace) const { in getDeferredTextureImageData() [all …]
|
/external/skia/src/codec/ |
D | SkAndroidCodec.cpp | 50 static bool is_wide_gamut(const SkColorSpace* colorSpace) { in is_wide_gamut() 172 sk_sp<SkColorSpace> SkAndroidCodec::computeOutputColorSpace(SkColorType outputColorType, in computeOutputColorSpace() 173 sk_sp<SkColorSpace> prefColorSpace) { in computeOutputColorSpace() 184 SkColorSpace* encodedSpace = fCodec->getInfo().colorSpace(); in computeOutputColorSpace() 192 return SkColorSpace::MakeRGB(SkColorSpace::kSRGB_RenderTargetGamma, in computeOutputColorSpace() 193 SkColorSpace::kDCIP3_D65_Gamut); in computeOutputColorSpace() 196 return SkColorSpace::MakeSRGB(); in computeOutputColorSpace() 200 return SkColorSpace::MakeSRGBLinear(); in computeOutputColorSpace() 203 return SkColorSpace::MakeSRGB(); in computeOutputColorSpace()
|
/external/skia/tools/flags/ |
D | SkCommonFlagsConfig.cpp | 184 sk_sp<SkColorSpace> colorSpace) in SkCommandLineConfigGpu() 295 sk_sp<SkColorSpace>* outColorSpace) { in parse_option_gpu_color() 309 SkColorSpace::Gamut gamut = SkColorSpace::kSRGB_Gamut; in parse_option_gpu_color() 310 SkColorSpace::RenderTargetGamma gamma = linearGamma ? SkColorSpace::kLinear_RenderTargetGamma in parse_option_gpu_color() 311 : SkColorSpace::kSRGB_RenderTargetGamma; in parse_option_gpu_color() 312 *outColorSpace = SkColorSpace::MakeRGB(gamma, gamut); in parse_option_gpu_color() 326 *outColorSpace = SkColorSpace::MakeRGB(gamma, wideGamutRGBMatrix); in parse_option_gpu_color() 337 *outColorSpace = SkColorSpace::MakeRGB(gamma, narrowGamutRGBMatrix); in parse_option_gpu_color() 372 sk_sp<SkColorSpace> colorSpace = nullptr; in parse_command_line_config_gpu()
|
/external/skia/include/effects/ |
D | SkGradientShader.h | 64 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, 68 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in MakeLinear() 110 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, 114 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in MakeRadial() 147 sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], 153 sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], in MakeTwoPointConical() 192 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, 196 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in MakeSweep()
|