Lines Matching refs:boxp
115 BOX *boxp = boxlist; in FindLargestColorPop() local
119 if ((boxp->color_count > maxc) && (boxp->volume > 0)) in FindLargestColorPop()
121 which = boxp; in FindLargestColorPop()
122 maxc = boxp->color_count; in FindLargestColorPop()
125 boxp++; in FindLargestColorPop()
136 BOX *boxp = boxlist; in FindLargestColorVolume() local
140 if ((boxp->volume > maxc) && (boxp->color_count > 0)) in FindLargestColorVolume()
142 which = boxp; in FindLargestColorVolume()
143 maxc = boxp->volume; in FindLargestColorVolume()
146 boxp++; in FindLargestColorVolume()
152 void palette_creater::UpdateBox(BOX *boxp) in UpdateBox() argument
171 for (r = boxp->rmin; r <= boxp->rmax; r++) in UpdateBox()
173 for (g = boxp->gmin; g <= boxp->gmax; g++) in UpdateBox()
175 for (b = boxp->bmin; b <= boxp->bmax; b++) in UpdateBox()
218 boxp->color_count = color_count; in UpdateBox()
219 boxp->rmin = rmin; in UpdateBox()
220 boxp->rmax = rmax; in UpdateBox()
221 boxp->gmin = gmin; in UpdateBox()
222 boxp->gmax = gmax; in UpdateBox()
223 boxp->bmin = bmin; in UpdateBox()
224 boxp->bmax = bmax; in UpdateBox()
230 boxp->volume = rdist * rdist + gdist * gdist + bdist * bdist; in UpdateBox()
378 void palette_creater::ComputeColor(palette_info *control, BOX *boxp, int index) in ComputeColor() argument
388 for (r = boxp->rmin; r <= boxp->rmax; r++) in ComputeColor()
390 for (g = boxp->gmin; g <= boxp->gmax; g++) in ComputeColor()
392 for (b = boxp->bmin; b <= boxp->bmax; b++) in ComputeColor()