Home
last modified time | relevance | path

Searched refs:CamUtils (Results 1 – 10 of 10) sorted by relevance

/aosp14/frameworks/base/core/tests/coretests/src/android/colormodel/
H A DCamTest.java47 assertEquals(18.418f, CamUtils.yFromLstar(50.0f), 0.001); in yFromMidgray()
52 assertEquals(0.0f, CamUtils.yFromLstar(0.0f), 0.001); in yFromBlack()
57 assertEquals(100.0f, CamUtils.yFromLstar(100.0f), 0.001); in yFromWhite()
119 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getRedFromGamutMap()
127 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getGreenFromGamutMap()
135 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getBlueFromGamutMap()
143 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getWhiteFromGamutMap()
151 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getBlackFromGamutMap()
159 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getMidgrayFromGamutMap()
178 assertEquals(70.029f, CamUtils.lstarFromInt(color), 0.001f); in gamutMapArbitraryHCL()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/graphics/cam/
H A DCamUtils.java48 public final class CamUtils { class
49 private CamUtils() { in CamUtils() method in CamUtils
216 return ColorUtils.XYZToColor(xT * CamUtils.WHITE_POINT_D65[0], in intFromLstar()
217 yT * CamUtils.WHITE_POINT_D65[1], zT * CamUtils.WHITE_POINT_D65[2]); in intFromLstar()
H A DFrame.java58 CamUtils.WHITE_POINT_D65,
59 (float) (200.0f / Math.PI * CamUtils.yFromLstar(50.0f) / 100.f), 50.0f, 2.0f,
139 float[][] matrix = CamUtils.XYZ_TO_CAM16RGB; in make()
178 float n = (float) CamUtils.yFromLstar(backgroundLstar) / whitepoint[1]; in make()
H A DHctSolver.java353 return CamUtils.signum(component) * 400.0 * af / (af + 27.13); in chromaticAdaptation()
587 return CamUtils.argbFromLinrgbComponents((left[0] + right[0]) / 2, in bisectToLimit()
595 return CamUtils.signum(adapted) * Math.pow(base, 1.0 / 0.42); in inverseChromaticAdaptation()
662 return CamUtils.argbFromLinrgbComponents(linrgbR, linrgbG, linrgbB); in findResultByJ()
683 return CamUtils.argbFromLstar(lstar); in solveToInt()
687 double y = CamUtils.yFromLstar(lstar); in solveToInt()
H A DCam.java154 float[] xyz = CamUtils.xyzFromInt(argb); in fromIntInFrame()
157 float[][] matrix = CamUtils.XYZ_TO_CAM16RGB; in fromIntInFrame()
323 float[][] matrix = CamUtils.CAM16RGB_TO_XYZ; in viewed()
397 return CamUtils.intFromLstar(lstar); in getInt()
450 return CamUtils.intFromLstar(lstar); in getInt()
477 float clippedLstar = CamUtils.lstarFromInt(clipped); in findCamByJ()
/aosp14/frameworks/base/packages/SystemUI/monet/src/com/android/systemui/monet/
H A DColorScheme.kt24 import com.android.internal.graphics.cam.CamUtils
343 baseColor = ColorUtils.CAMToColor(h, c, CamUtils.lstarFromInt(seedColor))
453 get() = 1000f - CamUtils.lstarFromInt(seed) * 10f
/aosp14/frameworks/base/boot/
H A Dboot-image-profile.txt21658 HSPLcom/android/internal/graphics/cam/CamUtils;-><clinit>()V
21659 HSPLcom/android/internal/graphics/cam/CamUtils;->linearized(I)F
21660 HSPLcom/android/internal/graphics/cam/CamUtils;->xyzFromInt(I)[F
33592 Lcom/android/internal/graphics/cam/CamUtils;
H A Dpreloaded-classes10793 com.android.internal.graphics.cam.CamUtils
/aosp14/frameworks/base/config/
H A Dpreloaded-classes10824 com.android.internal.graphics.cam.CamUtils
H A Dboot-image-profile.txt21722 HSPLcom/android/internal/graphics/cam/CamUtils;-><clinit>()V
21723 HSPLcom/android/internal/graphics/cam/CamUtils;->linearized(I)F
21724 HSPLcom/android/internal/graphics/cam/CamUtils;->xyzFromInt(I)[F
43726 Lcom/android/internal/graphics/cam/CamUtils;