Lines Matching refs:g
166 int r, g, b; in UpdateBox() local
173 for (g = boxp->gmin; g <= boxp->gmax; g++) in UpdateBox()
177 pos = ASSEMBLECOLOR_16BPP(r, g, b); in UpdateBox()
194 if (g < gmin) in UpdateBox()
196 gmin = g; in UpdateBox()
199 if (g > gmax) in UpdateBox()
201 gmax = g; in UpdateBox()
380 int r, g, b; in ComputeColor() local
390 for (g = boxp->gmin; g <= boxp->gmax; g++) in ComputeColor()
394 histp = &histogram[ASSEMBLECOLOR_16BPP(r, g, b)]; in ComputeColor()
402 totalgreen += (g << HIST_GREEN_SHIFT) * count; in ComputeColor()
412 g = totalgreen / total; in ComputeColor()
415 control->palette[index] = 0xff000000 | ASSEMBLECOLOR_24BPP(r, g, b); in ComputeColor()