/packages/apps/Gallery2/jni/filters/ |
H A D | exposure.c | 23 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 D | redeye.c | 24 unsigned char * rgb = (unsigned char * )destination; local 27 filterRedEye(rgb,rgb,width,height,rect);
|
H A D | contrast.c | 43 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 D | highlight.c | 24 unsigned char * rgb = (unsigned char * )destination; local 32 rgb2hsv(rgb,i,hsv,0); 35 hsv2rgb(hsv,0, rgb,i);
|
H A D | hue.c | 23 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 D | shadows.c | 31 unsigned char * rgb = (unsigned char * )destination; local 45 rgb2hsv(rgb,i,hsv,0); 51 hsv2rgb(hsv,0, rgb,i);
|
H A D | bwfilter.c | 24 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 D | hsv.c | 32 void rgb2hsv( unsigned char *rgb,int rgbOff,unsigned short *hsv,int hsvOff) argument 41 int ri = rgb[rgbOff+0]; 42 int gi = rgb[rgbOff+1]; 43 int bi = rgb[rgbOff+2]; 81 void hsv2rgb(unsigned short *hsv,int hsvOff, unsigned char *rgb,int rgbOff) argument 152 rgb[rgbOff+0] = rr; 153 rgb[rgbOff+1] = rg; 154 rgb[rgbOff+2] = rb;
|
H A D | fx.c | 40 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 D | wbalance.c | 137 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 D | PanoUtil.java | 45 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 D | PanoUtil.java | 45 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/LegacyCamera/src/com/android/camera/panorama/ |
H A D | PanoUtil.java | 45 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 D | feature_mos_jni.cpp | 309 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/Camera2/jni/ |
H A D | feature_mos_jni.cpp | 309 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 D | feature_mos_jni.cpp | 309 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;
|