/frameworks/base/core/java/android/hardware/camera2/params/ |
D | ColorSpaceProfiles.java | 84 int colorSpace = (int) elements[i]; in ColorSpaceProfiles() local 85 checkProfileValue(colorSpace); in ColorSpaceProfiles() 86 ColorSpace.Named namedColorSpace = ColorSpace.Named.values()[colorSpace]; in ColorSpaceProfiles() 115 public static void checkProfileValue(int colorSpace) { in checkProfileValue() argument 118 if (colorSpace == value.ordinal()) { in checkProfileValue() 125 throw new IllegalArgumentException("Unknown ColorSpace " + colorSpace); in checkProfileValue() 152 for (ColorSpace.Named colorSpace : mProfileMap.keySet()) { in getSupportedColorSpaces() 154 supportedColorSpaceProfiles.add(colorSpace); in getSupportedColorSpaces() 156 Map<Integer, Set<Long>> imageFormatMap = mProfileMap.get(colorSpace); in getSupportedColorSpaces() 158 supportedColorSpaceProfiles.add(colorSpace); in getSupportedColorSpaces() [all …]
|
D | ExtensionSessionConfiguration.java | 140 public void setColorSpace(@NonNull ColorSpace.Named colorSpace) { in setColorSpace() argument 141 mColorSpace = colorSpace.ordinal(); in setColorSpace() 143 outputConfiguration.setColorSpace(colorSpace); in setColorSpace() 146 mPostviewOutput.setColorSpace(colorSpace); in setColorSpace()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Color.java | 356 private Color(float r, float g, float b, float a, @NonNull ColorSpace colorSpace) { in Color() argument 358 mColorSpace = colorSpace; in Color() 367 private Color(@Size(min = 4, max = 5) float[] components, @NonNull ColorSpace colorSpace) { in Color() argument 369 mColorSpace = colorSpace; in Color() 453 public Color convert(@NonNull ColorSpace colorSpace) { in convert() argument 454 ColorSpace.Connector connector = ColorSpace.connect(mColorSpace, colorSpace); in convert() 459 return new Color(color, colorSpace); in convert() 705 public static ColorSpace colorSpace(@ColorLong long color) { in colorSpace() method in Color 798 return colorSpace(color).isSrgb(); in isSrgb() 815 return colorSpace(color).isWideGamut(); in isWideGamut() [all …]
|
D | Shader.java | 51 protected Shader(ColorSpace colorSpace) { in Shader() argument 52 mColorSpace = colorSpace; in Shader() 53 if (colorSpace == null) { in Shader() 67 protected ColorSpace colorSpace() { in colorSpace() method in Shader 238 final ColorSpace colorSpace = Color.colorSpace(colors[0]); in detectColorSpace() local 240 if (Color.colorSpace(colors[i]) != colorSpace) { in detectColorSpace() 244 return colorSpace; in detectColorSpace()
|
D | ParcelableColorSpace.java | 39 public static boolean isParcelable(@NonNull ColorSpace colorSpace) { in isParcelable() argument 40 if (colorSpace.getId() == ColorSpace.MIN_ID) { in isParcelable() 41 if (!(colorSpace instanceof ColorSpace.Rgb)) { in isParcelable() 44 ColorSpace.Rgb rgb = (ColorSpace.Rgb) colorSpace; in isParcelable() 60 public ParcelableColorSpace(@NonNull ColorSpace colorSpace) { in ParcelableColorSpace() argument 61 mColorSpace = colorSpace; in ParcelableColorSpace()
|
D | MeshSpecification.java | 333 @NonNull ColorSpace colorSpace in make() argument 337 fragmentShader, colorSpace.getNativeInstance()); in make() 378 @NonNull ColorSpace colorSpace, in make() argument 382 fragmentShader, colorSpace.getNativeInstance(), alphaType); in make() 401 Varying[] varyings, String vertexShader, String fragmentShader, long colorSpace); in nativeMakeWithCS() argument 404 Varying[] varyings, String vertexShader, String fragmentShader, long colorSpace, in nativeMakeWithAlpha() argument
|
D | SweepGradient.java | 94 @Nullable float[] positions, ColorSpace colorSpace) { in SweepGradient() argument 95 super(colorSpace); in SweepGradient() 138 colorSpace().getNativeInstance()); in createNativeInstance()
|
D | YuvImage.java | 121 private static boolean isSupportedJpegRColorSpace(boolean isHdr, int colorSpace) { in isSupportedJpegRColorSpace() argument 125 if (cs.ordinal() == colorSpace) { in isSupportedJpegRColorSpace() 168 @Nullable int[] strides, @NonNull ColorSpace colorSpace) { in YuvImage() argument 186 if (colorSpace == null) { in YuvImage() 200 mColorSpace = colorSpace; in YuvImage()
|
D | HardwareBufferRenderer.java | 318 public RenderRequest setColorSpace(@Nullable ColorSpace colorSpace) { in setColorSpace() argument 319 if (colorSpace == null) { in setColorSpace() 322 mColorSpace = colorSpace; in setColorSpace() 355 static native int nRender(long renderer, int transform, int width, int height, long colorSpace, in nRender() argument
|
D | LinearGradient.java | 103 @NonNull ColorSpace colorSpace) { in LinearGradient() argument 104 super(colorSpace); in LinearGradient() 160 colorSpace().getNativeInstance()); in createNativeInstance()
|
D | RadialGradient.java | 152 @NonNull TileMode tileMode, ColorSpace colorSpace in RadialGradient() argument 154 super(colorSpace); in RadialGradient() 216 mColorLongs, mPositions, mTileMode.nativeInt, colorSpace().getNativeInstance()); in createNativeInstance()
|
/frameworks/base/libs/hwui/utils/ |
D | Color.cpp | 32 sk_sp<SkColorSpace> colorSpace) { in createImageInfo() argument 64 return SkImageInfo::Make(width, height, colorType, alphaType, colorSpace); in createImageInfo() 68 sk_sp<SkColorSpace> colorSpace) { in ANativeWindowToImageInfo() argument 69 return createImageInfo(buffer.width, buffer.height, buffer.format, colorSpace); in ANativeWindowToImageInfo() 73 sk_sp<SkColorSpace> colorSpace) { in BufferDescriptionToImageInfo() argument 74 return createImageInfo(bufferDesc.width, bufferDesc.height, bufferDesc.format, colorSpace); in BufferDescriptionToImageInfo() 159 android_dataspace ColorSpaceToADataSpace(SkColorSpace* colorSpace, SkColorType colorType) { in ColorSpaceToADataSpace() argument 160 if (!colorSpace) { in ColorSpaceToADataSpace() 164 if (colorSpace->isSRGB()) { in ColorSpaceToADataSpace() 172 if (!colorSpace->isNumericalTransferFn(&fn)) { in ColorSpaceToADataSpace() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/extension/ |
D | ExtensionConfiguration.java | 87 public void setColorSpace(int colorSpace) { in setColorSpace() argument 88 mColorSpace = colorSpace; in setColorSpace() 102 ret.colorSpace = mColorSpace; in getCameraSessionConfig() 104 ret.colorSpace = ColorSpaceProfiles.UNSPECIFIED; in getCameraSessionConfig()
|
/frameworks/base/libs/hwui/jni/ |
D | Bitmap.cpp | 94 void setColorSpace(sk_sp<SkColorSpace> colorSpace) { in setColorSpace() argument 96 mBitmap->setColorSpace(colorSpace); in setColorSpace() 303 sk_sp<SkColorSpace> colorSpace; in Bitmap_creator() local 305 colorSpace = nullptr; in Bitmap_creator() 307 colorSpace = GraphicsJNI::getNativeColorSpace(colorSpacePtr); in Bitmap_creator() 312 colorSpace)); in Bitmap_creator() 347 if (!dstInfo.colorSpace() && dstCT != kAlpha_8_SkColorType) { in bitmapCopyTo() 489 sk_ref_sp(bitmap->info().colorSpace()))); in Bitmap_reconfigure() 510 const sk_sp<SkColorSpace>& colorSpace) { in bitmapErase() argument 512 p.setColor4f(color, colorSpace.get()); in bitmapErase() [all …]
|
D | MeshSpecification.cpp | 90 jlong colorSpace) { in MakeWithCS() argument 97 SkString(skFragmentShader.c_str()), GraphicsJNI::getNativeColorSpace(colorSpace)); in MakeWithCS() 108 jstring fragmentShader, jlong colorSpace, jint alphaType) { in MakeWithAlpha() argument 115 SkString(skFragmentShader.c_str()), GraphicsJNI::getNativeColorSpace(colorSpace), in MakeWithAlpha()
|
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/ |
D | FrameBuffer.kt | 53 @VisibleForTesting val colorSpace = ColorSpace.get(ColorSpace.Named.SRGB) in <lambda>() constant 86 renderer.obtainRenderRequest().setColorSpace(colorSpace).draw(executor) { result -> in <lambda>() 90 Bitmap.wrapHardwareBuffer(buffer, colorSpace)?.let { in <lambda>()
|
/frameworks/base/libs/hwui/renderthread/ |
D | VulkanSurface.h | 40 sk_sp<SkColorSpace> colorSpace, GrDirectContext* grContext, 49 void setColorSpace(sk_sp<SkColorSpace> colorSpace); 114 SkColorType colorType, sk_sp<SkColorSpace> colorSpace,
|
D | HardwareBufferRenderParams.h | 40 const SkMatrix& transform, const sk_sp<SkColorSpace>& colorSpace, in HardwareBufferRenderParams() argument 45 , mColorSpace(colorSpace) in HardwareBufferRenderParams()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | EglManagerTests.cpp | 36 auto colorSpace = SkColorSpace::MakeSRGB(); in TEST() local 40 eglManager.createSurface(context.surface().get(), ColorMode::Default, colorSpace); in TEST()
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | HardwareBufferRendererActivity.java | 73 ColorSpace colorSpace = ColorSpace.get(Named.SRGB); in onCreate() local 76 .setColorSpace(colorSpace) in onCreate() 80 Bitmap bitmap = Bitmap.wrapHardwareBuffer(buffer, colorSpace); in onCreate()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ScreenshotRequest.java | 297 ParcelableColorSpace colorSpace = in hardwareBitmapToBundle() local 304 bundle.putParcelable(KEY_COLOR_SPACE, colorSpace); in hardwareBitmapToBundle() 328 ParcelableColorSpace colorSpace = bundle.getParcelable(KEY_COLOR_SPACE, in bundleToHardwareBitmap() local 332 colorSpace.getColorSpace()); in bundleToHardwareBitmap()
|
/frameworks/base/core/java/android/window/ |
D | TaskSnapshot.java | 95 @NonNull ColorSpace colorSpace, int orientation, int rotation, Point taskSize, in TaskSnapshot() argument 104 mColorSpace = colorSpace.getId() < 0 in TaskSnapshot() 105 ? ColorSpace.get(ColorSpace.Named.SRGB) : colorSpace; in TaskSnapshot() 394 public Builder setColorSpace(ColorSpace colorSpace) { 395 mColorSpace = colorSpace;
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | SessionConfigurationUtils.cpp | 318 bool isColorSpaceSupported(int32_t colorSpace, int32_t format, android_dataspace dataSpace, in isColorSpaceSupported() argument 320 int64_t colorSpace64 = colorSpace; in isColorSpaceSupported() 361 " combination not found", colorSpace, format64, dynamicRangeProfile); in isColorSpaceSupported() 392 bool dataSpaceFromColorSpace(android_dataspace *dataSpace, int32_t colorSpace) { in dataSpaceFromColorSpace() argument 393 switch (colorSpace) { in dataSpaceFromColorSpace() 404 ALOGE("%s: Unsupported color space %d", __FUNCTION__, colorSpace); in dataSpaceFromColorSpace() 437 int32_t colorSpace, bool respectSurfaceSize) { in createSurfaceFromGbp() argument 501 if (colorSpace != ANDROID_REQUEST_AVAILABLE_COLOR_SPACE_PROFILES_MAP_UNSPECIFIED && in createSurfaceFromGbp() 503 if (!dataSpaceFromColorSpace(&dataSpace, colorSpace)) { in createSurfaceFromGbp() 505 "convert to data space", logicalCameraId.c_str(), colorSpace); in createSurfaceFromGbp() [all …]
|
/frameworks/base/core/java/android/service/contentsuggestions/ |
D | ContentSuggestionsService.java | 78 ColorSpace colorSpace = null; 80 colorSpace = ColorSpace.get(ColorSpace.Named.values()[colorSpaceId]); 82 wrappedBuffer = Bitmap.wrapHardwareBuffer(contextImage, colorSpace);
|
/frameworks/ex/camera2/extensions/stub/src/main/java/androidx/camera/extensions/impl/advanced/ |
D | Camera2SessionConfigImplBuilder.java | 74 public Camera2SessionConfigImplBuilder setColorSpace(int colorSpace) { in setColorSpace() argument 75 mColorSpace = colorSpace; in setColorSpace()
|