Home
last modified time | relevance | path

Searched refs:colorSpace (Results 1 – 25 of 357) sorted by relevance

12345678910>>...15

/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/video/
DColorInfo.java36 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/
DSkGradientShader.h98 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/
DSkGradientShader.h93 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/
DSkSpecialImage.cpp60 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/
DImageInfo_colorSpace.cpp9 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()
DPixmap_colorSpace.cpp9 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()
DBitmap_colorSpace.cpp10 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()
DImageInfo_refColorSpace.cpp11 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()
DBitmap_refColorSpace.cpp12 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()
DImage_colorSpace.cpp15 sk_sp<SkColorSpace> colorSpace = SkColorSpace::MakeRGB(gamma, SkColorSpace::kSRGB_Gamut);
17 pixmap.setColorSpace(colorSpace);
20 colorSpace = image->colorSpace()->makeColorSpin();
DImage_refColorSpace.cpp15 sk_sp<SkColorSpace> colorSpace = SkColorSpace::MakeRGB(gamma, SkColorSpace::kSRGB_Gamut);
17 pixmap.setColorSpace(colorSpace);
20 colorSpace = image->refColorSpace()->makeColorSpin();
/external/skqp/src/core/
DSkSpecialImage.cpp242 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/
DSkImage.cpp87 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 …]
DSkSurface_Gpu.cpp251 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/
Dinterface.js756 … 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 …]
Dgpu.js66 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/
DGrContextPriv.h61 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,
DGrSurfaceContext.cpp26 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()
DSkGpuDevice_drawTexture.cpp103 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()
DGrContext.cpp433 !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/
DSkColorShader.cpp50 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/
DSkGradientShader.cpp506 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/
DSkPDFFormXObject.cpp17 const char* colorSpace) { in SkPDFMakeFormXObject() argument
33 if (colorSpace != nullptr) { in SkPDFMakeFormXObject()
34 group->insertName("CS", colorSpace); in SkPDFMakeFormXObject()
/external/skqp/src/pdf/
DSkPDFFormXObject.cpp17 const char* colorSpace) { in SkPDFMakeFormXObject() argument
33 if (colorSpace != nullptr) { in SkPDFMakeFormXObject()
34 group->insertName("CS", colorSpace); in SkPDFMakeFormXObject()
/external/skia/src/shaders/gradients/
DSkGradientShader.cpp680 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 …]

12345678910>>...15