Home | History | Annotate | Download | only in src

Lines Matching refs:LUT

398     cmsPipeline* LUT;
429 LUT = cmsPipelineAlloc(ContextID, 4, 4);
430 if (LUT == NULL) goto Error;
440 if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocIdentityCurves(ContextID, nChannels)) ||
441 !cmsPipelineInsertStage(LUT, cmsAT_END, CLUT) ||
442 !cmsPipelineInsertStage(LUT, cmsAT_END, _cmsStageAllocIdentityCurves(ContextID, nChannels)))
448 if (!cmsWriteTag(hICC, cmsSigAToB0Tag, (void*) LUT)) goto Error;
452 cmsPipelineFree(LUT);
458 if (LUT != NULL)
459 cmsPipelineFree(LUT);
477 cmsPipeline* LUT = NULL;
490 // An identity LUT is all we need
491 LUT = cmsPipelineAlloc(ContextID, 3, 3);
492 if (LUT == NULL) goto Error;
494 if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocIdentityCLut(ContextID, 3)))
497 if (!cmsWriteTag(hProfile, cmsSigAToB0Tag, LUT)) goto Error;
498 cmsPipelineFree(LUT);
504 if (LUT != NULL)
505 cmsPipelineFree(LUT);
524 cmsPipeline* LUT = NULL;
538 LUT
539 if (LUT == NULL) goto Error;
541 if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocIdentityCurves(ContextID, 3)))
544 if (!cmsWriteTag(hProfile, cmsSigAToB0Tag, LUT)) goto Error;
545 cmsPipelineFree(LUT);
551 if (LUT != NULL)
552 cmsPipelineFree(LUT);
570 cmsPipeline* LUT = NULL;
583 // An identity LUT is all we need
584 LUT = cmsPipelineAlloc(ContextID, 3, 3);
585 if (LUT == NULL) goto Error;
587 if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocIdentityCurves(ContextID, 3)))
590 if (!cmsWriteTag(hProfile, cmsSigAToB0Tag, LUT)) goto Error;
591 cmsPipelineFree(LUT);
597 if (LUT != NULL)
598 cmsPipelineFree(LUT);
831 cmsPipeline* LUT = NULL;
851 LUT = cmsPipelineAlloc(ContextID, 1, 1);
852 if (LUT == NULL) goto Error;
858 if (!cmsPipelineInsertStage(LUT, cmsAT_END, PostLin))
861 if (!cmsWriteTag(hProfile, cmsSigBToA0Tag, (void*) LUT)) goto Error;
864 cmsPipelineFree(LUT);
869 if (LUT != NULL)
870 cmsPipelineFree(LUT);
964 nc2 ->ColorantCount = cmsPipelineOutputChannels(v ->Lut);
992 cmsTagTypeSignature LutType; // The LUT type
1019 cmsBool CheckOne(const cmsAllowedLUT* Tab, const cmsPipeline* Lut)
1024 for (n=0, mpe = Lut ->Elements; mpe != NULL; mpe = mpe ->Next, n++) {
1035 const cmsAllowedLUT* FindCombination(const cmsPipeline* Lut, cmsBool IsV4, cmsTagSignature DestinationTag)
1046 if (CheckOne(Tab, Lut)) return Tab;
1060 cmsPipeline* LUT = NULL;
1070 mpe = cmsPipelineGetPtrToFirstStage(xform ->Lut);
1081 LUT = cmsPipelineDup(xform ->Lut);
1082 if (LUT == NULL) return NULL;
1087 if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocLabV2ToV4curves(ContextID)))
1094 if (!cmsPipelineInsertStage(LUT, cmsAT_END, _cmsStageAllocLabV4ToV2(ContextID)))
1106 // Optimize the LUT and precalculate a devicelink
1128 AllowedLUT = FindCombination(LUT, Version >= 4.0, DestinationTag);
1133 _cmsOptimizePipeline(ContextID, &LUT, xform ->RenderingIntent, &FrmIn, &FrmOut, &dwFlags);
1134 AllowedLUT = FindCombination(LUT, Version >= 4.0, DestinationTag);
1145 _cmsOptimizePipeline(ContextID, &LUT, xform ->RenderingIntent, &FrmIn, &FrmOut, &dwFlags);
1148 FirstStage = cmsPipelineGetPtrToFirstStage(LUT);
1150 if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocIdentityCurves(ContextID, ChansIn)))
1153 LastStage = cmsPipelineGetPtrToLastStage(LUT);
1155 if (!cmsPipelineInsertStage(LUT, cmsAT_END, _cmsStageAllocIdentityCurves(ContextID, ChansOut)))
1158 AllowedLUT = FindCombination(LUT, Version >= 4.0, DestinationTag);
1168 cmsPipelineSetSaveAs8bitsFlag(LUT, TRUE);
1174 if (!cmsWriteTag(hProfile, DestinationTag, LUT)) goto Error;
1201 cmsPipelineFree(LUT);
1205 if (LUT != NULL) cmsPipelineFree(LUT);