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()
326 int alpha, theta; in GetPoint() local
339 if (sp ->r < 0 || sp ->alpha < 0 || sp->theta < 0) { in GetPoint()
345 QuantizeToSector(sp, &alpha, &theta); in GetPoint()
347 if (alpha < 0 || theta < 0 || alpha >= SECTORS || theta >= SECTORS) { in GetPoint()
353 return &gbd ->Gamut[theta][alpha]; in GetPoint()
440 int FindNearSectors(cmsGDB* gbd, int alpha, int theta, cmsGDBPoint* Close[]) in FindNearSectors() argument
449 a = alpha + Spiral[i].AdvX; in FindNearSectors()
474 cmsBool InterpolateMissingSector(cmsGDB* gbd, int alpha, int theta) in InterpolateMissingSector() argument
487 if (gbd ->Gamut[theta][alpha].Type != GP_EMPTY) return TRUE; in InterpolateMissingSector()
490 nCloseSectors = FindNearSectors(gbd, alpha, theta, Close); in InterpolateMissingSector()
494 sp.alpha = (cmsFloat64Number) ((alpha + 0.5) * 360.0) / (SECTORS); in InterpolateMissingSector()
507 closel.alpha = 0; in InterpolateMissingSector()
532 templ.alpha >= (alpha*360.0/SECTORS) && in InterpolateMissingSector()
533 templ.alpha <= ((alpha+1)*360.0/SECTORS)) { in InterpolateMissingSector()
540 gbd ->Gamut[theta][alpha].p = closel; in InterpolateMissingSector()
541 gbd ->Gamut[theta][alpha].Type = GP_MODELED; in InterpolateMissingSector()
552 int alpha, theta; in cmsGDBCompute() local
558 for (alpha = 0; alpha < SECTORS; alpha++) { in cmsGDBCompute()
560 if (!InterpolateMissingSector(gbd, alpha, 0)) return FALSE; in cmsGDBCompute()
564 for (alpha = 0; alpha < SECTORS; alpha++) { in cmsGDBCompute()
566 if (!InterpolateMissingSector(gbd, alpha, SECTORS-1)) return FALSE; in cmsGDBCompute()
572 for (alpha = 0; alpha < SECTORS; alpha++) { in cmsGDBCompute()
574 if (!InterpolateMissingSector(gbd, alpha, theta)) return FALSE; in cmsGDBCompute()