Lines Matching refs:b
166 int r, g, b; in UpdateBox() local
175 for (b = boxp->bmin; b <= boxp->bmax; b++) in UpdateBox()
177 pos = ASSEMBLECOLOR_16BPP(r, g, b); in UpdateBox()
204 if (b < bmin) in UpdateBox()
206 bmin = b; in UpdateBox()
209 if (b > bmax) in UpdateBox()
211 bmax = b; in UpdateBox()
380 int r, g, b; in ComputeColor() local
392 for (b = boxp->bmin; b <= boxp->bmax; b++) in ComputeColor()
394 histp = &histogram[ASSEMBLECOLOR_16BPP(r, g, b)]; in ComputeColor()
403 totalblue += (b << HIST_BLUE_SHIFT) * count; in ComputeColor()
413 b = totalblue / total; in ComputeColor()
415 control->palette[index] = 0xff000000 | ASSEMBLECOLOR_24BPP(r, g, b); in ComputeColor()