Home
last modified time | relevance | path

Searched refs:ColorSpace (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/graphics/
DColorSpaceRendererTest.java34 Bitmap b = ColorSpace.createRenderer() in testRendererSize()
40 b = ColorSpace.createRenderer() in testRendererSize()
49 Bitmap b = ColorSpace.createRenderer() in testRenderer()
53 .add(ColorSpace.get(ColorSpace.Named.SRGB), 0xffffffff) in testRenderer()
54 .add(ColorSpace.get(ColorSpace.Named.DCI_P3), 0xffffffff) in testRenderer()
55 .add(ColorSpace.get(ColorSpace.Named.PRO_PHOTO_RGB), 0.1f, 0.5f, 0.1f, 0xff000000) in testRenderer()
56 .add(ColorSpace.get(ColorSpace.Named.ADOBE_RGB), 0.1f, 0.5f, 0.1f, 0xff000000) in testRenderer()
63 Bitmap b = ColorSpace.createRenderer() in testUcsRenderer()
68 .add(ColorSpace.get(ColorSpace.Named.SRGB), 0xffffffff) in testUcsRenderer()
69 .add(ColorSpace.get(ColorSpace.Named.DCI_P3), 0xffffffff) in testUcsRenderer()
[all …]
DBitmapTest.java252 assertEquals(ColorSpace.get(ColorSpace.Named.SRGB), hardwareBitmap.getColorSpace()); in testWrapHardwareBufferWithSrgbColorSpace()
264 ColorSpace.get(ColorSpace.Named.DISPLAY_P3)); in testWrapHardwareBufferWithDisplayP3ColorSpace()
267 assertEquals(ColorSpace.get(ColorSpace.Named.DISPLAY_P3), hardwareBitmap.getColorSpace()); in testWrapHardwareBufferWithDisplayP3ColorSpace()
/frameworks/native/libs/ui/include_vndk/ui/
DColorSpace.h33 class ColorSpace {
57 ColorSpace(
74 ColorSpace(
89 ColorSpace(
105 ColorSpace(
123 ColorSpace(
139 ColorSpace(
147 ColorSpace() noexcept = delete;
233 static const ColorSpace sRGB();
234 static const ColorSpace linearSRGB();
[all …]
/frameworks/native/libs/ui/include/ui/
DColorSpace.h33 class ColorSpace {
57 ColorSpace(
74 ColorSpace(
89 ColorSpace(
105 ColorSpace(
123 ColorSpace(
139 ColorSpace(
147 ColorSpace() noexcept = delete;
233 static const ColorSpace sRGB();
234 static const ColorSpace linearSRGB();
[all …]
/frameworks/native/libs/ui/
DColorSpace.cpp27 static constexpr float rcpResponse(float x, const ColorSpace::TransferParameters& p) { in rcpResponse()
31 static constexpr float response(float x, const ColorSpace::TransferParameters& p) { in response()
35 static constexpr float rcpFullResponse(float x, const ColorSpace::TransferParameters& p) { in rcpFullResponse()
39 static constexpr float fullResponse(float x, const ColorSpace::TransferParameters& p) { in fullResponse()
57 static ColorSpace::transfer_function toOETF(const ColorSpace::TransferParameters& parameters) { in toOETF()
64 static ColorSpace::transfer_function toEOTF( const ColorSpace::TransferParameters& parameters) { in toEOTF()
71 static ColorSpace::transfer_function toOETF(float gamma) { in toOETF()
78 static ColorSpace::transfer_function toEOTF(float gamma) { in toEOTF()
100 ColorSpace::ColorSpace( in ColorSpace() function in android::ColorSpace
116 ColorSpace::ColorSpace( in ColorSpace() function in android::ColorSpace
[all …]
/frameworks/native/libs/ui/tests/
Dcolorspace_test.cpp41 ColorSpace sRGB("sRGB", sRGBToXYZ); in TEST_F()
54 ColorSpace sRGB("sRGB", sRGBToXYZ); in TEST_F()
73 ColorSpace sRGB("sRGB", sRGBToXYZ); in TEST_F()
86 ColorSpace sRGB1("sRGB", sRGBToXYZ); in TEST_F()
87 ColorSpace sRGB2( in TEST_F()
107 ColorSpace sRGB = ColorSpace::sRGB(); in TEST_F()
128 ColorSpace sRGB2( in TEST_F()
142 float3 c(ColorSpace::BT2020().rgbToXYZ(float3{0, 1, 0})); in TEST_F()
145 float3 sRGB(ColorSpace::sRGB().xyzToRGB(c)); in TEST_F()
149 float3 extendedSRGB(ColorSpace::linearExtendedSRGB().xyzToRGB(c)); in TEST_F()
[all …]
/frameworks/base/graphics/java/android/graphics/
DColor.java312 private final ColorSpace mColorSpace;
328 mColorSpace = ColorSpace.get(ColorSpace.Named.SRGB); in Color()
341 this(r, g, b, a, ColorSpace.get(ColorSpace.Named.SRGB)); in Color()
354 private Color(float r, float g, float b, float a, @NonNull ColorSpace colorSpace) { in Color()
365 private Color(@Size(min = 4, max = 5) float[] components, @NonNull ColorSpace colorSpace) { in Color()
376 public ColorSpace getColorSpace() { in getColorSpace()
385 public ColorSpace.Model getModel() { in getModel()
451 public Color convert(@NonNull ColorSpace colorSpace) { in convert()
452 ColorSpace.Connector connector = ColorSpace.connect(mColorSpace, colorSpace); in convert()
480 ColorSpace.connect(mColorSpace).transform(color); in toArgb()
[all …]
DColorSpace.java138 public abstract class ColorSpace { class
208 private static final ColorSpace[] sNamedColorSpaces = new ColorSpace[Named.values().length];
870 private ColorSpace( in ColorSpace() method in ColorSpace
1155 ColorSpace that = (ColorSpace) o; in equals()
1194 public static Connector connect(@NonNull ColorSpace source, @NonNull ColorSpace destination) { in connect()
1219 public static Connector connect(@NonNull ColorSpace source, @NonNull ColorSpace destination, in connect()
1250 public static Connector connect(@NonNull ColorSpace source) { in connect()
1272 public static Connector connect(@NonNull ColorSpace source, @NonNull RenderIntent intent) { in connect()
1301 public static ColorSpace adapt(@NonNull ColorSpace colorSpace, in adapt()
1330 public static ColorSpace adapt(@NonNull ColorSpace colorSpace, in adapt()
[all …]
DShader.java52 public Shader(ColorSpace colorSpace) { in Shader()
63 private final ColorSpace mColorSpace;
68 protected ColorSpace colorSpace() { in colorSpace()
209 public static ColorSpace detectColorSpace(@NonNull @ColorLong long[] colors) { in detectColorSpace()
213 final ColorSpace colorSpace = Color.colorSpace(colors[0]); in detectColorSpace()
DBitmap.java91 private ColorSpace mColorSpace;
754 @Nullable ColorSpace colorSpace) { in wrapHardwareBuffer()
760 colorSpace = ColorSpace.get(ColorSpace.Named.SRGB); in wrapHardwareBuffer()
771 @Nullable ColorSpace colorSpace) { in wrapHardwareBuffer()
929 ColorSpace cs = source.getColorSpace(); in createBitmap()
947 cs = ColorSpace.get(ColorSpace.Named.SRGB); in createBitmap()
1056 boolean hasAlpha, @NonNull ColorSpace colorSpace) { in createBitmap()
1081 ColorSpace.get(ColorSpace.Named.SRGB)); in createBitmap()
1111 @NonNull Config config, boolean hasAlpha, @NonNull ColorSpace colorSpace) { in createBitmap()
1201 ColorSpace sRGB = ColorSpace.get(ColorSpace.Named.SRGB); in createBitmap()
[all …]
DSweepGradient.java63 this(cx, cy, convertColors(colors), positions, ColorSpace.get(ColorSpace.Named.SRGB)); in SweepGradient()
93 @Nullable float[] positions, ColorSpace colorSpace) { in SweepGradient()
DRadialGradient.java68 ColorSpace.get(ColorSpace.Named.SRGB)); in RadialGradient()
100 @NonNull TileMode tileMode, ColorSpace colorSpace) { in RadialGradient()
DLinearGradient.java71 ColorSpace.get(ColorSpace.Named.SRGB)); in LinearGradient()
102 @NonNull ColorSpace colorSpace) { in LinearGradient()
DBitmapFactory.java172 public ColorSpace inPreferredColorSpace = null;
399 public ColorSpace outColorSpace;
456 if (!(opts.inPreferredColorSpace instanceof ColorSpace.Rgb)) { in validate()
460 if (((ColorSpace.Rgb) opts.inPreferredColorSpace).getTransferParameters() == null) { in validate()
/frameworks/native/libs/ui/tools/
Dlutgen.cpp31 ColorSpace gColorSpaceSrc = ColorSpace::DisplayP3();
32 ColorSpace gColorSpaceDst = ColorSpace::extendedSRGB();
69 static const ColorSpace findColorSpace(const string& name) { in findColorSpace()
70 if (name == "linearSRGB") return ColorSpace::linearSRGB(); in findColorSpace()
71 if (name == "extendedSRGB") return ColorSpace::extendedSRGB(); in findColorSpace()
72 if (name == "linearExtendedSRGB") return ColorSpace::linearExtendedSRGB(); in findColorSpace()
73 if (name == "NTSC") return ColorSpace::NTSC(); in findColorSpace()
74 if (name == "BT709") return ColorSpace::BT709(); in findColorSpace()
75 if (name == "BT2020") return ColorSpace::BT2020(); in findColorSpace()
76 if (name == "AdobeRGB") return ColorSpace::AdobeRGB(); in findColorSpace()
[all …]
/frameworks/base/services/core/java/com/android/server/display/color/
DDisplayWhiteBalanceTintController.java23 import android.graphics.ColorSpace;
54 ColorSpace.Rgb mDisplayColorSpaceRGB;
69 ColorSpace.Rgb displayColorSpaceRGB = getDisplayColorSpaceFromSurfaceControl(); in setUp()
158 mCurrentColorTemperatureXYZ = ColorSpace.cctToXyz(cct); in setMatrix()
161 ColorSpace.chromaticAdaptation(ColorSpace.Adaptation.BRADFORD, in setMatrix()
165 float[] result = ColorSpace.mul3x3(mChromaticAdaptationMatrix, in setMatrix()
167 result = ColorSpace.mul3x3(mDisplayColorSpaceRGB.getInverseTransform(), result); in setMatrix()
250 private ColorSpace.Rgb makeRgbColorSpaceFromXYZ(float[] redGreenBlueXYZ, float[] whiteXYZ) { in makeRgbColorSpaceFromXYZ()
251 return new ColorSpace.Rgb( in makeRgbColorSpaceFromXYZ()
259 private ColorSpace.Rgb getDisplayColorSpaceFromSurfaceControl() { in getDisplayColorSpaceFromSurfaceControl()
[all …]
/frameworks/base/core/java/android/app/
DSharedElementCallback.java21 import android.graphics.ColorSpace;
191 ColorSpace cs = bitmap.getColorSpace(); in onCaptureSharedElementSnapshot()
244 ColorSpace colorSpace = null; in onCreateSnapshotView()
246 if (colorSpaceId >= 0 && colorSpaceId < ColorSpace.Named.values().length) { in onCreateSnapshotView()
247 colorSpace = ColorSpace.get(ColorSpace.Named.values()[colorSpaceId]); in onCreateSnapshotView()
/frameworks/base/core/java/android/service/contentsuggestions/
DContentSuggestionsService.java33 import android.graphics.ColorSpace;
70 ColorSpace colorSpace = null;
71 if (colorSpaceId >= 0 && colorSpaceId < ColorSpace.Named.values().length) {
72 colorSpace = ColorSpace.get(ColorSpace.Named.values()[colorSpaceId]);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DMyLittleTextureView.java23 import android.graphics.ColorSpace;
83 ColorSpace.get(ColorSpace.Named.SRGB)); in onCreate()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotPersisterTestBase.java30 import android.graphics.ColorSpace;
133 ColorSpace.get(ColorSpace.Named.SRGB), ORIENTATION_PORTRAIT, TEST_INSETS, in build()
/frameworks/base/libs/hwui/utils/
DColor.cpp186 auto colorSpace = ColorSpace::sRGB(); in sRGBToLab()
192 float3 srcXYZ = ColorSpace::XYZ(float3{colorSpace.getWhitePoint(), 1}); in sRGBToLab()
198 auto colorSpace = ColorSpace::sRGB(); in LabToSRGB()
200 float3 dstXYZ = ColorSpace::XYZ(float3{colorSpace.getWhitePoint(), 1}); in LabToSRGB()
/frameworks/base/core/java/android/view/
DSurfaceControl.java37 import android.graphics.ColorSpace;
440 private final ColorSpace mColorSpace;
443 public ScreenshotGraphicBuffer(GraphicBuffer graphicBuffer, ColorSpace colorSpace, in ScreenshotGraphicBuffer()
466 ColorSpace colorSpace = ColorSpace.get(ColorSpace.Named.values()[namedColorSpace]); in createFromNative()
470 public ColorSpace getColorSpace() { in getColorSpace()
1721 public static ColorSpace[] getCompositionColorSpaces() { in getCompositionColorSpaces()
1723 ColorSpace srgb = ColorSpace.get(ColorSpace.Named.SRGB); in getCompositionColorSpaces()
1724 ColorSpace[] colorSpaces = { srgb, srgb }; in getCompositionColorSpaces()
1729 colorSpaces[i] = ColorSpace.get(ColorSpace.Named.DISPLAY_P3); in getCompositionColorSpaces()
1732 colorSpaces[i] = ColorSpace.get(ColorSpace.Named.EXTENDED_SRGB); in getCompositionColorSpaces()
/frameworks/av/media/libstagefright/include/media/stagefright/
DColorConverter.h51 struct ColorSpace { struct
79 ColorSpace mSrcColorSpace;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DCpuVideoTrackDecoder.java27 import androidx.media.filterfw.ColorSpace;
240 ColorSpace.convertArgb8888ToRgba8888(input, output, width, height); in convertImage()
243 ColorSpace.convertYuv420pToRgba8888(input, output, width, height); in convertImage()
/frameworks/base/core/java/android/hardware/display/
DDisplayManagerGlobal.java25 import android.graphics.ColorSpace;
86 private final ColorSpace mWideColorSpace;
95 ColorSpace.get( in DisplayManagerGlobal()
96 ColorSpace.Named.values()[mDm.getPreferredWideGamutColorSpaceId()]); in DisplayManagerGlobal()
552 public ColorSpace getPreferredWideGamutColorSpace() { in getPreferredWideGamutColorSpace()

12