Searched refs:hsv (Results 1 – 8 of 8) sorted by relevance
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
D | HsvColorComparator.java | 30 float[] hsv = new float[3]; in compare() local 31 Color.colorToHSV(lhs, hsv); in compare() 32 float hue1 = hsv[0]; in compare() 33 float sat1 = hsv[1]; in compare() 34 float val1 = hsv[2]; in compare()
|
D | ColorStateDrawable.java | 62 float[] hsv = new float[3]; in getPressedColor() local 63 Color.colorToHSV(color, hsv); in getPressedColor() 64 hsv[2] = hsv[2] * PRESSED_STATE_MULTIPLIER; in getPressedColor() 65 return Color.HSVToColor(hsv); in getPressedColor()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Color.java | 319 public static void RGBToHSV(int red, int green, int blue, float hsv[]) { in RGBToHSV() argument 320 if (hsv.length < 3) { in RGBToHSV() 323 nativeRGBToHSV(red, green, blue, hsv); in RGBToHSV() 334 public static void colorToHSV(int color, float hsv[]) { in colorToHSV() argument 335 RGBToHSV((color >> 16) & 0xFF, (color >> 8) & 0xFF, color & 0xFF, hsv); in colorToHSV() local 347 public static int HSVToColor(float hsv[]) { in HSVToColor() argument 348 return HSVToColor(0xFF, hsv); in HSVToColor() 362 public static int HSVToColor(int alpha, float hsv[]) { in HSVToColor() argument 363 if (hsv.length < 3) { in HSVToColor() 366 return nativeHSVToColor(alpha, hsv); in HSVToColor() [all …]
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
D | shadows.rs | 98 static uchar4 hsv2rgb(ushort3 hsv) 110 short cv = hsv.x; 111 short cs = hsv.y; 112 short ch = hsv.z; 187 ushort3 hsv = rgb2hsv(*in); 188 double v = (fastevalPoly(poly,5,hsv.x/4080.)*4080); 190 hsv.x = (unsigned short) ((v>0)?v:0); 191 *out = hsv2rgb(hsv);
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
D | shadows.rs | 98 static uchar4 hsv2rgb(ushort3 hsv) 110 short cv = hsv.x; 111 short cs = hsv.y; 112 short ch = hsv.z; 187 ushort3 hsv = rgb2hsv(*in); 188 double v = (fastevalPoly(poly,5,hsv.x/4080.)*4080); 190 hsv.x = (unsigned short) ((v>0)?v:0); 191 *out = hsv2rgb(hsv);
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
D | shadows.rs | 98 static uchar4 hsv2rgb(ushort3 hsv) 110 short cv = hsv.x; 111 short cs = hsv.y; 112 short ch = hsv.z; 187 ushort3 hsv = rgb2hsv(*in); 188 double v = (fastevalPoly(poly,5,hsv.x/4080.)*4080); 190 hsv.x = (unsigned short) ((v>0)?v:0); 191 *out = hsv2rgb(hsv);
|
/frameworks/base/core/jni/android/graphics/ |
D | Shader.cpp | 29 SkScalar hsv[3]; in Color_RGBToHSV() local 30 SkRGBToHSV(red, green, blue, hsv); in Color_RGBToHSV() 35 values[i] = SkScalarToFloat(hsv[i]); in Color_RGBToHSV() 43 SkScalar hsv[3]; in Color_HSVToColor() local 46 hsv[i] = SkFloatToScalar(values[i]); in Color_HSVToColor() 49 return SkHSVToColor(alpha, hsv); in Color_HSVToColor()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | DessertCaseView.java | 220 float[] hsv = new float[] { 0, 1f, .85f }; field in DessertCaseView 224 hsv[0] = irand(0,COLORS) * (360f/COLORS); in random_color() 225 return Color.HSVToColor(hsv); in random_color()
|