586 for (alpha = 0; alpha < SECTORS; alpha++) {
587
588 if (!InterpolateMissingSector(gbd, alpha, 0)) return FALSE;
589 }
590
591 // Interpolate white
592 for (alpha = 0; alpha < SECTORS; alpha++) {
593
594 if (!InterpolateMissingSector(gbd, alpha, SECTORS-1)) return FALSE;
595 }
596
597
598 // Interpolate Mid
599 for (theta = 1; theta < SECTORS; theta++) {
600 for (alpha = 0; alpha < SECTORS; alpha++) {
601
602 if (!InterpolateMissingSector(gbd, alpha, theta)) return FALSE;
603 }
604 }
605
606 // Done
607 return TRUE;
608
609 cmsUNUSED_PARAMETER(dwFlags);
610 }
611
612
613
614
615 // --------------------------------------------------------------------------------------------------------
616
617 // Great for debug, but not suitable for real use
618
619 #if 0
620 cmsBool cmsGBDdumpVRML(cmsHANDLE hGBD, const char* fname)
621 {
622 FILE* fp;
623 int i, j;
624 cmsGDB* gbd = (cmsGDB*) hGBD;
625 cmsGDBPoint* pt;
626
627 fp = fopen (fname, "wt");
628 if (fp == NULL)
629 return FALSE;
|
586 for (alpha = 0; alpha < SECTORS; alpha++) {
587
588 if (!InterpolateMissingSector(gbd, alpha, 0)) return FALSE;
589 }
590
591 // Interpolate white
592 for (alpha = 0; alpha < SECTORS; alpha++) {
593
594 if (!InterpolateMissingSector(gbd, alpha, SECTORS-1)) return FALSE;
595 }
596
597
598 // Interpolate Mid
599 for (theta = 1; theta < SECTORS; theta++) {
600 for (alpha = 0; alpha < SECTORS; alpha++) {
601
602 if (!InterpolateMissingSector(gbd, alpha, theta)) return FALSE;
603 }
604 }
605
606 cmsUNUSED_PARAMETER(dwFlags);
607
608 // Done
609 return TRUE;
610
611 }
612
613
614
615
616 // --------------------------------------------------------------------------------------------------------
617
618 // Great for debug, but not suitable for real use
619
620 #if 0
621 cmsBool cmsGBDdumpVRML(cmsHANDLE hGBD, const char* fname)
622 {
623 FILE* fp;
624 int i, j;
625 cmsGDB* gbd = (cmsGDB*) hGBD;
626 cmsGDBPoint* pt;
627
628 fp = fopen (fname, "wt");
629 if (fp == NULL)
630 return FALSE;
|