Home
last modified time | relevance | path

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

12

/frameworks/native/libs/renderengine/skia/
DColorSpaces.cpp26 sk_sp<SkColorSpace> toSkColorSpace(ui::Dataspace dataspace) { in toSkColorSpace()
56 return SkColorSpace::MakeRGB(SkNamedTransferFn::kLinear, gamut); in toSkColorSpace()
58 return SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, gamut); in toSkColorSpace()
60 return SkColorSpace::MakeRGB({2.2f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}, gamut); in toSkColorSpace()
62 return SkColorSpace::MakeRGB({2.6f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}, gamut); in toSkColorSpace()
64 return SkColorSpace::MakeRGB({2.8f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}, gamut); in toSkColorSpace()
66 return SkColorSpace::MakeRGB({-2.f, -1.55522297832f, 1.86045365631f, 32 / 2523.0f, in toSkColorSpace()
70 return SkColorSpace::MakeRGB(SkNamedTransferFn::kRec2020, gamut); in toSkColorSpace()
76 return SkColorSpace::MakeRGB(hlgFn, gamut); in toSkColorSpace()
78 return SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, gamut); in toSkColorSpace()
[all …]
DColorSpaces.h34 sk_sp<SkColorSpace> toSkColorSpace(ui::Dataspace dataspace);
/frameworks/base/libs/hwui/utils/
DColor.cpp32 sk_sp<SkColorSpace> colorSpace) { in createImageInfo()
68 sk_sp<SkColorSpace> colorSpace) { in ANativeWindowToImageInfo()
73 sk_sp<SkColorSpace> colorSpace) { in BufferDescriptionToImageInfo()
159 android_dataspace ColorSpaceToADataSpace(SkColorSpace* colorSpace, SkColorType colorType) { in ColorSpaceToADataSpace()
222 sk_sp<SkColorSpace> DataSpaceToColorSpace(android_dataspace dataspace) { in DataSpaceToColorSpace()
224 return SkColorSpace::MakeSRGB(); in DataSpaceToColorSpace()
231 return SkColorSpace::MakeRGB(k2Dot6, kDCIP3); in DataSpaceToColorSpace()
266 return SkColorSpace::MakeRGB(hlgFn.value(), gamut); in DataSpaceToColorSpace()
272 return SkColorSpace::MakeRGB(SkNamedTransferFn::kLinear, gamut); in DataSpaceToColorSpace()
274 return SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, gamut); in DataSpaceToColorSpace()
[all …]
DColor.h96 sk_sp<SkColorSpace> colorSpace);
99 sk_sp<SkColorSpace> colorSpace);
104 ANDROID_API sk_sp<SkColorSpace> DataSpaceToColorSpace(android_dataspace dataspace);
120 ANDROID_API android_dataspace ColorSpaceToADataSpace(SkColorSpace*, SkColorType);
/frameworks/base/libs/hwui/renderthread/
DHardwareBufferRenderParams.h40 const SkMatrix& transform, const sk_sp<SkColorSpace>& colorSpace, in HardwareBufferRenderParams()
48 sk_sp<SkColorSpace> getColorSpace() const { return mColorSpace; } in getColorSpace()
63 sk_sp<SkColorSpace> mColorSpace = SkColorSpace::MakeSRGB();
DVulkanSurface.h40 sk_sp<SkColorSpace> colorSpace, GrDirectContext* grContext,
49 void setColorSpace(sk_sp<SkColorSpace> colorSpace);
99 sk_sp<SkColorSpace> colorspace;
114 SkColorType colorType, sk_sp<SkColorSpace> colorSpace,
/frameworks/base/libs/hwui/hwui/
DImageDecoder.h51 sk_sp<SkColorSpace> getDefaultColorSpace() const;
52 void setOutColorSpace(sk_sp<SkColorSpace> cs);
112 sk_sp<SkColorSpace> mOutColorSpace;
126 sk_sp<SkColorSpace> getOutputColorSpace() const;
DBlurDrawLooper.h23 class SkColorSpace; variable
29 static sk_sp<BlurDrawLooper> Make(SkColor4f, SkColorSpace*, float blurSigma, SkPoint offset);
DBitmap.h86 sk_sp<SkColorSpace> colorSpace,
91 sk_sp<SkColorSpace> colorSpace,
103 void setColorSpace(sk_sp<SkColorSpace> colorSpace);
DImageDecoder.cpp48 sk_sp<SkColorSpace> ImageDecoder::getDefaultColorSpace() const { in getDefaultColorSpace()
57 return SkColorSpace::Make(*encodedProfile); in getDefaultColorSpace()
61 return SkColorSpace::MakeSRGB(); in getDefaultColorSpace()
199 void ImageDecoder::setOutColorSpace(sk_sp<SkColorSpace> colorSpace) { in setOutColorSpace()
203 sk_sp<SkColorSpace> ImageDecoder::getOutputColorSpace() const { in getOutputColorSpace()
DBlurDrawLooper.cpp37 sk_sp<BlurDrawLooper> BlurDrawLooper::Make(SkColor4f color, SkColorSpace* cs, float blurSigma, in Make()
/frameworks/base/libs/hwui/tests/unit/
DSkiaBehaviorTests.cpp87 sk_sp<SkColorSpace> sRGB1 = SkColorSpace::MakeSRGB(); in TEST()
88 sk_sp<SkColorSpace> sRGB2 = SkColorSpace::MakeSRGB(); in TEST()
DSkiaCanvasTests.cpp57 sk_sp<SkColorSpace> adobe = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, in TEST()
66 SkImageInfo info = adobeInfo.makeColorSpace(SkColorSpace::MakeSRGB()); in TEST()
/frameworks/base/libs/hwui/
DDeviceInfo.cpp91 SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kDisplayP3); in setWideColorDataspace()
94 get()->mWideColorSpace = SkColorSpace::MakeSRGB(); in setWideColorDataspace()
102 get()->mWideColorSpace = SkColorSpace::MakeSRGB(); in setWideColorDataspace()
DDeviceInfo.h87 sk_sp<SkColorSpace> getWideColorSpace() const { return mWideColorSpace; } in getWideColorSpace()
112 sk_sp<SkColorSpace> mWideColorSpace = SkColorSpace::MakeSRGB();
Dlibhwui.map.txt56 SkColorSpace::toXYZD50*;
57 SkColorSpace::transferFn*;
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_ColorSpace.cpp115 sk_sp<SkColorSpace> GraphicsJNI::getNativeColorSpace(jlong colorSpaceHandle) { in getNativeColorSpace()
117 return sk_ref_sp(reinterpret_cast<SkColorSpace*>(colorSpaceHandle)); in getNativeColorSpace()
120 static void unref_colorSpace(SkColorSpace* cs) { in unref_colorSpace()
140 return reinterpret_cast<jlong>(SkColorSpace::MakeRGB(p, xyzMatrix).release()); in ColorSpace_creator()
DBitmap.cpp94 void setColorSpace(sk_sp<SkColorSpace> colorSpace) { in setColorSpace()
265 auto sRGB = SkColorSpace::MakeSRGB(); in SetPixels()
303 sk_sp<SkColorSpace> colorSpace; in Bitmap_creator()
348 dstInfo = dstInfo.makeColorSpace(SkColorSpace::MakeSRGB()); in bitmapCopyTo()
510 const sk_sp<SkColorSpace>& colorSpace) { in bitmapErase()
522 bitmapErase(skBitmap, SkColor4f::FromColor(color), SkColorSpace::MakeSRGB()); in Bitmap_erase()
532 sk_sp<SkColorSpace> cs = GraphicsJNI::getNativeColorSpace(colorSpaceHandle); in Bitmap_eraseLong()
729 sk_sp<SkColorSpace> colorSpace; in Bitmap_createFromParcel()
739 colorSpace = SkColorSpace::Deserialize(colorSpaceData->data(), colorSpaceData->size()); in Bitmap_createFromParcel()
841 SkColorSpace* colorSpace = bitmap.colorSpace(); in Bitmap_writeToParcel()
[all …]
DBitmapRegionDecoder.cpp78 sk_sp<SkColorSpace> computeOutputColorSpace(SkColorType outputColorType, in computeOutputColorSpace()
79 sk_sp<SkColorSpace> prefColorSpace = nullptr) { in computeOutputColorSpace()
85 sk_sp<SkColorSpace> prefColorSpace) { in decodeRegion()
93 sk_sp<SkColorSpace> decodeColorSpace = in decodeGainmapRegion()
233 sk_sp<SkColorSpace> colorSpace = GraphicsJNI::getNativeColorSpace(colorSpaceHandle); in nativeDecodeRegion()
289 sk_sp<SkColorSpace> decodeColorSpace = brd->computeOutputColorSpace( in nativeDecodeRegion()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.h49 sk_sp<SkColorSpace> getSurfaceColorSpace() override { return mSurfaceColorSpace; } in getSurfaceColorSpace()
73 sk_sp<SkColorSpace> mBufferColorSpace = nullptr;
77 sk_sp<SkColorSpace> mSurfaceColorSpace;
DSkiaPipeline.cpp495 mSurfaceColorSpace = SkColorSpace::MakeSRGB(); in setSurfaceColorProperties()
504 mSurfaceColorSpace = SkColorSpace::MakeRGB( in setSurfaceColorProperties()
508 mSurfaceColorSpace = SkColorSpace::MakeSRGB(); in setSurfaceColorProperties()
511 mSurfaceColorSpace = SkColorSpace::MakeRGB( in setSurfaceColorProperties()
517 mSurfaceColorSpace = SkColorSpace::MakeRGB( in setSurfaceColorProperties()
533 mSurfaceColorSpace = SkColorSpace::MakeSRGB(); in setTargetSdrHdrRatio()
535 mSurfaceColorSpace = SkColorSpace::MakeRGB( in setTargetSdrHdrRatio()
/frameworks/base/libs/hwui/effects/
DGainmapRenderer.cpp43 float getTargetHdrSdrRatio(const SkColorSpace* destColorspace) { in getTargetHdrSdrRatio()
182 sk_sp<SkColorSpace> baseColorSpace = in setupChildren()
183 baseImage->colorSpace() ? baseImage->refColorSpace() : SkColorSpace::MakeSRGB(); in setupChildren()
186 sk_sp<SkColorSpace> gainmapMathColorSpace = baseColorSpace->makeLinearGamma(); in setupChildren()
209 gainmapMathColorSpace, SkColorSpace::MakeSRGBLinear()); in setupChildren()
DGainmapRenderer.h28 float getTargetHdrSdrRatio(const SkColorSpace* destColorspace);
/frameworks/base/libs/hwui/private/hwui/
DDrawGlInfo.h47 const SkColorSpace* color_space_ptr;
DDrawVkInfo.h64 const SkColorSpace* color_space_ptr;

12