• Home
  • Raw
  • Download

Lines Matching refs:alpha

45     cmsFloat64Number alpha;  member
131 sp ->alpha = sp ->theta = 0; in ToSpherical()
135 sp ->alpha = _cmsAtan2(a, b); in ToSpherical()
150 sin_alpha = sin((M_PI * sp ->alpha) / 180.0); in ToCartesian()
151 cos_alpha = cos((M_PI * sp ->alpha) / 180.0); in ToCartesian()
168 void QuantizeToSector(const cmsSpherical* sp, int* alpha, int* theta) in QuantizeToSector() argument
170 *alpha = (int) floor(((sp->alpha * (SECTORS)) / 360.0) ); in QuantizeToSector()
173 if (*alpha >= SECTORS) in QuantizeToSector()
174 *alpha = SECTORS-1; in QuantizeToSector()
325 int alpha, theta; in GetPoint() local
338 if (sp ->r < 0 || sp ->alpha < 0 || sp->theta < 0) { in GetPoint()
344 QuantizeToSector(sp, &alpha, &theta); in GetPoint()
346 if (alpha < 0 || theta < 0 || alpha >= SECTORS || theta >= SECTORS) { in GetPoint()
352 return &gbd ->Gamut[theta][alpha]; in GetPoint()
439 int FindNearSectors(cmsGDB* gbd, int alpha, int theta, cmsGDBPoint* Close[]) in FindNearSectors() argument
448 a = alpha + Spiral[i].AdvX; in FindNearSectors()
473 cmsBool InterpolateMissingSector(cmsGDB* gbd, int alpha, int theta) in InterpolateMissingSector() argument
486 if (gbd ->Gamut[theta][alpha].Type != GP_EMPTY) return TRUE; in InterpolateMissingSector()
489 nCloseSectors = FindNearSectors(gbd, alpha, theta, Close); in InterpolateMissingSector()
493 sp.alpha = (cmsFloat64Number) ((alpha + 0.5) * 360.0) / (SECTORS); in InterpolateMissingSector()
506 closel.alpha = 0; in InterpolateMissingSector()
531 templ.alpha >= (alpha*360.0/SECTORS) && in InterpolateMissingSector()
532 templ.alpha <= ((alpha+1)*360.0/SECTORS)) { in InterpolateMissingSector()
539 gbd ->Gamut[theta][alpha].p = closel; in InterpolateMissingSector()
540 gbd ->Gamut[theta][alpha].Type = GP_MODELED; in InterpolateMissingSector()
551 int alpha, theta; in cmsGDBCompute() local
557 for (alpha = 0; alpha < SECTORS; alpha++) { in cmsGDBCompute()
559 if (!InterpolateMissingSector(gbd, alpha, 0)) return FALSE; in cmsGDBCompute()
563 for (alpha = 0; alpha < SECTORS; alpha++) { in cmsGDBCompute()
565 if (!InterpolateMissingSector(gbd, alpha, SECTORS-1)) return FALSE; in cmsGDBCompute()
571 for (alpha = 0; alpha < SECTORS; alpha++) { in cmsGDBCompute()
573 if (!InterpolateMissingSector(gbd, alpha, theta)) return FALSE; in cmsGDBCompute()