Home
last modified time | relevance | path

Searched refs:hsv (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorPickerDialog.java125 float[] hsv = (float[]) v.getTag(); in toggleClick() local
130 cwv.setColor(hsv); in toggleClick()
131 cvv.setColor(hsv); in toggleClick()
132 csv.setColor(hsv); in toggleClick()
146 private void setButtonColor(ToggleButton button, float[] hsv) { in setButtonColor() argument
150 int color = Color.HSVToColor(hsv); in setButtonColor()
153 (hsv[0] + 180) % 360, in setButtonColor()
154 hsv[1], in setButtonColor()
155 (hsv[2] > .5f) ? .1f : .9f in setButtonColor()
158 button.setTag(hsv); in setButtonColor()
DColorSVRectView.java98 float[] hsv = new float[3]; in fillBitmap() local
99 hsv[0] = mHSVO[0]; in fillBitmap()
103 hsv[1] = sat; in fillBitmap()
104 hsv[2] = val; in fillBitmap()
105 buff[i] = Color.HSVToColor(hsv); in fillBitmap()
220 public void notifyColorListeners(float[] hsv) { in notifyColorListeners() argument
222 l.setColor(hsv); in notifyColorListeners()
DColorValueView.java133 float[] hsv = new float[] { in updatePaint() local
135 int color1 = Color.HSVToColor(hsv); in updatePaint()
136 hsv[2] = 1; in updatePaint()
137 int color2 = Color.HSVToColor(hsv); in updatePaint()
167 public void notifyColorListeners(float[] hsv) { in notifyColorListeners() argument
169 l.setColor(hsv); in notifyColorListeners()
DColorRectView.java138 float[] hsv = new float[3]; in setUpColorPanel() local
140 Color.colorToHSV(mColors[i], hsv); in setUpColorPanel()
141 hsv[2] = mHSVO[2]; in setUpColorPanel()
142 wheelColor[i] = Color.HSVToColor(hsv); in setUpColorPanel()
212 public void notifyColorListeners(float[] hsv) { in notifyColorListeners() argument
214 l.setColor(hsv); in notifyColorListeners()
DColorGridDialog.java43 float[] hsv = new float[3]; in ColorGridDialog() local
47 hsv[0] = (k % 5) * 360 / 5; in ColorGridDialog()
48 hsv[1] = (k / 5) / 3.0f; in ColorGridDialog()
49 hsv[2] = (k < 5) ? (k / 4f) : 1; in ColorGridDialog()
50 final int c = (Color.HSVToColor(hsv) & 0x00FFFFFF) | 0xAA000000; in ColorGridDialog()
DColorCompareView.java147 public void setOrigColor(float[] hsv) { in setOrigColor() argument
148 System.arraycopy(hsv, 0, mOrigHSVO, 0, mOrigHSVO.length); in setOrigColor()
155 public void setColor(float[] hsv) { in setColor() argument
156 System.arraycopy(hsv, 0, mHSVO, 0, mHSVO.length); in setColor()
DColorBrightnessView.java180 public void setColor(float[] hsv) { in setColor() argument
181 System.arraycopy(hsv, 0, mHSVO, 0, mHSVO.length); in setColor()
DColorOpacityView.java180 public void setColor(float[] hsv) { in setColor() argument
181 System.arraycopy(hsv, 0, mHSVO, 0, mHSVO.length); in setColor()
DColorSaturationView.java179 public void setColor(float[] hsv) { in setColor() argument
180 System.arraycopy(hsv, 0, mHSVO, 0, mHSVO.length); in setColor()
DColorHueView.java203 public void setColor(float[] hsv) { in setColor() argument
204 System.arraycopy(hsv, 0, mHSVO, 0, mHSVO.length); in setColor()
DRGBListener.java20 void setColor(int hsv); in setColor() argument
/packages/apps/Gallery2/jni/filters/
Dhsv.c33 void rgb2hsv( unsigned char *rgb,int rgbOff,unsigned short *hsv,int hsvOff) in rgb2hsv() argument
77 hsv[hsvOff+0] = rv; in rgb2hsv()
78 hsv[hsvOff+1] = rs; in rgb2hsv()
79 hsv[hsvOff+2] = rh; in rgb2hsv()
82 void hsv2rgb(unsigned short *hsv,int hsvOff, unsigned char *rgb,int rgbOff) in hsv2rgb() argument
94 short cv = hsv[hsvOff+0]; in hsv2rgb()
95 short cs = hsv[hsvOff+1]; in hsv2rgb()
96 short ch = hsv[hsvOff+2]; in hsv2rgb()
Dhighlight.c28 unsigned short * hsv = (unsigned short *)malloc(3*sizeof(short)); in JNIFUNCF() local
32 rgb2hsv(rgb,i,hsv,0); in JNIFUNCF()
33 int v = clampMax(hsv[0],4080); in JNIFUNCF()
34 hsv[0] = (unsigned short) clampMax(lum[((255*v)/4080)]*4080,4080); in JNIFUNCF()
35 hsv2rgb(hsv,0, rgb,i); in JNIFUNCF()
38 free(hsv); in JNIFUNCF()
Dshadows.c41 unsigned short * hsv = (unsigned short *)malloc(3*sizeof(short)); in JNIFUNCF() local
45 rgb2hsv(rgb,i,hsv,0); in JNIFUNCF()
47 double v = (fastevalPoly(poly,5,hsv[0]/4080.)*4080); in JNIFUNCF()
49 hsv[0] = (unsigned short) ((v>0)?v:0); in JNIFUNCF()
51 hsv2rgb(hsv,0, rgb,i); in JNIFUNCF()
55 free(hsv); in JNIFUNCF()
Dfilters.h49 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);
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java416 float[] hsv = new float[3]; in findDominantColorByHue() local
434 Color.colorToHSV(rgb, hsv); in findDominantColorByHue()
436 int hue = (int) hsv[0]; in findDominantColorByHue()
441 float score = hsv[1] * hsv[2]; in findDominantColorByHue()
459 Color.colorToHSV(rgb, hsv); in findDominantColorByHue()
460 int hue = (int) hsv[0]; in findDominantColorByHue()
462 float s = hsv[1]; in findDominantColorByHue()
463 float v = hsv[2]; in findDominantColorByHue()
DPreloadIconDrawable.java239 float[] hsv = new float[3]; in getIndicatorColor() local
240 Color.colorToHSV(mIndicatorColor, hsv); in getIndicatorColor()
241 if (hsv[1] < MIN_SATUNATION) { in getIndicatorColor()
245 hsv[2] = Math.max(MIN_LIGHTNESS, hsv[2]); in getIndicatorColor()
246 mIndicatorColor = Color.HSVToColor(hsv); in getIndicatorColor()
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java834 float[] hsv = new float[3]; in getDisplayColorFromColor() local
835 Color.colorToHSV(color, hsv); in getDisplayColorFromColor()
836 hsv[1] = Math.min(hsv[1] * SATURATION_ADJUST, 1.0f); in getDisplayColorFromColor()
837 hsv[2] = hsv[2] * INTENSITY_ADJUST; in getDisplayColorFromColor()
838 return Color.HSVToColor(hsv); in getDisplayColorFromColor()
DEventInfoFragment.java553 float[] hsv = new float[3]; in onQueryComplete() local
554 Color.colorToHSV(mColors[i], hsv); in onQueryComplete()
556 Log.d("Color", "H:" + hsv[0] + ",S:" + hsv[1] + ",V:" + hsv[2]); in onQueryComplete()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterBwFilter.java54 float[] hsv = new float[] { in apply() local
57 int rgb = Color.HSVToColor(hsv); in apply()
/packages/apps/Gallery2/jni/
DAndroid.mk35 filters/hsv.c \