D | wbalance.c | 21 void estmateWhite(unsigned char *src, int len, int *wr, int *wb, int *wg){ in estmateWhite() argument 96 *wb = sum15g/count15g; in estmateWhite() 99 *wg = *wb = *wr=255; in estmateWhite() 103 void estmateWhiteBox(unsigned char *src, int iw, int ih, int x,int y, int *wr, int *wb, int *wg){ in estmateWhiteBox() argument 130 *wb = b/sum; in estmateWhiteBox() 142 int wb; in JNIFUNCF() local 145 estmateWhite(rgb,len,&wr,&wg,&wb); in JNIFUNCF() 147 estmateWhiteBox(rgb, width, height,locX,locY,&wr,&wg,&wb); in JNIFUNCF() 149 int min = MIN(wr, MIN(wg, wb)); in JNIFUNCF() 150 int max = MAX(wr, MAX(wg, wb)); in JNIFUNCF() [all …]
|