Lines Matching refs:red_max
212 if (grays <= 1) grayRamp->red_max = 0;
213 else grayRamp->red_max = grays - 1;
216 if (reds <= 1) colorCube->red_max = 0;
217 else colorCube->red_max = reds - 1;
227 colorCube->red_max = colorCube->green_max = colorCube->blue_max =
263 if (colorCube->red_max != 0) {
266 if (colorCube->red_max == 0) {
273 if (grayRamp->red_max != 0) {
291 if (colorCube != NULL && !gotCube && colorCube->red_max != 0) {
297 if (!gotRamp && grayRamp->red_max != 0) {
308 if (grayRamp->red_max == 0) {
310 the server recognizes a gray ramp with red_max=1, red_mult=1,
317 grayRamp->red_max = 1;
403 if (c->red_max < 1 || c->green_max < 1 || c->blue_max < 1) return False;
405 pixel = (c->red_max * c->red_mult + c->green_max * c->green_mult +
419 if (c->red_max < 1) return False;
421 pixel = (c->red_max * c->red_mult + c->base_pixel) & 0xFFFFFFFF;
448 colorCube->red_max = c->red_max;
491 grayRamp->red_max = c->red_max;
556 ColorValuesFromMask(vinfo->red_mask, &colorCube->red_max,
574 if (colorCube->red_max == 0) {
575 colorCube->red_max =
590 if (colorCube->red_max == 0) {
591 colorCube->red_max =
618 if (grayRamp->red_max == 0) {
619 grayRamp->red_max =
641 return cube->red_max == cube->green_max && cube->red_max ==
647 ramp->red_max = cube->red_max;
654 ramp->red_max = 1;
655 ramp->red_mult = (cube->red_max + 1) * (cube->green_max + 1) *
866 colorCube->red_max = 0;
891 colorCube->red_max = 0;
901 colorCube->red_max = 0;
1009 test.red_max = smallMax; test.red_mult = smallMult;
1021 test.red_max = largeMax; test.red_mult = largeMult;
1023 test.red_max = middleMax; test.red_mult = middleMult;
1029 test.red_max = middleMax; test.red_mult = middleMult;
1033 test.red_max = largeMax; test.red_mult = largeMult;
1050 r = ((unsigned short) calc(i, red_max, red_mult) >> 8) -
1059 cube->red_max = test.red_max;
1096 grayRamp->red_max = 0;
1119 grayRamp->red_max = 0;
1140 colorCube->red_max > size) {
1143 grayRamp->red_max = size;
1213 if ((i = shiftdown(vinfo->red_mask)) > colorCube->red_max)
1214 colorCube->red_max = i;
1221 count = colorCube->red_max + 1;
1224 colorCube->red_max = colorCube->blue_max = colorCube->green_max =
1230 count = (colorCube->red_max + 1) * (colorCube->blue_max + 1) *
1240 colorCube->red_max = 0;
1248 colorCube->red_max = 0;
1261 color.red = (unsigned short) calc(n, red_max, red_mult);
1267 (j * SCALE) / colorCube->red_max;
1273 colorCube->red_max = 0;
1311 if (colorCube->red_max >= grayRamp->red_max) {
1321 count = grayRamp->red_max + 1;
1327 grayRamp->red_max = 0;
1339 grayRamp->red_max = 0;
1350 color.red = (unsigned short)((n * SCALE) / (grayRamp->red_max));
1356 grayRamp->red_max = 0;
1536 if (map->blue_max == 0) map->red_max = *space - 1;
1538 if (map->red_max > *space - 1) map->red_max = *space - 1;
1543 while ((map->red_max + 1) * (map->green_max + 1) *
1546 if (map->red_max > 1) map->red_max--;
1556 *space = (map->red_max + 1) * (map->green_max + 1) *