/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/video/ |
D | ColorInfo.java | 36 public final int colorSpace; field in ColorInfo 67 @C.ColorSpace int colorSpace, in ColorInfo() 71 this.colorSpace = colorSpace; in ColorInfo() 79 colorSpace = in.readInt(); in ColorInfo() 96 return colorSpace == other.colorSpace in equals() 104 return "ColorInfo(" + colorSpace + ", " + colorRange + ", " + colorTransfer in toString() 112 result = 31 * result + colorSpace; in hashCode() 128 dest.writeInt(colorSpace); in writeToParcel()
|
/external/skia/include/effects/ |
D | SkGradientShader.h | 98 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, 102 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in MakeLinear() argument 104 return MakeLinear(pts, colors, std::move(colorSpace), pos, count, mode, 0, nullptr); in MakeLinear() 144 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, 148 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in MakeRadial() argument 150 return MakeRadial(center, radius, colors, std::move(colorSpace), pos, count, mode, in MakeRadial() 182 sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], 188 sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], in MakeTwoPointConical() argument 191 std::move(colorSpace), pos, count, mode, 0, nullptr); in MakeTwoPointConical() 243 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, [all …]
|
/external/skqp/include/effects/ |
D | SkGradientShader.h | 93 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, 97 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in MakeLinear() argument 99 return MakeLinear(pts, colors, std::move(colorSpace), pos, count, mode, 0, nullptr); in MakeLinear() 139 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, 143 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in MakeRadial() argument 145 return MakeRadial(center, radius, colors, std::move(colorSpace), pos, count, mode, in MakeRadial() 177 sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], 183 sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], in MakeTwoPointConical() argument 186 std::move(colorSpace), pos, count, mode, 0, nullptr); in MakeTwoPointConical() 238 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, [all …]
|
/external/skia/src/core/ |
D | SkSpecialImage.cpp | 60 SkColorType colorType, const SkColorSpace* colorSpace, const SkISize& size, 68 SkColorType colorType, const SkColorSpace* colorSpace, 116 SkColorType colorType, const SkColorSpace* colorSpace, const SkISize& size, in makeSurface() argument 118 return as_SIB(this)->onMakeSurface(colorType, colorSpace, size, at, props); in makeSurface() 122 SkColorType colorType, const SkColorSpace* colorSpace, const SkISize& size, in makeTightSurface() argument 124 return as_SIB(this)->onMakeTightSurface(colorType, colorSpace, size, at); in makeTightSurface() 214 return fBitmap.colorSpace(); in onGetColorSpace() 227 sk_sp<SkSpecialSurface> onMakeSurface(SkColorType colorType, const SkColorSpace* colorSpace, in onMakeSurface() argument 232 SkImageInfo info = SkImageInfo::Make(size, colorType, at, sk_ref_sp(colorSpace)); in onMakeSurface() 255 sk_sp<SkSurface> onMakeTightSurface(SkColorType colorType, const SkColorSpace* colorSpace, in onMakeTightSurface() argument [all …]
|
/external/skia/docs/examples/ |
D | ImageInfo_colorSpace.cpp | 9 SkColorSpace* colorSpace = info.colorSpace(); in draw() local 11 colorSpace->gammaCloseToSRGB() ? "true" : "false", in draw() 12 colorSpace->gammaIsLinear() ? "true" : "false", in draw() 13 colorSpace->isSRGB() ? "true" : "false"); in draw()
|
D | Pixmap_colorSpace.cpp | 9 SkColorSpace* colorSpace = pixmap.colorSpace(); in draw() local 11 colorSpace->gammaCloseToSRGB() ? "true" : "false", in draw() 12 colorSpace->gammaIsLinear() ? "true" : "false", in draw() 13 colorSpace->isSRGB() ? "true" : "false"); in draw()
|
D | Bitmap_colorSpace.cpp | 10 SkColorSpace* colorSpace = bitmap.colorSpace(); in draw() local 12 colorSpace->gammaCloseToSRGB() ? "true" : "false", in draw() 13 colorSpace->gammaIsLinear() ? "true" : "false", in draw() 14 colorSpace->isSRGB() ? "true" : "false"); in draw()
|
D | ImageInfo_refColorSpace.cpp | 11 SkColorSpace* colorSpace = info2.colorSpace(); in draw() local 13 colorSpace->gammaCloseToSRGB() ? "true" : "false", in draw() 14 colorSpace->gammaIsLinear() ? "true" : "false", in draw() 15 colorSpace->isSRGB() ? "true" : "false"); in draw()
|
D | Bitmap_refColorSpace.cpp | 12 SkColorSpace* colorSpace = bitmap2.colorSpace(); in draw() local 14 colorSpace->gammaCloseToSRGB() ? "true" : "false", in draw() 15 colorSpace->gammaIsLinear() ? "true" : "false", in draw() 16 colorSpace->isSRGB() ? "true" : "false"); in draw()
|
D | Image_colorSpace.cpp | 15 sk_sp<SkColorSpace> colorSpace = SkColorSpace::MakeRGB(gamma, SkColorSpace::kSRGB_Gamut); 17 pixmap.setColorSpace(colorSpace); 20 colorSpace = image->colorSpace()->makeColorSpin();
|
D | Image_refColorSpace.cpp | 15 sk_sp<SkColorSpace> colorSpace = SkColorSpace::MakeRGB(gamma, SkColorSpace::kSRGB_Gamut); 17 pixmap.setColorSpace(colorSpace); 20 colorSpace = image->refColorSpace()->makeColorSpin();
|
/external/skqp/src/core/ |
D | SkSpecialImage.cpp | 242 return fBitmap.colorSpace(); in onGetColorSpace() 264 SkColorSpace* colorSpace = outProps.colorSpace(); in onMakeSurface() local 266 SkColorSpace* colorSpace = nullptr; in onMakeSurface() 268 SkColorType colorType = colorSpace && colorSpace->gammaIsLinear() in onMakeSurface() 271 sk_ref_sp(colorSpace)); in onMakeSurface() 304 SkColorSpace* colorSpace = outProps.colorSpace(); in onMakeTightSurface() local 306 SkColorSpace* colorSpace = nullptr; in onMakeTightSurface() 308 SkColorType colorType = colorSpace && colorSpace->gammaIsLinear() in onMakeTightSurface() 311 sk_ref_sp(colorSpace)); in onMakeTightSurface() 366 SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) { in wrap_proxy_in_image() argument [all …]
|
/external/skqp/src/image/ |
D | SkImage.cpp | 87 SkColorSpace* SkImage::colorSpace() const { in colorSpace() function in SkImage 88 return as_IB(this)->onImageInfo().colorSpace(); in colorSpace() 246 BitDepth bitDepth, sk_sp<SkColorSpace> colorSpace) { in MakeFromPicture() argument 249 std::move(colorSpace))); in MakeFromPicture() 276 as_IB(this)->onImageInfo().colorSpace()); in makeWithFilter() 312 SkColorSpace* colorSpace = this->colorSpace(); in makeColorSpace() local 313 if (!colorSpace) { in makeColorSpace() 314 colorSpace = sk_srgb_singleton(); in makeColorSpace() 316 if (SkColorSpace::Equals(colorSpace, target.get()) || this->isAlphaOnly()) { in makeColorSpace() 330 SkColorSpace* colorSpace = this->colorSpace(); in makeColorTypeAndColorSpace() local [all …]
|
D | SkSurface_Gpu.cpp | 251 SkColorSpace::Equals(characterization.colorSpace(), in isCompatible() 252 rtc->colorSpaceInfo().colorSpace()) && in isCompatible() 275 bool SkSurface_Gpu::Valid(const GrCaps* caps, GrPixelConfig config, SkColorSpace* colorSpace) { in Valid() argument 297 if (!SkSurface_Gpu::Valid(context->contextPriv().caps(), c.config(), c.colorSpace())) { in MakeRenderTarget() 423 sk_sp<SkColorSpace> colorSpace, in MakeFromBackendTexture() argument 431 sampleCnt, colorType, colorSpace, true)) { in MakeFromBackendTexture() 438 if (!SkSurface_Gpu::Valid(context->contextPriv().caps(), texCopy.config(), colorSpace.get())) { in MakeFromBackendTexture() 447 std::move(colorSpace), in MakeFromBackendTexture() 492 sk_sp<SkColorSpace> colorSpace, in MakeFromBackendRenderTarget() argument 499 if (!validate_backend_render_target(context, rtCopy, &rtCopy.fConfig, colorType, colorSpace)) { in MakeFromBackendRenderTarget() [all …]
|
/external/skia/modules/canvaskit/ |
D | interface.js | 756 … destX, destY, alphaType, colorType, colorSpace) { argument 764 colorSpace = colorSpace || CanvasKit.ColorSpace.SRGB; 773 'colorSpace': colorSpace, property 817 CanvasKit.Paint.prototype.setColor = function(color4f, colorSpace) { argument 818 colorSpace = colorSpace || null; // null will be replaced with sRGB in the C++ method. 821 this._setColor(cPtr, colorSpace); 827 CanvasKit.Paint.prototype.setColorComponents = function(r, g, b, a, colorSpace) { argument 828 colorSpace = colorSpace || null; // null will be replaced with sRGB in the C++ method. 831 this._setColor(cPtr, colorSpace); 907 CanvasKit.Shader.MakeColor = function(color4f, colorSpace) { argument [all …]
|
D | gpu.js | 66 CanvasKit.MakeWebGLCanvasSurface = function(idOrElement, colorSpace, attrs) { argument 67 colorSpace = colorSpace || null; 88 … var surface = this.MakeOnScreenGLSurface(grcontext, canvas.width, canvas.height, colorSpace);
|
/external/skqp/src/gpu/ |
D | GrContextPriv.h | 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, 235 sk_sp<SkColorSpace> colorSpace, 252 sk_sp<SkColorSpace> colorSpace,
|
D | GrSurfaceContext.cpp | 26 sk_sp<SkColorSpace> colorSpace, in GrSurfaceContext() argument 31 , fColorSpaceInfo(std::move(colorSpace), config) in GrSurfaceContext() 56 colorType, dstInfo.colorSpace(), dstBuffer, in readPixels() 75 colorType, srcInfo.colorSpace(), srcBuffer, in writePixels()
|
D | SkGpuDevice_drawTexture.cpp | 103 SkColorSpace* colorSpace, const GrClip& clip, GrRenderTargetContext* rtc) { in draw_texture() argument 116 GrColorSpaceXform::Make(colorSpace , alphaType, in draw_texture() 117 dstInfo.colorSpace(), kPremul_SkAlphaType); in draw_texture() 145 SkColorSpace* colorSpace, SkAlphaType alphaType, in drawPinnedTextureProxy() argument 152 alphaType, colorSpace, this->clip(), fRenderTargetContext.get()); in drawPinnedTextureProxy() 156 colorSpace); in drawPinnedTextureProxy() 176 producer->alphaType(), producer->colorSpace(), this->clip(), in drawTextureProducer() 292 SkColorSpace* rtColorSpace = fRenderTargetContext->colorSpaceInfo().colorSpace(); in drawTextureProducerImpl() 295 fp = GrColorSpaceXformEffect::Make(std::move(fp), producer->colorSpace(), producer->alphaType(), in drawTextureProducerImpl()
|
D | GrContext.cpp | 433 !dst->colorSpaceInfo().colorSpace() && in writeSurfacePixels() 520 if (!dst->colorSpaceInfo().colorSpace()) { in writeSurfacePixels() 524 convert = convert || !SkColorSpace::Equals(srcColorSpace, dst->colorSpaceInfo().colorSpace()); in writeSurfacePixels() 627 !src->colorSpaceInfo().colorSpace() && in readSurfacePixels() 712 if (!src->colorSpaceInfo().colorSpace()) { in readSurfacePixels() 716 convert = convert || !SkColorSpace::Equals(dstColorSpace, src->colorSpaceInfo().colorSpace()); in readSurfacePixels() 825 sk_sp<SkColorSpace> colorSpace, in makeWrappedSurfaceContext() argument 831 std::move(colorSpace), props); in makeWrappedSurfaceContext() 835 return this->drawingManager()->makeTextureContext(std::move(proxy), std::move(colorSpace)); in makeWrappedSurfaceContext() 845 sk_sp<SkColorSpace> colorSpace, in makeDeferredSurfaceContext() argument [all …]
|
/external/skia/src/shaders/ |
D | SkColorShader.cpp | 50 sk_sp<SkColorSpace> colorSpace; in CreateProc() local 54 colorSpace = data ? SkColorSpace::Deserialize(data->data(), data->size()) : nullptr; in CreateProc() 56 return SkShaders::Color(color, std::move(colorSpace)); in CreateProc() 101 dst.colorSpace(), kPremul_SkAlphaType).apply(color.vec()); in onProgram() 111 dst.colorSpace(), kPremul_SkAlphaType).apply(color.vec()); in onProgram() 131 args.fDstColorInfo->colorSpace(), kUnpremul_SkAlphaType }; in asFragmentProcessor()
|
/external/skqp/src/shaders/gradients/ |
D | SkGradientShader.cpp | 506 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in desc_init() argument 512 desc->fColorSpace = std::move(colorSpace); in desc_init() 568 int colorCount, sk_sp<SkColorSpace> colorSpace, in make_degenerate_gradient() argument 581 average_gradient_color(colors, pos, colorCount), std::move(colorSpace)); in make_degenerate_gradient() 585 return SkShader::MakeColorShader(colors[colorCount - 1], std::move(colorSpace)); in make_degenerate_gradient() 675 sk_sp<SkColorSpace> colorSpace, in MakeLinear() argument 687 return SkShader::MakeColorShader(colors[0], std::move(colorSpace)); in MakeLinear() 698 return make_degenerate_gradient(colors, pos, colorCount, std::move(colorSpace), mode); in MakeLinear() 704 desc_init(&desc, opt.fColors, std::move(colorSpace), opt.fPos, opt.fCount, mode, flags, in MakeLinear() 722 sk_sp<SkColorSpace> colorSpace, in MakeRadial() argument [all …]
|
/external/skia/src/pdf/ |
D | SkPDFFormXObject.cpp | 17 const char* colorSpace) { in SkPDFMakeFormXObject() argument 33 if (colorSpace != nullptr) { in SkPDFMakeFormXObject() 34 group->insertName("CS", colorSpace); in SkPDFMakeFormXObject()
|
/external/skqp/src/pdf/ |
D | SkPDFFormXObject.cpp | 17 const char* colorSpace) { in SkPDFMakeFormXObject() argument 33 if (colorSpace != nullptr) { in SkPDFMakeFormXObject() 34 group->insertName("CS", colorSpace); in SkPDFMakeFormXObject()
|
/external/skia/src/shaders/gradients/ |
D | SkGradientShader.cpp | 680 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in desc_init() argument 686 desc->fColorSpace = std::move(colorSpace); in desc_init() 753 int colorCount, sk_sp<SkColorSpace> colorSpace, in make_degenerate_gradient() argument 766 average_gradient_color(colors, pos, colorCount), std::move(colorSpace)); in make_degenerate_gradient() 770 return SkShaders::Color(colors[colorCount - 1], std::move(colorSpace)); in make_degenerate_gradient() 856 sk_sp<SkColorSpace> colorSpace, in MakeLinear() argument 868 return SkShaders::Color(colors[0], std::move(colorSpace)); in MakeLinear() 879 return make_degenerate_gradient(colors, pos, colorCount, std::move(colorSpace), mode); in MakeLinear() 885 desc_init(&desc, opt.fColors, std::move(colorSpace), opt.fPos, opt.fCount, mode, flags, in MakeLinear() 903 sk_sp<SkColorSpace> colorSpace, in MakeRadial() argument [all …]
|