Searched defs:rgb (Results 1 - 13 of 13) 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/native/libs/math/include/math/
H A Dvec4.h56 TVec3<T> rgb; member in union:android::details::TVec4::__anon1705
/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/support/core-utils/tests/java/android/support/v4/graphics/
H A DColorUtilsTest.java88 verifyColorToHSL(entry.rgb, entry.hsl);
95 verifyHSLToColor(entry.hsl, entry.rgb);
104 ColorUtils.colorToHSL(entry.rgb, hsl);
115 verifyColorToXYZ(entry.rgb, entry.xyz);
122 verifyColorToLAB(entry.rgb, entry.lab);
136 verifyXYZToColor(entry.xyz, entry.rgb);
143 verifyLABToColor(entry.lab, entry.rgb);
150 verifyMinAlpha("Black title", entry.rgb, entry.blackMinAlpha30,
151 ColorUtils.calculateMinimumAlpha(Color.BLACK, entry.rgb, 3.0f));
152 verifyMinAlpha("Black body", entry.rgb, entr
260 final int rgb; field in class:ColorUtilsTest.TestEntry
270 TestEntry(int rgb) argument
[all...]
/frameworks/base/core/java/com/android/internal/graphics/palette/
H A DColorCutQuantizer.java449 final int rgb = approximateToRgb888(color565);
450 ColorUtils.colorToHSL(rgb, mTempHsl);
451 return shouldIgnoreColor(rgb, mTempHsl);
458 private boolean shouldIgnoreColor(int rgb, float[] hsl) { argument
461 if (!mFilters[i].isAllowed(rgb, hsl)) {
493 return Color.rgb(modifyWordWidth(r, QUANTIZE_WORD_WIDTH, 8),
H A DPalette.java469 mRgb = Color.rgb(red, green, blue);
946 * @param rgb the color in RGB888.
953 boolean isAllowed(int rgb, float[] hsl); argument
965 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/v7/palette/src/main/java/android/support/v7/graphics/
H A DColorCutQuantizer.java431 final int rgb = approximateToRgb888(color565);
432 ColorUtils.colorToHSL(rgb, mTempHsl);
433 return shouldIgnoreColor(rgb, mTempHsl);
440 private boolean shouldIgnoreColor(int rgb, float[] hsl) { argument
443 if (!mFilters[i].isAllowed(rgb, hsl)) {
475 return Color.rgb(modifyWordWidth(r, QUANTIZE_WORD_WIDTH, 8),
H A DPalette.java464 mRgb = Color.rgb(red, green, blue);
939 * @param rgb the color in RGB888.
946 boolean isAllowed(int rgb, float[] hsl); argument
957 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 5100 milliseconds