/external/skia/src/core/ |
D | SkImageInfoPriv.h | 37 (!info.colorSpace() || !info.colorSpace()->gammaIsLinear())) { in SkImageInfoIsValid() 41 if (info.colorSpace() && in SkImageInfoIsValid() 42 (!info.colorSpace()->gammaCloseToSRGB() && !info.colorSpace()->gammaIsLinear())) { in SkImageInfoIsValid() 83 if (dst.colorSpace() && !SkColorSpace::Equals(dst.colorSpace(), src.colorSpace())) { in SkImageInfoValidConversion() 93 if (dst.colorSpace() && !SkColorSpace::Equals(dst.colorSpace(), src.colorSpace())) { in SkImageInfoValidConversion() 106 if (dst.colorSpace() && !src.colorSpace()) { in SkImageInfoValidConversion()
|
D | SkSpecialImage.cpp | 246 return fBitmap.colorSpace(); in onGetColorSpace() 267 SkColorSpace* colorSpace = outProps.colorSpace(); in onMakeSurface() local 269 SkColorSpace* colorSpace = nullptr; in onMakeSurface() 271 SkColorType colorType = colorSpace && colorSpace->gammaIsLinear() in onMakeSurface() 274 sk_ref_sp(colorSpace)); in onMakeSurface() 307 SkColorSpace* colorSpace = outProps.colorSpace(); in onMakeTightSurface() local 309 SkColorSpace* colorSpace = nullptr; in onMakeTightSurface() 311 SkColorType colorType = colorSpace && colorSpace->gammaIsLinear() in onMakeTightSurface() 314 sk_ref_sp(colorSpace)); in onMakeTightSurface() 350 SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) { in wrap_proxy_in_image() argument [all …]
|
D | SkPictureImageGenerator.cpp | 20 sk_sp<SkColorSpace> colorSpace) { in Make() argument 25 if (SkImage::BitDepth::kF16 == bitDepth && (!colorSpace || !colorSpace->gammaIsLinear())) { in Make() 29 if (colorSpace && (!colorSpace->gammaCloseToSRGB() && !colorSpace->gammaIsLinear())) { in Make() 39 kPremul_SkAlphaType, std::move(colorSpace)); in Make() 83 SkImage::BitDepth bitDepth, sk_sp<SkColorSpace> colorSpace) { in MakeFromPicture() argument 86 if (!colorSpace) { in MakeFromPicture() 91 std::move(colorSpace)); in MakeFromPicture()
|
D | SkColorSpace_Base.h | 221 static inline SkColorSpace_Base* as_CSB(SkColorSpace* colorSpace) { in as_CSB() argument 222 return static_cast<SkColorSpace_Base*>(colorSpace); in as_CSB() 225 static inline const SkColorSpace_Base* as_CSB(const SkColorSpace* colorSpace) { in as_CSB() argument 226 return static_cast<const SkColorSpace_Base*>(colorSpace); in as_CSB() 229 static inline SkColorSpace_Base* as_CSB(const sk_sp<SkColorSpace>& colorSpace) { in as_CSB() argument 230 return static_cast<SkColorSpace_Base*>(colorSpace.get()); in as_CSB()
|
D | SkConvertPixels.cpp | 38 return !dstInfo.colorSpace() || in can_memcpy() 39 SkColorSpace::Equals(dstInfo.colorSpace(), srcInfo.colorSpace()); in can_memcpy() 150 SkColorSpaceXform_Base::New(srcInfo.colorSpace(), dstInfo.colorSpace(), behavior); in apply_color_xform() 317 SkAssertResult(append_gamut_transform(&pipeline, matrix, srcInfo.colorSpace(), in convert_with_pipeline() 318 dstInfo.colorSpace())); in convert_with_pipeline() 390 const bool isColorAware = dstInfo.colorSpace(); in SkConvertPixels() 391 SkASSERT(srcInfo.colorSpace() || !isColorAware); in SkConvertPixels()
|
/external/skia/src/image/ |
D | SkSurface_Gpu.cpp | 174 return !info.colorSpace() || info.colorSpace()->gammaIsLinear(); in Valid() 177 return !info.colorSpace() || info.colorSpace()->gammaCloseToSRGB(); in Valid() 179 return !info.colorSpace(); in Valid() 183 bool SkSurface_Gpu::Valid(GrContext* context, GrPixelConfig config, SkColorSpace* colorSpace) { in Valid() argument 186 return !colorSpace || colorSpace->gammaIsLinear(); in Valid() 189 return context->caps()->srgbSupport() && colorSpace && colorSpace->gammaCloseToSRGB(); in Valid() 194 return !colorSpace || in Valid() 195 (colorSpace->gammaCloseToSRGB() && !context->caps()->srgbSupport()); in Valid() 197 return !colorSpace; in Valid() 218 sk_sp<SkColorSpace> colorSpace, in MakeFromBackendTexture() argument [all …]
|
D | SkImage.cpp | 69 if (as_IB(this)->getROPixels(&bm, dst.info().colorSpace(), chint)) { in scalePixels() 87 SkColorSpace* SkImage::colorSpace() const { in colorSpace() function in SkImage 88 return as_IB(this)->onImageInfo().colorSpace(); in colorSpace() 206 const size_t rowBytes[3], SkYUVColorSpace colorSpace) const { in onReadYUV8Planes() 207 return SkRGBAToYUV(this, sizes, planes, rowBytes, colorSpace); in onReadYUV8Planes() 217 const size_t rowBytes[3], SkYUVColorSpace colorSpace) const { in readYUV8Planes() 218 return as_IB(this)->onReadYUV8Planes(sizes, planes, rowBytes, colorSpace); in readYUV8Planes() 256 BitDepth bitDepth, sk_sp<SkColorSpace> colorSpace) { in MakeFromPicture() argument 259 std::move(colorSpace))); in MakeFromPicture() 268 SkColorSpace* colorSpace = as_IB(this)->onImageInfo().colorSpace(); in makeWithFilter() local [all …]
|
D | SkImage_Gpu.cpp | 41 sk_sp<SkColorSpace> colorSpace, SkBudgeted budgeted) in SkImage_Gpu() argument 47 , fColorSpace(std::move(colorSpace)) in SkImage_Gpu() 65 static SkImageInfo make_info(int w, int h, SkAlphaType at, sk_sp<SkColorSpace> colorSpace) { in make_info() argument 66 return SkImageInfo::MakeN32(w, h, at, std::move(colorSpace)); in make_info() 171 const size_t rowBytes[3], SkYUVColorSpace colorSpace) const { in onReadYUV8Planes() 172 if (GrTextureToYUVPlanes(fContext, fProxy, sizes, planes, rowBytes, colorSpace)) { in onReadYUV8Planes() 176 return INHERITED::onReadYUV8Planes(sizes, planes, rowBytes, colorSpace); in onReadYUV8Planes() 249 SkAlphaType at, sk_sp<SkColorSpace> colorSpace, in new_wrapped_texture_common() argument 269 at, std::move(proxy), std::move(colorSpace), budgeted); in new_wrapped_texture_common() 285 static sk_sp<SkImage> make_from_yuv_textures_copy(GrContext* ctx, SkYUVColorSpace colorSpace, in make_from_yuv_textures_copy() argument [all …]
|
D | SkSurface_Raster.cpp | 52 if (info.colorSpace()) { in Valid() 58 if (info.colorSpace()) { in Valid() 64 if (info.colorSpace() && !info.colorSpace()->gammaCloseToSRGB()) { in Valid() 70 if (info.colorSpace() && !info.colorSpace()->gammaIsLinear()) { in Valid()
|
/external/skia/gm/ |
D | encode-srgb.cpp | 28 sk_sp<SkColorSpace> fix_for_colortype(sk_sp<SkColorSpace> colorSpace, SkColorType colorType) { in fix_for_colortype() argument 30 if (!colorSpace) { in fix_for_colortype() 34 return as_CSB(colorSpace)->makeLinearGamma(); in fix_for_colortype() 37 return colorSpace; in fix_for_colortype() 40 static void make_index8(SkBitmap* bitmap, SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) { in make_index8() argument 45 auto toPMColor = [alphaType, colorSpace](SkColor color) { in make_index8() 52 if (colorSpace) { in make_index8() 72 alphaType, colorSpace); in make_index8() 83 sk_sp<SkColorSpace> colorSpace) { in make() argument 87 make_index8(bitmap, alphaType, colorSpace); in make() [all …]
|
D | readpixels.cpp | 42 sk_sp<SkColorSpace> fix_for_colortype(SkColorSpace* colorSpace, SkColorType colorType) { in fix_for_colortype() argument 44 return as_CSB(colorSpace)->makeLinearGamma(); in fix_for_colortype() 47 return sk_ref_sp(colorSpace); in fix_for_colortype() 61 .makeColorSpace(fix_for_colortype(codec->getInfo().colorSpace(), colorType)); in make_raster_image() 174 if (!canvas->imageInfo().colorSpace()) { in onDraw() 199 image = image->makeTextureImage(context, canvas->imageInfo().colorSpace()); in onDraw() 235 if (!canvas->imageInfo().colorSpace()) { in onDraw() 298 if (!canvas->imageInfo().colorSpace()) { in onDraw()
|
D | deferredtextureimage.cpp | 36 *proxy, params, 1, nullptr, canvas->imageInfo().colorSpace()); in DrawDeferredTextureImageData() 45 *proxy, params, 1, memory.data(), canvas->imageInfo().colorSpace()); in DrawDeferredTextureImageData() 61 *proxy, params, 1, nullptr, canvas->imageInfo().colorSpace()); in DrawDeferredTextureImageData() 69 *proxy, params, 1, memory.data(), canvas->imageInfo().colorSpace()); in DrawDeferredTextureImageData() 90 *proxy, params, 1, nullptr, canvas->imageInfo().colorSpace()); in DrawDeferredTextureImageMipMapTree() 99 *proxy, params, 1, memory.data(), canvas->imageInfo().colorSpace()); in DrawDeferredTextureImageMipMapTree()
|
/external/opencv/otherlibs/highgui/ |
D | grfmt_imageio.cpp | 115 CGColorSpaceRef colorSpace = CGImageGetColorSpace( imageRef ); in ReadHeader() local 116 if( !colorSpace ) in ReadHeader() 119 m_iscolor = ( CGColorSpaceGetNumberOfComponents( colorSpace ) > 1 ); in ReadHeader() 137 CGColorSpaceRef colorSpace = NULL; in ReadData() local 145 colorSpace = CGColorSpaceCreateDeviceGray(); in ReadData() 151 colorSpace = CGColorSpaceCreateDeviceRGB(); in ReadData() 155 if( !colorSpace ) in ReadData() 161 CGColorSpaceRelease( colorSpace ); in ReadData() 170 colorSpace, /* color space */ in ReadData() 173 CGColorSpaceRelease( colorSpace ); in ReadData() [all …]
|
/external/skia/src/gpu/effects/ |
D | GrYUVEffect.cpp | 69 SkYUVColorSpace colorSpace, bool nv12) { in Make() argument 91 yuvMatrix, uvFilterMode, colorSpace, nv12)); in Make() 159 GrSamplerParams::FilterMode uvFilterMode, SkYUVColorSpace colorSpace, bool nv12) in YUVtoRGBEffect() argument 167 , fColorSpace(colorSpace) in YUVtoRGBEffect() 223 RGBToYUVEffect(sk_sp<GrFragmentProcessor> rgbFP, SkYUVColorSpace colorSpace, in RGBToYUVEffect() argument 227 , fColorSpace(colorSpace) in RGBToYUVEffect() 370 SkYUVColorSpace colorSpace, bool nv12) { in MakeYUVToRGB() argument 374 sizes, colorSpace, nv12); in MakeYUVToRGB() 378 GrYUVEffect::MakeRGBToYUV(sk_sp<GrFragmentProcessor> rgbFP, SkYUVColorSpace colorSpace) { in MakeRGBToYUV() argument 381 new RGBToYUVEffect(std::move(rgbFP), colorSpace, RGBToYUVEffect::kYUV_OutputChannels)); in MakeRGBToYUV() [all …]
|
/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() argument 70 return MakeLinear(pts, colors, std::move(colorSpace), pos, count, mode, 0, NULL); in MakeLinear() 110 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, 114 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in MakeRadial() argument 116 return MakeRadial(center, radius, colors, std::move(colorSpace), pos, count, mode, 0, NULL); in MakeRadial() 147 sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], 153 sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], in MakeTwoPointConical() argument 156 std::move(colorSpace), pos, count, mode, 0, NULL); in MakeTwoPointConical() 192 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, [all …]
|
/external/skia/src/gpu/ |
D | GrContextPriv.h | 27 sk_sp<SkColorSpace> colorSpace, 43 sk_sp<SkColorSpace> colorSpace); 47 sk_sp<SkColorSpace> colorSpace, 52 sk_sp<SkColorSpace> colorSpace, 57 sk_sp<SkColorSpace> colorSpace,
|
D | GrDrawingManager.cpp | 282 sk_sp<SkColorSpace> colorSpace, in makeRenderTargetContext() argument 291 if (colorSpace && !SkSurface_Gpu::Valid(fContext, sProxy->config(), colorSpace.get())) { in makeRenderTargetContext() 314 std::move(colorSpace), surfaceProps, in makeRenderTargetContext() 320 std::move(colorSpace), in makeRenderTargetContext() 327 sk_sp<SkColorSpace> colorSpace) { in makeTextureContext() argument 335 if (colorSpace && !SkSurface_Gpu::Valid(fContext, sProxy->config(), colorSpace.get())) { in makeTextureContext() 346 std::move(colorSpace), in makeTextureContext()
|
D | GrTextureToYUVPlanes.cpp | 19 SkYUVColorSpace colorSpace); 24 SkYUVColorSpace colorSpace, MakeFPProc proc) { in convert_proxy() argument 44 fp = proc(std::move(fp), colorSpace); in convert_proxy() 58 const size_t rowBytes[3], SkYUVColorSpace colorSpace) { in GrTextureToYUVPlanes() argument 129 colorSpace, GrYUVEffect::MakeRGBToYUV)) { in GrTextureToYUVPlanes() 136 colorSpace, GrYUVEffect::MakeRGBToY)) { in GrTextureToYUVPlanes() 142 colorSpace, GrYUVEffect::MakeRGBToUV)) { in GrTextureToYUVPlanes() 149 colorSpace, GrYUVEffect::MakeRGBToU)) { in GrTextureToYUVPlanes() 154 colorSpace, GrYUVEffect::MakeRGBToV)) { in GrTextureToYUVPlanes()
|
D | GrContext.cpp | 588 sk_sp<SkColorSpace> colorSpace, in makeWrappedRenderTargetContext() argument 598 std::move(colorSpace), in makeWrappedRenderTargetContext() 603 sk_sp<SkColorSpace> colorSpace) { in makeWrappedSurfaceContext() argument 608 std::move(colorSpace), nullptr); in makeWrappedSurfaceContext() 611 return this->drawingManager()->makeTextureContext(std::move(proxy), std::move(colorSpace)); in makeWrappedSurfaceContext() 640 sk_sp<SkColorSpace> colorSpace) { in makeBackendSurfaceContext() argument 653 return this->makeWrappedSurfaceContext(std::move(proxy), std::move(colorSpace)); in makeBackendSurfaceContext() 658 sk_sp<SkColorSpace> colorSpace, in makeBackendTextureRenderTargetContext() argument 674 std::move(colorSpace), props); in makeBackendTextureRenderTargetContext() 679 sk_sp<SkColorSpace> colorSpace, in makeBackendRenderTargetRenderTargetContext() argument [all …]
|
D | GrPreFlushResourceProvider.cpp | 15 sk_sp<SkColorSpace> colorSpace, in makeRenderTargetContext() argument 42 std::move(colorSpace), in makeRenderTargetContext() 50 sk_sp<SkColorSpace> colorSpace, in makeRenderTargetContext() argument 62 std::move(colorSpace), in makeRenderTargetContext()
|
/external/skia/include/codec/ |
D | SkEncodedInfo.h | 120 SkImageInfo makeImageInfo(int width, int height, sk_sp<SkColorSpace> colorSpace) const { in makeImageInfo() 125 kOpaque_SkAlphaType, colorSpace); in makeImageInfo() 129 kUnpremul_SkAlphaType, colorSpace); in makeImageInfo() 134 alphaType, colorSpace); in makeImageInfo() 144 kOpaque_SkAlphaType, colorSpace); in makeImageInfo() 150 kUnpremul_SkAlphaType, std::move(colorSpace)); in makeImageInfo()
|
/external/skia/src/images/ |
D | SkJPEGImageEncoder.cpp | 69 if (!info.colorSpace() || !info.colorSpace()->gammaIsLinear()) { in set_encode_config() 89 if (!pixmap.colorSpace() || (!pixmap.colorSpace()->gammaCloseToSRGB() && in SkEncodeImageAsJPEG() 90 !pixmap.colorSpace()->gammaIsLinear())) { in SkEncodeImageAsJPEG()
|
D | SkPNGImageEncoder.cpp | 185 if (!pixmap.colorSpace() || (!pixmap.colorSpace()->gammaCloseToSRGB() && in SkEncodeImageAsPNG() 186 !pixmap.colorSpace()->gammaIsLinear())) { in SkEncodeImageAsPNG() 218 if (!pixmap.colorSpace() || !pixmap.colorSpace()->gammaIsLinear()) { in SkEncodeImageAsPNG() 350 if (pixmap.colorSpace() && pixmap.colorSpace()->isSRGB()) { in do_encode()
|
D | SkWEBPImageEncoder.cpp | 102 if (!info.colorSpace() || !info.colorSpace()->gammaIsLinear()) { in choose_proc() 129 if (!pixmap.colorSpace() || (!pixmap.colorSpace()->gammaCloseToSRGB() && in do_encode() 130 !pixmap.colorSpace()->gammaIsLinear())) { in do_encode()
|
/external/skia/src/pdf/ |
D | SkPDFFormXObject.cpp | 16 const char* colorSpace) { in SkPDFMakeFormXObject() argument 33 if (colorSpace != nullptr) { in SkPDFMakeFormXObject() 34 group->insertName("CS", colorSpace); in SkPDFMakeFormXObject()
|