/packages/apps/Gallery2/jni/filters/ |
highlight.c | 28 unsigned short * hsv = (unsigned short *)malloc(3*sizeof(short)); local 32 rgb2hsv(rgb,i,hsv,0); 33 int v = clampMax(hsv[0],4080); 34 hsv[0] = (unsigned short) clampMax(lum[((255*v)/4080)]*4080,4080); 35 hsv2rgb(hsv,0, rgb,i); 38 free(hsv);
|
shadows.c | 41 unsigned short * hsv = (unsigned short *)malloc(3*sizeof(short)); local 45 rgb2hsv(rgb,i,hsv,0); 47 double v = (fastevalPoly(poly,5,hsv[0]/4080.)*4080); 49 hsv[0] = (unsigned short) ((v>0)?v:0); 51 hsv2rgb(hsv,0, rgb,i); 55 free(hsv);
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
HsvColorComparator.java | 30 float[] hsv = new float[3]; local 31 Color.colorToHSV(lhs, hsv); 32 float hue1 = hsv[0]; 33 float sat1 = hsv[1]; 34 float val1 = hsv[2];
|
ColorStateDrawable.java | 62 float[] hsv = new float[3]; local 63 Color.colorToHSV(color, hsv); 64 hsv[2] = hsv[2] * PRESSED_STATE_MULTIPLIER; 65 return Color.HSVToColor(hsv);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
ColorTest.java | 45 //abnormal case: hsv length less than 3 47 float[] hsv = new float[2]; local 48 Color.HSVToColor(hsv); 54 float[] hsv = new float[3]; local 55 Color.colorToHSV(Color.RED, hsv); 56 assertEquals(Color.RED, Color.HSVToColor(hsv)); 60 //abnormal case: hsv length less than 3 62 float[] hsv = new float[2]; local 63 Color.HSVToColor(hsv); 69 float[] hsv = new float[3] local 120 float[] hsv = new float[2]; local 127 float[] hsv = new float[3]; local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterBwFilter.java | 54 float[] hsv = new float[] { local 57 int rgb = Color.HSVToColor(hsv);
|
/external/chromium_org/third_party/skia/gm/ |
ovals.cpp | 133 SkScalar hsv[3]; local 134 hsv[0] = rand->nextRangeF(0.0f, 360.0f); 135 hsv[1] = rand->nextRangeF(0.75f, 1.0f); 136 hsv[2] = rand->nextRangeF(0.75f, 1.0f); 138 return SkHSVToColor(hsv);
|
roundrects.cpp | 134 SkScalar hsv[3]; local 135 hsv[0] = rand->nextRangeF(0.0f, 360.0f); 136 hsv[1] = rand->nextRangeF(0.75f, 1.0f); 137 hsv[2] = rand->nextRangeF(0.75f, 1.0f); 139 return SkHSVToColor(hsv);
|
/external/skia/gm/ |
ovals.cpp | 133 SkScalar hsv[3]; local 134 hsv[0] = rand->nextRangeF(0.0f, 360.0f); 135 hsv[1] = rand->nextRangeF(0.75f, 1.0f); 136 hsv[2] = rand->nextRangeF(0.75f, 1.0f); 138 return SkHSVToColor(hsv);
|
roundrects.cpp | 134 SkScalar hsv[3]; local 135 hsv[0] = rand->nextRangeF(0.0f, 360.0f); 136 hsv[1] = rand->nextRangeF(0.75f, 1.0f); 137 hsv[2] = rand->nextRangeF(0.75f, 1.0f); 139 return SkHSVToColor(hsv);
|
/external/chromium_org/third_party/skia/include/core/ |
SkColor.h | 96 /** Convert RGB components to HSV. 97 hsv[0] is Hue [0 .. 360) 98 hsv[1] is Saturation [0...1] 99 hsv[2] is Value [0...1] 103 @param hsv 3 element array which holds the resulting HSV components. 105 SK_API void SkRGBToHSV(U8CPU red, U8CPU green, U8CPU blue, SkScalar hsv[3]); 107 /** Convert the argb color to its HSV components. 108 hsv[0] is Hue [0 .. 360) 109 hsv[1] is Saturation [0...1 116 SkRGBToHSV(SkColorGetR(color), SkColorGetG(color), SkColorGetB(color), hsv); local [all...] |
/external/skia/include/core/ |
SkColor.h | 96 /** Convert RGB components to HSV. 97 hsv[0] is Hue [0 .. 360) 98 hsv[1] is Saturation [0...1] 99 hsv[2] is Value [0...1] 103 @param hsv 3 element array which holds the resulting HSV components. 105 SK_API void SkRGBToHSV(U8CPU red, U8CPU green, U8CPU blue, SkScalar hsv[3]); 107 /** Convert the argb color to its HSV components. 108 hsv[0] is Hue [0 .. 360) 109 hsv[1] is Saturation [0...1 116 SkRGBToHSV(SkColorGetR(color), SkColorGetG(color), SkColorGetB(color), hsv); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
ColorGridDialog.java | 43 float[] hsv = new float[3]; local 47 hsv[0] = (k % 5) * 360 / 5; 48 hsv[1] = (k / 5) / 3.0f; 49 hsv[2] = (k < 5) ? (k / 4f) : 1; 50 final int c = (Color.HSVToColor(hsv) & 0x00FFFFFF) | 0xAA000000;
|
ColorPickerDialog.java | 125 float[] hsv = (float[]) v.getTag(); local 130 cwv.setColor(hsv); 131 cvv.setColor(hsv); 132 csv.setColor(hsv); 146 private void setButtonColor(ToggleButton button, float[] hsv) { 150 int color = Color.HSVToColor(hsv); 153 (hsv[0] + 180) % 360, 154 hsv[1], 155 (hsv[2] > .5f) ? .1f : .9f 158 button.setTag(hsv); [all...] |
ColorSVRectView.java | 98 float[] hsv = new float[3]; local 99 hsv[0] = mHSVO[0]; 103 hsv[1] = sat; 104 hsv[2] = val; 105 buff[i] = Color.HSVToColor(hsv); 220 public void notifyColorListeners(float[] hsv) { 222 l.setColor(hsv);
|
ColorValueView.java | 133 float[] hsv = new float[] { local 135 int color1 = Color.HSVToColor(hsv); 136 hsv[2] = 1; 137 int color2 = Color.HSVToColor(hsv); 167 public void notifyColorListeners(float[] hsv) { 169 l.setColor(hsv);
|
ColorRectView.java | 138 float[] hsv = new float[3]; local 140 Color.colorToHSV(mColors[i], hsv); 141 hsv[2] = mHSVO[2]; 142 wheelColor[i] = Color.HSVToColor(hsv); 212 public void notifyColorListeners(float[] hsv) { 214 l.setColor(hsv);
|
/frameworks/base/core/jni/android/graphics/ |
Shader.cpp | 29 SkScalar hsv[3]; local 30 SkRGBToHSV(red, green, blue, hsv); 35 values[i] = SkScalarToFloat(hsv[i]); 43 SkScalar* hsv = autoHSV.ptr(); local 48 return static_cast<jint>(SkHSVToColor(alpha, hsv));
|
/external/chromium_org/ui/views/color_chooser/ |
color_chooser_view.cc | 174 SkScalar hsv[3]; local 176 hsv[1] = SK_Scalar1; 177 hsv[2] = SK_Scalar1; 184 hsv[0] = SkScalarDiv(SkScalarMul(SkIntToScalar(360), 189 SkHSVToColor(hsv)); 305 SkScalar hsv[3] = { hue_, SK_Scalar1, SK_Scalar1 }; local 308 SkHSVToColor(255, hsv), true /* is_horizontal */, canvas);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
PreloadIconDrawable.java | 239 float[] hsv = new float[3]; local 240 Color.colorToHSV(mIndicatorColor, hsv); 241 if (hsv[1] < MIN_SATUNATION) { 245 hsv[2] = Math.max(MIN_LIGHTNESS, hsv[2]); 246 mIndicatorColor = Color.HSVToColor(hsv);
|
Utilities.java | 415 // This is an out-param, for getting the hsv values for an rgb 416 float[] hsv = new float[3]; local 434 Color.colorToHSV(rgb, hsv); 436 int hue = (int) hsv[0]; 441 float score = hsv[1] * hsv[2]; 459 Color.colorToHSV(rgb, hsv); 460 int hue = (int) hsv[0]; 462 float s = hsv[1]; 463 float v = hsv[2] [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
DessertCaseView.java | 220 float[] hsv = new float[] { 0, 1f, .85f }; field in class:DessertCaseView 224 hsv[0] = irand(0,COLORS) * (360f/COLORS); 225 return Color.HSVToColor(hsv);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/ |
LLand.java | 219 final float hsv[] = {0, 0, 0}; field in class:LLand 305 hsv[0] = 175; 306 hsv[1] = 0.25f; 307 hsv[2] = 1 * s.z; 308 s.setBackgroundColor(Color.HSVToColor(hsv)); [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
Utils.java | 834 float[] hsv = new float[3]; local 835 Color.colorToHSV(color, hsv); 836 hsv[1] = Math.min(hsv[1] * SATURATION_ADJUST, 1.0f); 837 hsv[2] = hsv[2] * INTENSITY_ADJUST; 838 return Color.HSVToColor(hsv); [all...] |
EventInfoFragment.java | 553 float[] hsv = new float[3]; local 554 Color.colorToHSV(mColors[i], hsv); 556 Log.d("Color", "H:" + hsv[0] + ",S:" + hsv[1] + ",V:" + hsv[2]); [all...] |