Lines Matching refs:gbd
304 cmsGDB* gbd = (cmsGDB*) _cmsMallocZero(ContextID, sizeof(cmsGDB)); in cmsGBDAlloc() local
305 if (gbd == NULL) return NULL; in cmsGBDAlloc()
307 gbd -> ContextID = ContextID; in cmsGBDAlloc()
309 return (cmsHANDLE) gbd; in cmsGBDAlloc()
315 cmsGDB* gbd = (cmsGDB*) hGBD; in cmsGBDFree() local
317 _cmsFree(gbd->ContextID, (void*) gbd); in cmsGBDFree()
323 cmsGDBPoint* GetPoint(cmsGDB* gbd, const cmsCIELab* Lab, cmsSpherical* sp) in GetPoint() argument
329 _cmsAssert(gbd != NULL); in GetPoint()
340 cmsSignalError(gbd ->ContextID, cmsERROR_RANGE, "spherical value out of range"); in GetPoint()
348 cmsSignalError(gbd ->ContextID, cmsERROR_RANGE, " quadrant out of range"); in GetPoint()
353 return &gbd ->Gamut[theta][alpha]; in GetPoint()
360 cmsGDB* gbd = (cmsGDB*) hGBD; in cmsGDBAddPoint() local
366 ptr = GetPoint(gbd, Lab, &sp); in cmsGDBAddPoint()
392 cmsGDB* gbd = (cmsGDB*) hGBD; in cmsGDBCheckPoint() local
397 ptr = GetPoint(gbd, Lab, &sp); in cmsGDBCheckPoint()
440 int FindNearSectors(cmsGDB* gbd, int alpha, int theta, cmsGDBPoint* Close[]) in FindNearSectors() argument
460 pt = &gbd ->Gamut[t][a]; 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()
540 gbd ->Gamut[theta][alpha].p = closel; in InterpolateMissingSector()
541 gbd ->Gamut[theta][alpha].Type = GP_MODELED; in InterpolateMissingSector()
553 cmsGDB* gbd = (cmsGDB*) hGBD; in cmsGDBCompute() local
560 if (!InterpolateMissingSector(gbd, alpha, 0)) return FALSE; in cmsGDBCompute()
566 if (!InterpolateMissingSector(gbd, alpha, SECTORS-1)) return FALSE; in cmsGDBCompute()
574 if (!InterpolateMissingSector(gbd, alpha, theta)) return FALSE; in cmsGDBCompute()
596 cmsGDB* gbd = (cmsGDB*) hGBD;
677 pt = &gbd ->Gamut[i][j];
702 pt = &gbd ->Gamut[i][j];