Lines Matching refs:LUT

398     cmsPipeline* LUT;  in cmsCreateInkLimitingDeviceLinkTHR()  local
429 LUT = cmsPipelineAlloc(ContextID, 4, 4); in cmsCreateInkLimitingDeviceLinkTHR()
430 if (LUT == NULL) goto Error; in cmsCreateInkLimitingDeviceLinkTHR()
440 …if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocIdentityCurves(ContextID, nChannels)) … in cmsCreateInkLimitingDeviceLinkTHR()
441 !cmsPipelineInsertStage(LUT, cmsAT_END, CLUT) || in cmsCreateInkLimitingDeviceLinkTHR()
442 !cmsPipelineInsertStage(LUT, cmsAT_END, _cmsStageAllocIdentityCurves(ContextID, nChannels))) in cmsCreateInkLimitingDeviceLinkTHR()
448 if (!cmsWriteTag(hICC, cmsSigAToB0Tag, (void*) LUT)) goto Error; in cmsCreateInkLimitingDeviceLinkTHR()
452 cmsPipelineFree(LUT); in cmsCreateInkLimitingDeviceLinkTHR()
458 if (LUT != NULL) in cmsCreateInkLimitingDeviceLinkTHR()
459 cmsPipelineFree(LUT); in cmsCreateInkLimitingDeviceLinkTHR()
477 cmsPipeline* LUT = NULL; in cmsCreateLab2ProfileTHR() local
491 LUT = cmsPipelineAlloc(ContextID, 3, 3); in cmsCreateLab2ProfileTHR()
492 if (LUT == NULL) goto Error; in cmsCreateLab2ProfileTHR()
494 if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocIdentityCLut(ContextID, 3))) in cmsCreateLab2ProfileTHR()
497 if (!cmsWriteTag(hProfile, cmsSigAToB0Tag, LUT)) goto Error; in cmsCreateLab2ProfileTHR()
498 cmsPipelineFree(LUT); in cmsCreateLab2ProfileTHR()
504 if (LUT != NULL) in cmsCreateLab2ProfileTHR()
505 cmsPipelineFree(LUT); in cmsCreateLab2ProfileTHR()
524 cmsPipeline* LUT = NULL; in cmsCreateLab4ProfileTHR() local
538 LUT = cmsPipelineAlloc(ContextID, 3, 3); in cmsCreateLab4ProfileTHR()
539 if (LUT == NULL) goto Error; in cmsCreateLab4ProfileTHR()
541 if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocIdentityCurves(ContextID, 3))) in cmsCreateLab4ProfileTHR()
544 if (!cmsWriteTag(hProfile, cmsSigAToB0Tag, LUT)) goto Error; in cmsCreateLab4ProfileTHR()
545 cmsPipelineFree(LUT); in cmsCreateLab4ProfileTHR()
551 if (LUT != NULL) in cmsCreateLab4ProfileTHR()
552 cmsPipelineFree(LUT); in cmsCreateLab4ProfileTHR()
570 cmsPipeline* LUT = NULL; in cmsCreateXYZProfileTHR() local
584 LUT = cmsPipelineAlloc(ContextID, 3, 3); in cmsCreateXYZProfileTHR()
585 if (LUT == NULL) goto Error; in cmsCreateXYZProfileTHR()
587 if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocIdentityCurves(ContextID, 3))) in cmsCreateXYZProfileTHR()
590 if (!cmsWriteTag(hProfile, cmsSigAToB0Tag, LUT)) goto Error; in cmsCreateXYZProfileTHR()
591 cmsPipelineFree(LUT); in cmsCreateXYZProfileTHR()
597 if (LUT != NULL) in cmsCreateXYZProfileTHR()
598 cmsPipelineFree(LUT); in cmsCreateXYZProfileTHR()
831 cmsPipeline* LUT = NULL; in cmsCreateNULLProfileTHR() local
851 LUT = cmsPipelineAlloc(ContextID, 1, 1); in cmsCreateNULLProfileTHR()
852 if (LUT == NULL) goto Error; in cmsCreateNULLProfileTHR()
858 if (!cmsPipelineInsertStage(LUT, cmsAT_END, PostLin)) in cmsCreateNULLProfileTHR()
861 if (!cmsWriteTag(hProfile, cmsSigBToA0Tag, (void*) LUT)) goto Error; in cmsCreateNULLProfileTHR()
864 cmsPipelineFree(LUT); in cmsCreateNULLProfileTHR()
869 if (LUT != NULL) in cmsCreateNULLProfileTHR()
870 cmsPipelineFree(LUT); in cmsCreateNULLProfileTHR()
1060 cmsPipeline* LUT = NULL; in cmsTransform2DeviceLink() local
1081 LUT = cmsPipelineDup(xform ->Lut); in cmsTransform2DeviceLink()
1082 if (LUT == NULL) return NULL; in cmsTransform2DeviceLink()
1087 if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocLabV2ToV4curves(ContextID))) in cmsTransform2DeviceLink()
1094 if (!cmsPipelineInsertStage(LUT, cmsAT_END, _cmsStageAllocLabV4ToV2(ContextID))) in cmsTransform2DeviceLink()
1128 AllowedLUT = FindCombination(LUT, Version >= 4.0, DestinationTag); in cmsTransform2DeviceLink()
1133 _cmsOptimizePipeline(ContextID, &LUT, xform ->RenderingIntent, &FrmIn, &FrmOut, &dwFlags); in cmsTransform2DeviceLink()
1134 AllowedLUT = FindCombination(LUT, Version >= 4.0, DestinationTag); in cmsTransform2DeviceLink()
1145 _cmsOptimizePipeline(ContextID, &LUT, xform ->RenderingIntent, &FrmIn, &FrmOut, &dwFlags); in cmsTransform2DeviceLink()
1148 FirstStage = cmsPipelineGetPtrToFirstStage(LUT); in cmsTransform2DeviceLink()
1150 … if (!cmsPipelineInsertStage(LUT, cmsAT_BEGIN, _cmsStageAllocIdentityCurves(ContextID, ChansIn))) in cmsTransform2DeviceLink()
1153 LastStage = cmsPipelineGetPtrToLastStage(LUT); in cmsTransform2DeviceLink()
1155 … if (!cmsPipelineInsertStage(LUT, cmsAT_END, _cmsStageAllocIdentityCurves(ContextID, ChansOut))) in cmsTransform2DeviceLink()
1158 AllowedLUT = FindCombination(LUT, Version >= 4.0, DestinationTag); in cmsTransform2DeviceLink()
1168 cmsPipelineSetSaveAs8bitsFlag(LUT, TRUE); in cmsTransform2DeviceLink()
1174 if (!cmsWriteTag(hProfile, DestinationTag, LUT)) goto Error; in cmsTransform2DeviceLink()
1201 cmsPipelineFree(LUT); in cmsTransform2DeviceLink()
1205 if (LUT != NULL) cmsPipelineFree(LUT); in cmsTransform2DeviceLink()