Home
last modified time | relevance | path

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

12345

/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_types/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/base/graphics/java/android/graphics/
DParcelableColorSpace.java31 private final ColorSpace mColorSpace;
39 public static boolean isParcelable(@NonNull ColorSpace colorSpace) { in isParcelable()
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()
63 if (mColorSpace.getId() == ColorSpace.MIN_ID) { in ParcelableColorSpace()
64 if (!(mColorSpace instanceof ColorSpace.Rgb)) { in ParcelableColorSpace()
68 ColorSpace.Rgb rgb = (ColorSpace.Rgb) mColorSpace; in ParcelableColorSpace()
79 public @NonNull ColorSpace getColorSpace() { in getColorSpace()
[all …]
DColor.java314 private final ColorSpace mColorSpace;
330 mColorSpace = ColorSpace.get(ColorSpace.Named.SRGB); in Color()
343 this(r, g, b, a, ColorSpace.get(ColorSpace.Named.SRGB)); in Color()
356 private Color(float r, float g, float b, float a, @NonNull ColorSpace colorSpace) { in Color()
367 private Color(@Size(min = 4, max = 5) float[] components, @NonNull ColorSpace colorSpace) { in Color()
378 public ColorSpace getColorSpace() { in getColorSpace()
387 public ColorSpace.Model getModel() { in getModel()
453 public Color convert(@NonNull ColorSpace colorSpace) { in convert()
454 ColorSpace.Connector connector = ColorSpace.connect(mColorSpace, colorSpace); in convert()
482 ColorSpace.connect(mColorSpace).transform(color); in toArgb()
[all …]
DYuvImage.java73 @NonNull private ColorSpace mColorSpace;
95 private final static ColorSpace.Named[] sSupportedJpegRHdrColorSpaces = {
96 ColorSpace.Named.BT2020_HLG,
97 ColorSpace.Named.BT2020_PQ
103 private final static ColorSpace.Named[] sSupportedJpegRSdrColorSpaces = {
104 ColorSpace.Named.SRGB,
105 ColorSpace.Named.DISPLAY_P3
109 ColorSpace.Named[] colorSpaces = isHdr ? sSupportedJpegRHdrColorSpaces : in printSupportedJpegRColorSpaces()
113 sb.append(ColorSpace.get(colorSpaces[i]).getName()); in printSupportedJpegRColorSpaces()
122 ColorSpace.Named[] colorSpaces = isHdr ? sSupportedJpegRHdrColorSpaces : in isSupportedJpegRColorSpace()
[all …]
DColorSpace.java146 public abstract class ColorSpace { class
238 private static final HashMap<Integer, ColorSpace> sNamedColorSpaceMap =
941 /*package*/ ColorSpace( in ColorSpace() method in ColorSpace
1226 ColorSpace that = (ColorSpace) o; in equals()
1265 public static Connector connect(@NonNull ColorSpace source, @NonNull ColorSpace destination) { in connect()
1290 public static Connector connect(@NonNull ColorSpace source, @NonNull ColorSpace destination, in connect()
1321 public static Connector connect(@NonNull ColorSpace source) { in connect()
1343 public static Connector connect(@NonNull ColorSpace source, @NonNull RenderIntent intent) { in connect()
1372 public static ColorSpace adapt(@NonNull ColorSpace colorSpace, in adapt()
1401 public static ColorSpace adapt(@NonNull ColorSpace colorSpace, in adapt()
[all …]
DShader.java51 protected Shader(ColorSpace colorSpace) { in Shader()
62 private final ColorSpace mColorSpace;
67 protected ColorSpace colorSpace() { in colorSpace()
234 protected static ColorSpace detectColorSpace(@NonNull @ColorLong long[] colors) { in detectColorSpace()
238 final ColorSpace colorSpace = Color.colorSpace(colors[0]); in detectColorSpace()
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/common/
DBaseDrawingView.kt21 import android.graphics.ColorSpace
26 val sRGB = ColorSpace.get(ColorSpace.Named.SRGB)
27 val displayP3 = ColorSpace.get(ColorSpace.Named.DISPLAY_P3)
28 val scRGB = ColorSpace.get(ColorSpace.Named.EXTENDED_SRGB)
29 val bt2020 = ColorSpace.get(ColorSpace.Named.BT2020)
30 val bt2020_pq = ColorSpace.get(ColorSpace.Named.BT2020_PQ)
31 val lab = ColorSpace.get(ColorSpace.Named.CIE_LAB)
DHDRIndicator.kt22 import android.graphics.ColorSpace
31 val scRGB = ColorSpace.get(ColorSpace.Named.EXTENDED_SRGB)
/frameworks/base/core/java/com/android/internal/graphics/palette/
DLABPointProvider.java20 import android.graphics.ColorSpace;
30 final ColorSpace.Connector mRgbToLab;
31 final ColorSpace.Connector mLabToRgb;
34 mRgbToLab = ColorSpace.connect( in LABPointProvider()
35 ColorSpace.get(ColorSpace.Named.SRGB), in LABPointProvider()
36 ColorSpace.get(ColorSpace.Named.CIE_LAB)); in LABPointProvider()
37 mLabToRgb = ColorSpace.connect(ColorSpace.get(ColorSpace.Named.CIE_LAB), in LABPointProvider()
38 ColorSpace.get(ColorSpace.Named.SRGB)); in LABPointProvider()
/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()
130 ColorSpace sRGB2( in TEST_F()
145 float3 c(ColorSpace::BT2020().rgbToXYZ(float3{0, 1, 0})); in TEST_F()
148 float3 sRGB(ColorSpace::sRGB().xyzToRGB(c)); in TEST_F()
152 float3 extendedSRGB(ColorSpace::linearExtendedSRGB().xyzToRGB(c)); in TEST_F()
[all …]
/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/core/java/android/hardware/camera2/params/
DColorSpaceProfiles.java21 import android.graphics.ColorSpace;
51 private final Map<ColorSpace.Named, Map<Integer, Set<Long>>> mProfileMap = new ArrayMap<>();
86 ColorSpace.Named namedColorSpace = ColorSpace.Named.values()[colorSpace]; in ColorSpaceProfiles()
117 for (ColorSpace.Named value : ColorSpace.Named.values()) { in checkProfileValue()
133 public @NonNull Map<ColorSpace.Named, Map<Integer, Set<Long>>> getProfileMap() { in getProfileMap()
149 public @NonNull Set<ColorSpace.Named> getSupportedColorSpaces( in getSupportedColorSpaces()
151 ArraySet<ColorSpace.Named> supportedColorSpaceProfiles = new ArraySet<>(); in getSupportedColorSpaces()
152 for (ColorSpace.Named colorSpace : mProfileMap.keySet()) { in getSupportedColorSpaces()
176 @NonNull ColorSpace.Named colorSpace) { in getSupportedImageFormatsForColorSpace()
197 public @NonNull Set<Long> getSupportedDynamicRangeProfiles(@NonNull ColorSpace.Named colorSpace, in getSupportedDynamicRangeProfiles()
[all …]
DExtensionSessionConfiguration.java22 import android.graphics.ColorSpace;
140 public void setColorSpace(@NonNull ColorSpace.Named colorSpace) { in setColorSpace()
172 public @Nullable ColorSpace getColorSpace() { in getColorSpace()
174 return ColorSpace.get(ColorSpace.Named.values()[mColorSpace]); in getColorSpace()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DColorBitmapActivity.java23 import android.graphics.ColorSpace;
68 private ColorSpace mColorSpace = ColorSpace.get(ColorSpace.Named.SRGB);
101 ColorSpace colorSpace = ColorSpace.get(ColorSpace.Named.SRGB); in authorGradientBuffer()
126 mColorSpace = ColorSpace.get(ColorSpace.Named.SRGB); in onCreate()
215 private ColorSpace getFromName(String name) { in getFromName()
217 return ColorSpace.get(ColorSpace.Named.SRGB); in getFromName()
219 return ColorSpace.get(ColorSpace.Named.BT2020_HLG); in getFromName()
221 return ColorSpace.get(ColorSpace.Named.BT2020_PQ); in getFromName()
230 getGradientBuffer().get(), ColorSpace.get(ColorSpace.Named.SRGB)); in populateBuffers()
DHardwareBufferRendererActivity.java24 import android.graphics.ColorSpace;
25 import android.graphics.ColorSpace.Named;
73 ColorSpace colorSpace = ColorSpace.get(Named.SRGB); in onCreate()
/frameworks/base/core/java/android/window/
DTaskSnapshot.java24 import android.graphics.ColorSpace;
76 private final ColorSpace mColorSpace;
95 @NonNull ColorSpace colorSpace, int orientation, int rotation, Point taskSize, in TaskSnapshot()
105 ? ColorSpace.get(ColorSpace.Named.SRGB) : colorSpace; in TaskSnapshot()
125 mColorSpace = colorSpaceId >= 0 && colorSpaceId < ColorSpace.Named.values().length
126 ? ColorSpace.get(ColorSpace.Named.values()[colorSpaceId])
127 : ColorSpace.get(ColorSpace.Named.SRGB);
184 public ColorSpace getColorSpace() {
360 private ColorSpace mColorSpace;
394 public Builder setColorSpace(ColorSpace colorSpace) {
/frameworks/native/libs/shaders/
Dshaders.cpp248 ColorSpace toColorSpace(ui::Dataspace dataspace) { in toColorSpace()
251 return ColorSpace::sRGB(); in toColorSpace()
253 return ColorSpace::DisplayP3(); in toColorSpace()
256 return ColorSpace::BT2020(); in toColorSpace()
258 return ColorSpace::AdobeRGB(); in toColorSpace()
270 return ColorSpace::sRGB(); in toColorSpace()
286 .value = buildUniformValue<mat3>(ColorSpace::linearExtendedSRGB().getRGBtoXYZ())}); in buildLinearEffectUniforms()
293 mat4(ColorSpace::linearExtendedSRGB().getXYZtoRGB()) * in buildLinearEffectUniforms()
/frameworks/native/libs/shaders/tests/
Dshaders_test.cpp66 ColorSpace::linearExtendedSRGB().getRGBtoXYZ())))); in TEST_F()
70 ColorSpace::linearSRGB().getXYZtoRGB())))); in TEST_F()
81 ColorSpace inputColorSpace = ColorSpace::sRGB(); in TEST_F()
89 ColorSpace::linearExtendedSRGB().getRGBtoXYZ())))); in TEST_F()
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DCanvasPerfTest.java26 import android.graphics.ColorSpace;
116 decoder.setTargetColorSpace(ColorSpace.get(ColorSpace.Named.SRGB)); in testCreateScaledSrgbBitmap()
119 assertEquals(source.getColorSpace().getId(), ColorSpace.Named.SRGB.ordinal()); in testCreateScaledSrgbBitmap()
137 decoder.setTargetColorSpace(ColorSpace.get(ColorSpace.Named.DISPLAY_P3)); in testCreateScaledP3Bitmap()
140 assertEquals(source.getColorSpace().getId(), ColorSpace.Named.DISPLAY_P3.ordinal()); in testCreateScaledP3Bitmap()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/scroll/
DImageTile.java18 import static android.graphics.ColorSpace.Named.SRGB;
24 import android.graphics.ColorSpace;
46 private static final ColorSpace COLOR_SPACE = ColorSpace.get(SRGB);
/frameworks/base/core/java/android/app/
DSharedElementCallback.java21 import android.graphics.ColorSpace;
190 ColorSpace cs = bitmap.getColorSpace(); in onCaptureSharedElementSnapshot()
243 ColorSpace colorSpace = null; in onCreateSnapshotView()
245 if (colorSpaceId >= 0 && colorSpaceId < ColorSpace.Named.values().length) { in onCreateSnapshotView()
246 colorSpace = ColorSpace.get(ColorSpace.Named.values()[colorSpaceId]); in onCreateSnapshotView()
/frameworks/base/core/java/android/service/contentsuggestions/
DContentSuggestionsService.java33 import android.graphics.ColorSpace;
78 ColorSpace colorSpace = null;
79 if (colorSpaceId >= 0 && colorSpaceId < ColorSpace.Named.values().length) {
80 colorSpace = ColorSpace.get(ColorSpace.Named.values()[colorSpaceId]);
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
DWindowThumbnail.java19 import android.graphics.ColorSpace;
48 t.setColorSpace(windowThumbnail.mSurfaceControl, ColorSpace.get(ColorSpace.Named.SRGB)); in createAndAttach()

12345