/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
RGBListener.java | 20 void setColor(int hsv);
|
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);
|
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);
|
/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/chromium_org/third_party/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/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/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...] |
/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...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_colorsys.py | 30 # rgb, hsv 41 for (rgb, hsv) in values: 42 self.assertTripleEqual(hsv, colorsys.rgb_to_hsv(*rgb)) 43 self.assertTripleEqual(rgb, colorsys.hsv_to_rgb(*hsv))
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_colorsys.py | 30 # rgb, hsv 41 for (rgb, hsv) in values: 42 self.assertTripleEqual(hsv, colorsys.rgb_to_hsv(*rgb)) 43 self.assertTripleEqual(rgb, colorsys.hsv_to_rgb(*hsv))
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterBwFilter.java | 54 float[] hsv = new float[] { local 57 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/Gallery2/jni/ |
Android.mk | 36 filters/hsv.c \
|