/packages/apps/Gallery2/jni/filters/ |
D | bwfilter.c | 24 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()
|
D | wbalance.c | 137 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()
|
D | hsv.c | 33 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()
|
D | exposure.c | 23 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()
|
D | contrast.c | 43 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()
|
D | hue.c | 23 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()
|
D | fx.c | 40 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()
|
D | redeye.c | 24 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local 27 filterRedEye(rgb,rgb,width,height,rect); in JNIFUNCF()
|
D | highlight.c | 24 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()
|
D | shadows.c | 31 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()
|
D | 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);
|
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/ |
D | clouds.rs | 231 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/ |
D | ImageFilterBwFilter.java | 57 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()
|
D | saturation.rs | 104 static ushort rgb2hue( uchar4 rgb) 108 int ri = rgb.r; 109 int gi = rgb.g; 110 int bi = rgb.b;
|
D | grad.rs | 113 pixel.rgb = wsum.rgb;
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Utilities.java | 433 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/ |
D | feature_mos_jni.cpp | 309 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/ |
D | feature_mos_jni.cpp | 309 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/ |
D | spacecloud_fs.glsl | 6 gl_FragColor.rgb = texColor.rgb;
|
/packages/wallpapers/HoloSpiral/res/raw/ |
D | fragment_geometry.glslf | 9 gl_FragColor.rgb = color.rgb;
|
/packages/apps/Camera2/src/com/android/camera/ |
D | PanoUtil.java | 45 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/ |
D | PanoUtil.java | 45 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/ |
D | PanoUtil.java | 45 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/ |
D | PointCloud.java | 121 mPaint.setColor(Color.rgb(255, 255, 255)); // TODO: make configurable in PointCloud()
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
D | ResultActivity.java | 193 separator.setBackgroundColor(Color.rgb(33, 66, 33)); in addSeparator()
|