Lines Matching refs:SECTORS
39 #define SECTORS 16 // number of divisions in alpha and theta macro
69 cmsGDBPoint Gamut[SECTORS][SECTORS];
170 *alpha = (int) floor(((sp->alpha * (SECTORS)) / 360.0) ); in QuantizeToSector()
171 *theta = (int) floor(((sp->theta * (SECTORS)) / 180.0) ); in QuantizeToSector()
173 if (*alpha >= SECTORS) in QuantizeToSector()
174 *alpha = SECTORS-1; in QuantizeToSector()
175 if (*theta >= SECTORS) in QuantizeToSector()
176 *theta = SECTORS-1; in QuantizeToSector()
347 if (alpha < 0 || theta < 0 || alpha >= SECTORS || theta >= SECTORS) { in GetPoint()
453 a %= SECTORS; in FindNearSectors()
454 t %= SECTORS; in FindNearSectors()
457 if (a < 0) a = SECTORS + a; in FindNearSectors()
458 if (t < 0) t = SECTORS + t; in FindNearSectors()
494 sp.alpha = (cmsFloat64Number) ((alpha + 0.5) * 360.0) / (SECTORS); in InterpolateMissingSector()
495 sp.theta = (cmsFloat64Number) ((theta + 0.5) * 180.0) / (SECTORS); in InterpolateMissingSector()
530 templ.theta >= (theta*180.0/SECTORS) && in InterpolateMissingSector()
531 templ.theta <= ((theta+1)*180.0/SECTORS) && in InterpolateMissingSector()
532 templ.alpha >= (alpha*360.0/SECTORS) && in InterpolateMissingSector()
533 templ.alpha <= ((alpha+1)*360.0/SECTORS)) { in InterpolateMissingSector()
558 for (alpha = 0; alpha < SECTORS; alpha++) { in cmsGDBCompute()
564 for (alpha = 0; alpha < SECTORS; alpha++) { in cmsGDBCompute()
566 if (!InterpolateMissingSector(gbd, alpha, SECTORS-1)) return FALSE; in cmsGDBCompute()
571 for (theta = 1; theta < SECTORS; theta++) { in cmsGDBCompute()
572 for (alpha = 0; alpha < SECTORS; alpha++) { in cmsGDBCompute()
672 for (i=0; i < SECTORS; i++)
673 for (j=0; j < SECTORS; j++) {
682 if ((j == SECTORS - 1) && (i == SECTORS - 1))
697 for (i=0; i < SECTORS; i++)
698 for (j=0; j < SECTORS; j++) {
718 if ((j == SECTORS - 1) && (i == SECTORS - 1))