/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
RGBListener.java | 20 void setColor(int hsv);
|
ColorPickerDialog.java | 90 float[] hsv = (float[]) v.getTag(); local 95 cwv.setColor(hsv); 96 cvv.setColor(hsv); 97 csv.setColor(hsv); 108 private void setButtonColor(ToggleButton button, float[] hsv) { 112 int color = Color.HSVToColor(hsv); 115 (hsv[0] + 180) % 360, 116 hsv[1], 117 (hsv[2] > .5f) ? .1f : .9f 120 button.setTag(hsv); [all...] |
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;
|
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);
|
ColorValueView.java | 131 float[] hsv = new float[] { local 133 int color1 = Color.HSVToColor(hsv); 134 hsv[2] = 1; 135 int color2 = Color.HSVToColor(hsv); 167 public void notifyColorListeners(float[] hsv) { 169 l.setColor(hsv);
|
/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);
|
hsv.c | 32 void rgb2hsv( unsigned char *rgb,int rgbOff,unsigned short *hsv,int hsvOff) 76 hsv[hsvOff+0] = rv; 77 hsv[hsvOff+1] = rs; 78 hsv[hsvOff+2] = rh; 81 void hsv2rgb(unsigned short *hsv,int hsvOff, unsigned char *rgb,int rgbOff) 93 short cv = hsv[hsvOff+0]; 94 short cs = hsv[hsvOff+1]; 95 short ch = hsv[hsvOff+2];
|
filters.h | 49 extern void rgb2hsv( unsigned char *rgb,int rgbOff,unsigned short *hsv,int hsvOff); 50 extern void hsv2rgb(unsigned short *hsv,int hsvOff,unsigned char *rgb,int rgbOff);
|
/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...] |
/external/skia/legacy/src/core/ |
SkColor.cpp | 34 void SkRGBToHSV(U8CPU r, U8CPU g, U8CPU b, SkScalar hsv[3]) { 35 SkASSERT(hsv); 45 hsv[0] = 0; 46 hsv[1] = 0; 47 hsv[2] = v; 69 hsv[0] = h; 70 hsv[1] = s; 71 hsv[2] = v; 84 SkColor SkHSVToColor(U8CPU a, const SkScalar hsv[3]) { 85 SkASSERT(hsv); [all...] |
/external/skia/src/core/ |
SkColor.cpp | 34 void SkRGBToHSV(U8CPU r, U8CPU g, U8CPU b, SkScalar hsv[3]) { 35 SkASSERT(hsv); 45 hsv[0] = 0; 46 hsv[1] = 0; 47 hsv[2] = v; 69 hsv[0] = h; 70 hsv[1] = s; 71 hsv[2] = v; 84 SkColor SkHSVToColor(U8CPU a, const SkScalar hsv[3]) { 85 SkASSERT(hsv); [all...] |
/external/skia/include/core/ |
SkColor.h | 93 /** Convert RGB components to HSV. 94 hsv[0] is Hue [0 .. 360) 95 hsv[1] is Saturation [0...1] 96 hsv[2] is Value [0...1] 100 @param hsv 3 element array which holds the resulting HSV components. 102 SK_API void SkRGBToHSV(U8CPU red, U8CPU green, U8CPU blue, SkScalar hsv[3]); 104 /** Convert the argb color to its HSV components. 105 hsv[0] is Hue [0 .. 360) 106 hsv[1] is Saturation [0...1 113 SkRGBToHSV(SkColorGetR(color), SkColorGetG(color), SkColorGetB(color), hsv); local [all...] |
/external/skia/legacy/include/core/ |
SkColor.h | 91 /** Convert RGB components to HSV. 92 hsv[0] is Hue [0 .. 360) 93 hsv[1] is Saturation [0...1] 94 hsv[2] is Value [0...1] 98 @param hsv 3 element array which holds the resulting HSV components. 100 SK_API void SkRGBToHSV(U8CPU red, U8CPU green, U8CPU blue, SkScalar hsv[3]); 102 /** Convert the argb color to its HSV components. 103 hsv[0] is Hue [0 .. 360) 104 hsv[1] is Saturation [0...1 111 SkRGBToHSV(SkColorGetR(color), SkColorGetG(color), SkColorGetB(color), hsv); local [all...] |
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
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/ |
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/ |
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/graphics/java/android/graphics/ |
Color.java | 230 * hsv[0] is Hue [0 .. 1) 231 * hsv[1] is Saturation [0...1] 232 * hsv[2] is Value [0...1] 233 * If hsv values are out of range, they are pinned. 245 * hsv[0] is Hue [0 .. 1) 246 * hsv[1] is Saturation [0...1] 247 * hsv[2] is Value [0...1] 248 * If hsv values are out of range, they are pinned. 310 * Convert RGB components to HSV. 311 * hsv[0] is Hue [0 .. 360 [all...] |
/external/webkit/Source/WebCore/platform/chromium/ |
PlatformThemeChromiumGtk.h | 57 static SkColor saturateAndBrighten(const SkScalar hsv[3], SkScalar saturateAmount, SkScalar brightenAmount);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterBwFilter.java | 52 float[] hsv = new float[] { local 55 int rgb = Color.HSVToColor(hsv);
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/materials/ |
MaterialHelper.java | 470 * This method converts rgb values to hsv values.
478 * @param hsv
479 * hsv values of a color (this table contains the result of the transformation)
481 public void rgbToHsv(float r, float g, float b, float[] hsv) {
489 hsv[2] = cmax; /* value */
491 hsv[1] = (cmax - cmin) / cmax;
493 hsv[1] = 0.0f;
494 hsv[0] = 0.0f;
496 if (hsv[1] == 0.0) {
497 hsv[0] = -1.0f; [all...] |
/packages/apps/Settings/src/com/android/settings/widget/ |
PieChartView.java | 237 float[] hsv = new float[3]; 238 Color.colorToHSV(color, hsv); 239 hsv[2] /= 2; 240 hsv[1] /= 2; 241 return Color.HSVToColor(hsv);
|
/packages/apps/Gallery2/jni/ |
Android.mk | 36 filters/hsv.c \
|