Lines Matching refs:r
166 int r, g, b; in UpdateBox() local
171 for (r = boxp->rmin; r <= boxp->rmax; r++) in UpdateBox()
177 pos = ASSEMBLECOLOR_16BPP(r, g, b); in UpdateBox()
184 if (r < rmin) in UpdateBox()
186 rmin = r; in UpdateBox()
189 if (r > rmax) in UpdateBox()
191 rmax = r; in UpdateBox()
380 int r, g, b; in ComputeColor() local
388 for (r = boxp->rmin; r <= boxp->rmax; r++) in ComputeColor()
394 histp = &histogram[ASSEMBLECOLOR_16BPP(r, g, b)]; in ComputeColor()
401 totalred += (r << HIST_RED_SHIFT) * count; in ComputeColor()
411 r = totalred / total; in ComputeColor()
415 control->palette[index] = 0xff000000 | ASSEMBLECOLOR_24BPP(r, g, b); in ComputeColor()