Lines Matching refs:LUT

427     cmsPipeline* LUT;
458 LUT = cmsPipelineAlloc(ContextID, 4, 4);
459 if (LUT == NULL) goto Error;
469 if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocIdentityCurves(ContextID, nChannels)) ||
470 !cmsPipelineInsertStage(LUT, cmsAT_END, CLUT) ||
471 !cmsPipelineInsertStage(LUT, cmsAT_END, _cmsStageAllocIdentityCurves(ContextID, nChannels)))
477 if (!cmsWriteTag(hICC, cmsSigAToB0Tag, (void*) LUT)) goto Error;
481 cmsPipelineFree(LUT);
487 if (LUT != NULL)
488 cmsPipelineFree(LUT);
506 cmsPipeline* LUT = NULL;
519 // An identity LUT is all we need
520 LUT = cmsPipelineAlloc(ContextID, 3, 3);
521 if (LUT == NULL) goto Error;
523 if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocIdentityCLut(ContextID, 3)))
526 if (!cmsWriteTag(hProfile, cmsSigAToB0Tag, LUT)) goto Error;
527 cmsPipelineFree(LUT);
533 if (LUT != NULL)
534 cmsPipelineFree(LUT);
553 cmsPipeline* LUT = NULL;
567 LUT = cmsPipelineAlloc(ContextID, 3, 3);
568 if (LUT == NULL) goto Error;
570 if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocIdentityCurves(ContextID, 3)))
573 if (!cmsWriteTag(hProfile, cmsSigAToB0Tag, LUT)) goto Error;
574 cmsPipelineFree(LUT);
580 if (LUT != NULL)
581 cmsPipelineFree(LUT);
599 cmsPipeline* LUT = NULL;
612 // An identity LUT is all we need
613 LUT = cmsPipelineAlloc(ContextID, 3, 3);
614 if (LUT == NULL) goto Error;
616 if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocIdentityCurves(ContextID, 3)))
619 if (!cmsWriteTag(hProfile, cmsSigAToB0Tag, LUT)) goto Error;
620 cmsPipelineFree(LUT);
626 if (LUT != NULL)
627 cmsPipelineFree(LUT);
860 cmsPipeline* LUT = NULL;
880 LUT = cmsPipelineAlloc(ContextID, 1, 1);
881 if (LUT == NULL) goto Error;
887 if (!cmsPipelineInsertStage(LUT, cmsAT_END, PostLin))
890 if (!cmsWriteTag(hProfile, cmsSigBToA0Tag, (void*) LUT)) goto Error;
893 cmsPipelineFree(LUT);
898 if (LUT != NULL)
899 cmsPipelineFree(LUT);
1021 cmsTagTypeSignature LutType; // The LUT type
1089 cmsPipeline* LUT = NULL;
1110 LUT = cmsPipelineDup(xform ->Lut);
1111 if (LUT == NULL) return NULL;
1116 if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocLabV2ToV4curves(ContextID)))
1123 if (!cmsPipelineInsertStage(LUT, cmsAT_END, _cmsStageAllocLabV4ToV2(ContextID)))
1135 // Optimize the LUT and precalculate a devicelink
1157 AllowedLUT = FindCombination(LUT, Version >= 4.0, DestinationTag);
1162 _cmsOptimizePipeline(ContextID, &LUT, xform ->RenderingIntent, &FrmIn, &FrmOut, &dwFlags);
1163 AllowedLUT = FindCombination(LUT, Version >= 4.0, DestinationTag);
1174 _cmsOptimizePipeline(ContextID, &LUT, xform ->RenderingIntent, &FrmIn, &FrmOut, &dwFlags);
1177 FirstStage = cmsPipelineGetPtrToFirstStage(LUT);
1179 if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocIdentityCurves(ContextID, ChansIn)))
1182 LastStage = cmsPipelineGetPtrToLastStage(LUT);
1184 if (!cmsPipelineInsertStage(LUT, cmsAT_END, _cmsStageAllocIdentityCurves(ContextID, ChansOut)))
1187 AllowedLUT = FindCombination(LUT, Version >= 4.0, DestinationTag);
1197 cmsPipelineSetSaveAs8bitsFlag(LUT, TRUE);
1203 if (!cmsWriteTag(hProfile, DestinationTag, LUT)) goto Error;
1230 cmsPipelineFree(LUT);
1234 if (LUT != NULL) cmsPipelineFree(LUT);