HomeSort by relevance Sort by last modified time
    Searched refs:wg (Results 1 - 2 of 2) sorted by null

  /packages/apps/Gallery2/jni/filters/
wbalance.c 19 void estmateWhite(unsigned char *src, int len, int *wr, int *wb, int *wg){
95 *wg = sum15b/count15b;
97 *wg = *wb = *wr=255;
101 void estmateWhiteBox(unsigned char *src, int iw, int ih, int x,int y, int *wr, int *wb, int *wg){
127 *wg = g/sum;
139 int wg; local
143 estmateWhite(rgb,len,&wr,&wg,&wb);
145 estmateWhiteBox(rgb, width, height,locX,locY,&wr,&wg,&wb);
147 int min = MIN(wr, MIN(wg, wb));
148 int max = MAX(wr, MAX(wg, wb))
    [all...]
  /frameworks/native/opengl/tests/hwc/
hwcTestLib.cpp 876 float wr = 0.2126, wg = 0.7152, wb = 0.0722; // ITU709 recommended constants local
879 float y = wr * r + wg * g + wb * b;
910 // y = wr * r + wg * g + wb * b
911 // wr * r + wg * g + wb * b = y
912 // wg * g = y - wr * r - wb * b
913 // g = (y - wr * r - wb * b) / wg
918 float g = (y - wr * r - wb * b) / wg;
    [all...]

Completed in 107 milliseconds