/frameworks/base/graphics/java/android/graphics/ |
D | Color.java | 354 private Color(float r, float g, float b, float a, @NonNull ColorSpace colorSpace) { in Color() argument 356 mColorSpace = colorSpace; in Color() 365 private Color(@Size(min = 4, max = 5) float[] components, @NonNull ColorSpace colorSpace) { in Color() argument 367 mColorSpace = colorSpace; in Color() 451 public Color convert(@NonNull ColorSpace colorSpace) { in convert() argument 452 ColorSpace.Connector connector = ColorSpace.connect(mColorSpace, colorSpace); in convert() 457 return new Color(color, colorSpace); in convert() 703 public static ColorSpace colorSpace(@ColorLong long color) { in colorSpace() method in Color 796 return colorSpace(color).isSrgb(); in isSrgb() 813 return colorSpace(color).isWideGamut(); in isWideGamut() [all …]
|
D | Shader.java | 52 public Shader(ColorSpace colorSpace) { in Shader() argument 53 mColorSpace = colorSpace; in Shader() 54 if (colorSpace == null) { in Shader() 68 protected ColorSpace colorSpace() { in colorSpace() method in Shader 213 final ColorSpace colorSpace = Color.colorSpace(colors[0]); in detectColorSpace() local 215 if (Color.colorSpace(colors[i]) != colorSpace) { in detectColorSpace() 219 return colorSpace; in detectColorSpace()
|
D | ColorSpace.java | 1301 public static ColorSpace adapt(@NonNull ColorSpace colorSpace, in adapt() argument 1303 return adapt(colorSpace, whitePoint, Adaptation.BRADFORD); in adapt() 1330 public static ColorSpace adapt(@NonNull ColorSpace colorSpace, in adapt() argument 1333 if (colorSpace.getModel() == Model.RGB) { in adapt() 1334 ColorSpace.Rgb rgb = (ColorSpace.Rgb) colorSpace; in adapt() 1335 if (compare(rgb.mWhitePoint, whitePoint)) return colorSpace; in adapt() 1345 return colorSpace; in adapt() 1425 for (ColorSpace colorSpace : sNamedColorSpaces) { in match() 1426 if (colorSpace.getModel() == Model.RGB) { in match() 1427 ColorSpace.Rgb rgb = (ColorSpace.Rgb) adapt(colorSpace, ILLUMINANT_D50_XYZ); in match() [all …]
|
D | SweepGradient.java | 93 @Nullable float[] positions, ColorSpace colorSpace) { in SweepGradient() argument 94 super(colorSpace); in SweepGradient() 136 colorSpace().getNativeInstance()); in createNativeInstance()
|
D | RadialGradient.java | 100 @NonNull TileMode tileMode, ColorSpace colorSpace) { in RadialGradient() argument 101 super(colorSpace); in RadialGradient() 154 colorSpace().getNativeInstance()); in createNativeInstance()
|
D | LinearGradient.java | 102 @NonNull ColorSpace colorSpace) { in LinearGradient() argument 103 super(colorSpace); in LinearGradient() 158 colorSpace().getNativeInstance()); in createNativeInstance()
|
D | Bitmap.java | 754 @Nullable ColorSpace colorSpace) { in wrapHardwareBuffer() argument 759 if (colorSpace == null) { in wrapHardwareBuffer() 760 colorSpace = ColorSpace.get(ColorSpace.Named.SRGB); in wrapHardwareBuffer() 762 return nativeWrapHardwareBufferBitmap(hardwareBuffer, colorSpace.getNativeInstance()); in wrapHardwareBuffer() 771 @Nullable ColorSpace colorSpace) { in wrapHardwareBuffer() argument 773 return wrapHardwareBuffer(hb, colorSpace); in wrapHardwareBuffer() 1056 boolean hasAlpha, @NonNull ColorSpace colorSpace) { in createBitmap() argument 1057 return createBitmap(null, width, height, config, hasAlpha, colorSpace); in createBitmap() 1111 @NonNull Config config, boolean hasAlpha, @NonNull ColorSpace colorSpace) { in createBitmap() argument 1118 if (colorSpace == null && config != Config.ALPHA_8) { in createBitmap() [all …]
|
/frameworks/base/libs/hwui/ |
D | DeviceInfo.cpp | 89 static void queryWideColorGamutPreference(sk_sp<SkColorSpace>* colorSpace, SkColorType* colorType) { in queryWideColorGamutPreference() argument 91 *colorSpace = SkColorSpace::MakeSRGB(); in queryWideColorGamutPreference() 103 *colorSpace = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kDCIP3); in queryWideColorGamutPreference() 106 *colorSpace = SkColorSpace::MakeSRGB(); in queryWideColorGamutPreference() 110 *colorSpace = SkColorSpace::MakeSRGB(); in queryWideColorGamutPreference()
|
D | Readback.cpp | 67 sk_sp<SkColorSpace> colorSpace = in copySurfaceInto() local 71 kPremul_SkAlphaType, colorSpace); in copySurfaceInto()
|
/frameworks/base/core/jni/android/graphics/ |
D | Bitmap.cpp | 95 void setColorSpace(sk_sp<SkColorSpace> colorSpace) { in setColorSpace() argument 97 mBitmap->setColorSpace(colorSpace); in setColorSpace() 352 sk_sp<SkColorSpace> colorSpace; in Bitmap_creator() local 354 colorSpace = nullptr; in Bitmap_creator() 356 colorSpace = GraphicsJNI::getNativeColorSpace(colorSpacePtr); in Bitmap_creator() 361 colorSpace)); in Bitmap_creator() 396 if (!dstInfo.colorSpace() && dstCT != kAlpha_8_SkColorType) { in bitmapCopyTo() 508 sk_ref_sp(bitmap->info().colorSpace()))); in Bitmap_reconfigure() 570 const sk_sp<SkColorSpace>& colorSpace) { in bitmapErase() argument 572 p.setColor4f(color, colorSpace.get()); in bitmapErase() [all …]
|
D | ImageDecoder.cpp | 273 sk_sp<SkColorSpace> colorSpace = GraphicsJNI::getNativeColorSpace(colorSpaceHandle); in ImageDecoder_nDecodeBitmap() local 274 colorSpace = codec->computeOutputColorSpace(colorType, colorSpace); in ImageDecoder_nDecodeBitmap() 275 decodeInfo = decodeInfo.makeColorType(colorType).makeColorSpace(colorSpace); in ImageDecoder_nDecodeBitmap() 512 sk_sp<SkColorSpace> colorSpace = codec->computeOutputColorSpace(colorType); in ImageDecoder_nGetColorSpace() local 513 return GraphicsJNI::getColorSpace(env, colorSpace.get(), colorType); in ImageDecoder_nGetColorSpace()
|
D | BitmapRegionDecoder.cpp | 137 sk_sp<SkColorSpace> colorSpace = GraphicsJNI::getNativeColorSpace(colorSpaceHandle); in nativeDecodeRegion() local 189 decodeColorType, colorSpace); in nativeDecodeRegion()
|
D | Graphics.cpp | 477 jobject colorSpace = env->CallStaticObjectMethod(gColorSpace_class, in getColorSpace() local 480 if (colorSpace == nullptr) { in getColorSpace() 483 colorSpace = env->NewObject(gColorSpaceRGB_class, in getColorSpace() 489 return colorSpace; in getColorSpace()
|
/frameworks/base/libs/hwui/utils/ |
D | Color.cpp | 186 auto colorSpace = ColorSpace::sRGB(); in sRGBToLab() local 191 float3 xyz = colorSpace.rgbToXYZ(rgb); in sRGBToLab() 192 float3 srcXYZ = ColorSpace::XYZ(float3{colorSpace.getWhitePoint(), 1}); in sRGBToLab() 198 auto colorSpace = ColorSpace::sRGB(); in LabToSRGB() local 200 float3 dstXYZ = ColorSpace::XYZ(float3{colorSpace.getWhitePoint(), 1}); in LabToSRGB() 202 float3 rgb = colorSpace.xyzToRGB(xyz); in LabToSRGB()
|
/frameworks/base/core/java/android/service/contentsuggestions/ |
D | ContentSuggestionsService.java | 70 ColorSpace colorSpace = null; 72 colorSpace = ColorSpace.get(ColorSpace.Named.values()[colorSpaceId]); 74 wrappedBuffer = Bitmap.wrapHardwareBuffer(contextImage, colorSpace);
|
/frameworks/base/services/contentsuggestions/java/com/android/server/contentsuggestions/ |
D | ContentSuggestionsPerUserService.java | 106 ColorSpace colorSpace = snapshot.getColorSpace(); in provideContextImageLocked() local 107 if (colorSpace != null) { in provideContextImageLocked() 108 colorSpaceId = colorSpace.getId(); in provideContextImageLocked()
|
/frameworks/native/opengl/libs/EGL/ |
D | egl_object.cpp | 59 EGLSurface surface, EGLint colorSpace, egl_connection_t const* cnx) in egl_surface_t() argument 66 colorSpace(colorSpace), in egl_surface_t() 208 *value = colorSpace; in getColorSpaceAttribute()
|
D | egl_object.h | 135 EGLint colorSpace, egl_connection_t const* cnx); 139 EGLint getColorSpace() const { return colorSpace; } in getColorSpace() 161 EGLint colorSpace; variable
|
D | egl_platform_entries.cpp | 527 const AttrType* attrib_list, EGLint* colorSpace, in processAttributes() argument 549 *colorSpace = static_cast<EGLint>(attr[1]); in processAttributes() 580 const bool colorSpaceIsNarrow = *colorSpace == EGL_GL_COLORSPACE_SRGB_KHR || in processAttributes() 581 *colorSpace == EGL_GL_COLORSPACE_LINEAR_KHR || *colorSpace == EGL_UNKNOWN; in processAttributes() 738 EGLint colorSpace = EGL_UNKNOWN; in eglCreateWindowSurfaceTmpl() local 740 if (!processAttributes<AttrType>(dp, window, attrib_list, &colorSpace, &strippedAttribList)) { in eglCreateWindowSurfaceTmpl() 741 ALOGE("error invalid colorspace: %d", colorSpace); in eglCreateWindowSurfaceTmpl() 757 android_dataspace dataSpace = dataSpaceFromEGLColorSpace(colorSpace); in eglCreateWindowSurfaceTmpl() 776 getReportedColorSpace(colorSpace), cnx); in eglCreateWindowSurfaceTmpl() 877 EGLint colorSpace = EGL_UNKNOWN; in eglCreatePbufferSurfaceImpl() local [all …]
|
/frameworks/native/opengl/tests/lib/include/ |
D | EGLUtils.h | 63 static inline String8 decodeColorSpace(EGLint colorSpace); 277 String8 EGLUtils::decodeColorSpace(EGLint colorSpace) { in decodeColorSpace() argument 278 switch (colorSpace) { in decodeColorSpace() 288 return String8::format("UNKNOWN ColorSpace %d", colorSpace); in decodeColorSpace()
|
/frameworks/base/core/java/android/app/ |
D | SharedElementCallback.java | 244 ColorSpace colorSpace = null; in onCreateSnapshotView() local 247 colorSpace = ColorSpace.get(ColorSpace.Named.values()[colorSpaceId]); in onCreateSnapshotView() 250 colorSpace); in onCreateSnapshotView()
|
/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.h | 76 sk_sp<SkColorSpace> colorSpace, 87 void setColorSpace(sk_sp<SkColorSpace> colorSpace);
|
D | Bitmap.cpp | 137 sk_sp<SkColorSpace> colorSpace, SkAlphaType alphaType, in createFrom() argument 140 colorType, alphaType, colorSpace); in createFrom() 168 void Bitmap::setColorSpace(sk_sp<SkColorSpace> colorSpace) { in setColorSpace() argument 169 mInfo = mInfo.makeColorSpace(std::move(colorSpace)); in setColorSpace()
|
/frameworks/base/libs/hwui/renderthread/ |
D | EglManager.h | 52 sk_sp<SkColorSpace> colorSpace);
|
D | VulkanSurface.h | 38 sk_sp<SkColorSpace> colorSpace, GrContext* grContext,
|