Searched defs:rgb (Results 1 - 14 of 14) sorted by relevance

/frameworks/native/libs/ui/tools/
H A Dlutgen.cpp169 half3 rgb = half3(*data++); local
171 const uint16_t r = rgb.r.getBits();
172 const uint16_t g = rgb.g.getBits();
173 const uint16_t b = rgb.b.getBits();
/frameworks/base/core/java/com/android/internal/app/
H A DPlatLogoActivity.java75 public float lum(int rgb) { argument
76 return ((Color.red(rgb) * 299f) + (Color.green(rgb) * 587f) + (Color.blue(rgb) * 114f)) / 1000f;
/frameworks/native/libs/math/include/math/
H A Dvec4.h56 TVec3<T> rgb; member in union:android::details::TVec4::__anon1657
/frameworks/native/opengl/libagl/
H A Dmipmap.cpp73 uint32_t rgb = (grb & 0xFFFF) | (grb >> 16); local
74 dst[x + y*stride] = rgb;
H A Ddxt.cpp72 * r4r3r2r1 r0g5g4g3 g2g1g0b4 b3b2b1b0 rgb
73 * r4r3r2 r1r0g5g4 g3g2g1g0 b4b3b2b1 b0 0 0 0 rgb << 3
78 * r4r3r2r1 r0------ -------- -------- -------- -------- (rgb << 8) & 0xf80000
79 * r4r3r2 -------- -------- -------- -------- (rgb << 3) & 0x070000
80 * g5g4g3g2 g1g0---- -------- -------- (rgb << 5) & 0x00fc00
81 * g5g4 -------- -------- (rgb >> 1) & 0x000300
82 * b4b3b2b1 b0------ (rgb << 3) & 0x0000f8
83 * b4b3b2 (rgb >> 2) & 0x000007
85 * Operation count: 5 <<, 6 &, 5 | (n.b. rgb >> 3 is used twice)
87 inline static int rgb565To888(int rgb) argument
[all...]
/frameworks/native/opengl/tests/gl_perf/
H A Dfill_common.cpp230 static uint32_t rgb(uint32_t r, uint32_t g, uint32_t b) function
243 m[y*1024 + x] = rgb(x, (((x+y) & 0xff) == 0x7f) * 0xff, y);
255 m[y*16 + x] = rgb(x << 4, (((x+y) & 0xf) == 0x7) * 0xff, y << 4);
/frameworks/base/core/java/com/android/internal/graphics/palette/
H A DColorCutQuantizer.java451 final int rgb = approximateToRgb888(color565);
452 ColorUtils.colorToHSL(rgb, mTempHsl);
453 return shouldIgnoreColor(rgb, mTempHsl);
460 private boolean shouldIgnoreColor(int rgb, float[] hsl) { argument
463 if (!mFilters[i].isAllowed(rgb, hsl)) {
495 return Color.rgb(modifyWordWidth(r, QUANTIZE_WORD_WIDTH, 8),
H A DPalette.java469 mRgb = Color.rgb(red, green, blue);
962 * @param rgb the color in RGB888.
969 boolean isAllowed(int rgb, float[] hsl); argument
981 public boolean isAllowed(int rgb, float[] hsl) {
/frameworks/base/graphics/java/android/graphics/
H A DColor.java84 * {@link #argb(int, int, int, int)} and {@link #rgb(int, int, int)}. The second
88 * {@link #rgb(float, float, float)}.</p>
196 * equivalent of {@link #rgb(int, int, int)} and {@link #argb(int, int, int, int)}
1283 public static int rgb( method in class:Color
1301 public static int rgb(float red, float green, float blue) { method in class:Color
H A DColorSpace.java1328 ColorSpace.Rgb rgb = (ColorSpace.Rgb) colorSpace;
1329 if (compare(rgb.mWhitePoint, whitePoint)) return colorSpace;
1334 xyYToXyz(rgb.getWhitePoint()), xyz);
1335 float[] transform = mul3x3(adaptationTransform, rgb.mTransform);
1337 return new ColorSpace.Rgb(rgb, transform, whitePoint);
1401 ColorSpace.Rgb rgb = (ColorSpace.Rgb) adapt(colorSpace, ILLUMINANT_D50_XYZ);
1402 if (compare(toXYZD50, rgb.mTransform) &&
1403 compare(function, rgb.mTransferParameters)) {
3029 Rgb rgb = (Rgb) o;
3031 if (Float.compare(rgb
3604 transform(@onNull @izemin = 3) float[] rgb) argument
4064 getPrimaries(@onNull Rgb rgb, @NonNull @Size(6) float[] primaries, boolean asUcs) argument
4452 Point(@onNull ColorSpace colorSpace, @NonNull @Size(3) float[] rgb, @ColorInt int color) argument
[all...]
/frameworks/support/compat/src/androidTest/java/androidx/core/graphics/
H A DColorUtilsTest.java94 Color rgb = Color.valueOf(0.0f, 0.5f, 0.0f, 0.5f, ColorSpace.get(SRGB));
96 ColorUtils.compositeColors(rgb, lab);
145 verifyColorToHSL(entry.rgb, entry.hsl);
152 verifyHSLToColor(entry.hsl, entry.rgb);
161 ColorUtils.colorToHSL(entry.rgb, hsl);
172 verifyColorToXYZ(entry.rgb, entry.xyz);
179 verifyColorToLAB(entry.rgb, entry.lab);
193 verifyXYZToColor(entry.xyz, entry.rgb);
200 verifyLABToColor(entry.lab, entry.rgb);
207 verifyMinAlpha("Black title", entry.rgb, entr
317 final int rgb; field in class:ColorUtilsTest.TestEntry
327 TestEntry(int rgb) argument
[all...]
/frameworks/support/palette/src/main/java/androidx/palette/graphics/
H A DColorCutQuantizer.java434 final int rgb = approximateToRgb888(color565);
435 ColorUtils.colorToHSL(rgb, mTempHsl);
436 return shouldIgnoreColor(rgb, mTempHsl);
443 private boolean shouldIgnoreColor(int rgb, float[] hsl) { argument
446 if (!mFilters[i].isAllowed(rgb, hsl)) {
478 return Color.rgb(modifyWordWidth(r, QUANTIZE_WORD_WIDTH, 8),
H A DPalette.java466 mRgb = Color.rgb(red, green, blue);
947 * @param rgb the color in RGB888.
954 boolean isAllowed(@ColorInt int rgb, @NonNull float[] hsl); argument
965 public boolean isAllowed(int rgb, float[] hsl) {
/frameworks/native/opengl/tests/hwc/
H A DhwcTestLib.cpp797 bool rgb; member in struct:attrib
870 if (fromAttrib->rgb && toAttrib->yuv) {
907 if (fromAttrib->yuv && toAttrib->rgb) {

Completed in 220 milliseconds