Searched defs:rgb (Results 1 - 16 of 16) sorted by relevance

/packages/apps/Gallery2/jni/filters/
H A Dexposure.c23 unsigned char * rgb = (unsigned char * )destination; local
31 rgb[RED] = clamp((255*(rgb[RED]))/m);
32 rgb[GREEN] = clamp((255*(rgb[GREEN]))/m);
33 rgb[BLUE] = clamp((255*(rgb[BLUE]))/m);
H A Dredeye.c24 unsigned char * rgb = (unsigned char * )destination; local
27 filterRedEye(rgb,rgb,width,height,rect);
H A Dcontrast.c43 unsigned char * rgb = (unsigned char * )destination; local
50 rgb[RED] = clamp((int)(m*rgb[RED]+c));
51 rgb[GREEN] = clamp((int)(m*rgb[GREEN]+c));
52 rgb[BLUE] = clamp((int)(m*rgb[BLUE]+c));
H A Dhighlight.c24 unsigned char * rgb = (unsigned char * )destination; local
32 rgb2hsv(rgb,i,hsv,0);
35 hsv2rgb(hsv,0, rgb,i);
H A Dhue.c23 unsigned char * rgb = (unsigned char * )destination; local
30 int r = rgb[RED];
31 int g = rgb[GREEN];
32 int b = rgb[BLUE];
38 rgb[RED] = clamp((int)rf);
39 rgb[GREEN] = clamp((int)gf);
40 rgb[BLUE] = clamp((int)bf);
H A Dshadows.c31 unsigned char * rgb = (unsigned char * )destination; local
45 rgb2hsv(rgb,i,hsv,0);
51 hsv2rgb(hsv,0, rgb,i);
H A Dbwfilter.c24 unsigned char * rgb = (unsigned char * )destination; local
42 float r = sr *rgb[RED];
43 float g = sg *rgb[GREEN];
44 float b = sb *rgb[BLUE];
50 rgb[RED] = CLAMP(avg);
51 rgb[GREEN] = rgb[RED];
52 rgb[BLUE] = rgb[RED];
H A Dhsv.c33 void rgb2hsv( unsigned char *rgb,int rgbOff,unsigned short *hsv,int hsvOff) argument
42 int ri = rgb[rgbOff+0];
43 int gi = rgb[rgbOff+1];
44 int bi = rgb[rgbOff+2];
82 void hsv2rgb(unsigned short *hsv,int hsvOff, unsigned char *rgb,int rgbOff) argument
153 rgb[rgbOff+0] = rr;
154 rgb[rgbOff+1] = rg;
155 rgb[rgbOff+2] = rb;
H A Dfx.c40 unsigned char * rgb = (unsigned char * )destination; local
65 int r = rgb[RED];
66 int g = rgb[GREEN];
67 int b = rgb[BLUE];
80 rgb[RED] = clamp(interp(lutrgb,p ,off,dr,dg,db));
81 rgb[GREEN] = clamp(interp(lutrgb,p+1,off,dr,dg,db));
82 rgb[BLUE] = clamp(interp(lutrgb,p+2,off,dr,dg,db));
H A Dwbalance.c137 unsigned char * rgb = (unsigned char * )destination; local
143 estmateWhite(rgb,len,&wr,&wg,&wb);
145 estmateWhiteBox(rgb, width, height,locX,locY,&wr,&wg,&wb);
156 int r = rgb[RED];
157 int g = rgb[GREEN];
158 int b = rgb[BLUE];
164 rgb[RED] = clamp(Rc);
165 rgb[GREEN] = clamp(Gc);
166 rgb[BLUE] = clamp(Bc);
/packages/apps/Camera/src/com/android/camera/
H A DPanoUtil.java45 public static void decodeYUV420SPQuarterRes(int[] rgb, byte[] yuv420sp, int width, int height) { argument
81 rgb[ypd] = 0xff000000 | ((r << 6) & 0xff0000) | ((g >> 2) & 0xff00) |
/packages/apps/Camera2/src/com/android/camera/
H A DPanoUtil.java45 public static void decodeYUV420SPQuarterRes(int[] rgb, byte[] yuv420sp, int width, int height) { argument
81 rgb[ypd] = 0xff000000 | ((r << 6) & 0xff0000) | ((g >> 2) & 0xff00) |
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DWhitenessUtils.java70 final int rgb = rgbPixels[y * smallBitmap.getWidth() + x];
71 if (isWhite(rgb)) {
87 final int rgb = rgbPixels[y * smallBitmap.getWidth() + x];
88 if (isWhite(rgb)) {
103 private static boolean isWhite(int rgb) { argument
104 return calculateXyzLuma(rgb) > LUMINANCE_OF_WHITE;
107 private static float calculateXyzLuma(int rgb) { argument
108 return (0.2126f * Color.red(rgb) +
109 0.7152f * Color.green(rgb) +
110 0.0722f * Color.blue(rgb)) / 25
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
H A DPanoUtil.java45 public static void decodeYUV420SPQuarterRes(int[] rgb, byte[] yuv420sp, int width, int height) { argument
81 rgb[ypd] = 0xff000000 | ((r << 6) & 0xff0000) | ((g >> 2) & 0xff00) |
/packages/apps/Camera/jni/
H A Dfeature_mos_jni.cpp309 void decodeYUV444SP(unsigned char* rgb, unsigned char* yuv420sp, int width, argument
336 //rgb[yp] = 0xff000000 | ((r << 6) & 0xff0000) | ((g >> 2) & 0xff00) | ((b >> 10) & 0xff);
338 rgb[p+0] = (r<<6 & 0xFF0000)>>16;
339 rgb[p+1] = (g>>2 & 0xFF00)>>8;
340 rgb[p+2] = b>>10 & 0xFF;
/packages/apps/LegacyCamera/jni/
H A Dfeature_mos_jni.cpp309 void decodeYUV444SP(unsigned char* rgb, unsigned char* yuv420sp, int width, argument
336 //rgb[yp] = 0xff000000 | ((r << 6) & 0xff0000) | ((g >> 2) & 0xff00) | ((b >> 10) & 0xff);
338 rgb[p+0] = (r<<6 & 0xFF0000)>>16;
339 rgb[p+1] = (g>>2 & 0xFF00)>>8;
340 rgb[p+2] = b>>10 & 0xFF;

Completed in 378 milliseconds