Home
last modified time | relevance | path

Searched refs:rgb (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Gallery2/jni/filters/
Dbwfilter.c24 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local
42 float r = sr *rgb[RED]; in JNIFUNCF()
43 float g = sg *rgb[GREEN]; in JNIFUNCF()
44 float b = sb *rgb[BLUE]; in JNIFUNCF()
50 rgb[RED] = CLAMP(avg); in JNIFUNCF()
51 rgb[GREEN] = rgb[RED]; in JNIFUNCF()
52 rgb[BLUE] = rgb[RED]; in JNIFUNCF()
Dwbalance.c137 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local
143 estmateWhite(rgb,len,&wr,&wg,&wb); in JNIFUNCF()
145 estmateWhiteBox(rgb, width, height,locX,locY,&wr,&wg,&wb); in JNIFUNCF()
156 int r = rgb[RED]; in JNIFUNCF()
157 int g = rgb[GREEN]; in JNIFUNCF()
158 int b = rgb[BLUE]; in JNIFUNCF()
164 rgb[RED] = clamp(Rc); in JNIFUNCF()
165 rgb[GREEN] = clamp(Gc); in JNIFUNCF()
166 rgb[BLUE] = clamp(Bc); in JNIFUNCF()
Dhsv.c33 void rgb2hsv( unsigned char *rgb,int rgbOff,unsigned short *hsv,int hsvOff) in rgb2hsv() argument
42 int ri = rgb[rgbOff+0]; in rgb2hsv()
43 int gi = rgb[rgbOff+1]; in rgb2hsv()
44 int bi = rgb[rgbOff+2]; in rgb2hsv()
82 void hsv2rgb(unsigned short *hsv,int hsvOff, unsigned char *rgb,int rgbOff) in hsv2rgb() argument
153 rgb[rgbOff+0] = rr; in hsv2rgb()
154 rgb[rgbOff+1] = rg; in hsv2rgb()
155 rgb[rgbOff+2] = rb; in hsv2rgb()
Dexposure.c23 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local
31 rgb[RED] = clamp((255*(rgb[RED]))/m); in JNIFUNCF()
32 rgb[GREEN] = clamp((255*(rgb[GREEN]))/m); in JNIFUNCF()
33 rgb[BLUE] = clamp((255*(rgb[BLUE]))/m); in JNIFUNCF()
Dcontrast.c43 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local
50 rgb[RED] = clamp((int)(m*rgb[RED]+c)); in JNIFUNCF()
51 rgb[GREEN] = clamp((int)(m*rgb[GREEN]+c)); in JNIFUNCF()
52 rgb[BLUE] = clamp((int)(m*rgb[BLUE]+c)); in JNIFUNCF()
Dhue.c23 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local
30 int r = rgb[RED]; in JNIFUNCF()
31 int g = rgb[GREEN]; in JNIFUNCF()
32 int b = rgb[BLUE]; in JNIFUNCF()
38 rgb[RED] = clamp((int)rf); in JNIFUNCF()
39 rgb[GREEN] = clamp((int)gf); in JNIFUNCF()
40 rgb[BLUE] = clamp((int)bf); in JNIFUNCF()
Dfx.c40 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local
65 int r = rgb[RED]; in JNIFUNCF()
66 int g = rgb[GREEN]; in JNIFUNCF()
67 int b = rgb[BLUE]; in JNIFUNCF()
80 rgb[RED] = clamp(interp(lutrgb,p ,off,dr,dg,db)); in JNIFUNCF()
81 rgb[GREEN] = clamp(interp(lutrgb,p+1,off,dr,dg,db)); in JNIFUNCF()
82 rgb[BLUE] = clamp(interp(lutrgb,p+2,off,dr,dg,db)); in JNIFUNCF()
Dredeye.c24 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local
27 filterRedEye(rgb,rgb,width,height,rect); in JNIFUNCF()
Dhighlight.c24 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local
32 rgb2hsv(rgb,i,hsv,0); in JNIFUNCF()
35 hsv2rgb(hsv,0, rgb,i); in JNIFUNCF()
Dshadows.c31 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local
45 rgb2hsv(rgb,i,hsv,0); in JNIFUNCF()
51 hsv2rgb(hsv,0, rgb,i); 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/wallpapers/MagicSmoke/src/com/android/magicsmoke/
Dclouds.rs231 static int premul(int rgb, int a) {
232 int r = (rgb >> 16) * a + 1;
234 int g = ((rgb >> 8) & 0xff) * a + 1;
236 int b = (rgb & 0xff) * a + 1;
334 int rgb = *src++;
335 int a = (rgb >> 24) & 0xff;
336 rgb &= 0x00ffffff;
337 rgb = premul(rgb, a);
338 int newpix = (a << 24) | rgb;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterBwFilter.java57 int rgb = Color.HSVToColor(hsv); in apply() local
58 int r = 0xFF & (rgb >> 16); in apply()
59 int g = 0xFF & (rgb >> 8); in apply()
60 int b = 0xFF & (rgb >> 0); in apply()
Dsaturation.rs104 static ushort rgb2hue( uchar4 rgb)
108 int ri = rgb.r;
109 int gi = rgb.g;
110 int bi = rgb.b;
Dgrad.rs113 pixel.rgb = wsum.rgb;
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java433 int rgb = argb | 0xFF000000; in findDominantColorByHue() local
434 Color.colorToHSV(rgb, hsv); in findDominantColorByHue()
458 int rgb = bitmap.getPixel(x, y) | 0xff000000; in findDominantColorByHue() local
459 Color.colorToHSV(rgb, hsv); in findDominantColorByHue()
473 bestColor = rgb; in findDominantColorByHue()
/packages/apps/Camera/jni/
Dfeature_mos_jni.cpp309 void decodeYUV444SP(unsigned char* rgb, unsigned char* yuv420sp, int width, in decodeYUV444SP() argument
338 rgb[p+0] = (r<<6 & 0xFF0000)>>16; in decodeYUV444SP()
339 rgb[p+1] = (g>>2 & 0xFF00)>>8; in decodeYUV444SP()
340 rgb[p+2] = b>>10 & 0xFF; in decodeYUV444SP()
/packages/apps/LegacyCamera/jni/
Dfeature_mos_jni.cpp309 void decodeYUV444SP(unsigned char* rgb, unsigned char* yuv420sp, int width, in decodeYUV444SP() argument
338 rgb[p+0] = (r<<6 & 0xFF0000)>>16; in decodeYUV444SP()
339 rgb[p+1] = (g>>2 & 0xFF00)>>8; in decodeYUV444SP()
340 rgb[p+2] = b>>10 & 0xFF; in decodeYUV444SP()
/packages/wallpapers/Galaxy4/res/raw/
Dspacecloud_fs.glsl6 gl_FragColor.rgb = texColor.rgb;
/packages/wallpapers/HoloSpiral/res/raw/
Dfragment_geometry.glslf9 gl_FragColor.rgb = color.rgb;
/packages/apps/Camera2/src/com/android/camera/
DPanoUtil.java45 public static void decodeYUV420SPQuarterRes(int[] rgb, byte[] yuv420sp, int width, int height) { in decodeYUV420SPQuarterRes() argument
81 rgb[ypd] = 0xff000000 | ((r << 6) & 0xff0000) | ((g >> 2) & 0xff00) | in decodeYUV420SPQuarterRes()
/packages/apps/Camera/src/com/android/camera/
DPanoUtil.java45 public static void decodeYUV420SPQuarterRes(int[] rgb, byte[] yuv420sp, int width, int height) { in decodeYUV420SPQuarterRes() argument
81 rgb[ypd] = 0xff000000 | ((r << 6) & 0xff0000) | ((g >> 2) & 0xff00) | in decodeYUV420SPQuarterRes()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoUtil.java45 public static void decodeYUV420SPQuarterRes(int[] rgb, byte[] yuv420sp, int width, int height) { in decodeYUV420SPQuarterRes() argument
81 rgb[ypd] = 0xff000000 | ((r << 6) & 0xff0000) | ((g >> 2) & 0xff00) | in decodeYUV420SPQuarterRes()
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/
DPointCloud.java121 mPaint.setColor(Color.rgb(255, 255, 255)); // TODO: make configurable in PointCloud()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DResultActivity.java193 separator.setBackgroundColor(Color.rgb(33, 66, 33)); in addSeparator()

12