• Home
  • Raw
  • Download

Lines Matching refs:Lut

159     cmsPipeline* Lut;  in BuildGrayInputMatrixPipeline()  local
165 Lut = cmsPipelineAlloc(ContextID, 1, 3); in BuildGrayInputMatrixPipeline()
166 if (Lut == NULL) in BuildGrayInputMatrixPipeline()
185 …if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocMatrix(ContextID, 3, 1, OneToThreeInputM… in BuildGrayInputMatrixPipeline()
186 … !cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocToneCurves(ContextID, 3, LabCurves))) { in BuildGrayInputMatrixPipeline()
196 … if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocToneCurves(ContextID, 1, &GrayTRC)) || in BuildGrayInputMatrixPipeline()
197 …!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocMatrix(ContextID, 3, 1, GrayInputMatrix, NUL… in BuildGrayInputMatrixPipeline()
201 return Lut; in BuildGrayInputMatrixPipeline()
209 cmsPipelineFree(Lut); in BuildGrayInputMatrixPipeline()
217 cmsPipeline* Lut; in BuildRGBInputMatrixShaper() local
241 Lut = cmsPipelineAlloc(ContextID, 3, 3); in BuildRGBInputMatrixShaper()
242 if (Lut != NULL) { in BuildRGBInputMatrixShaper()
244 … if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocToneCurves(ContextID, 3, Shapes)) || in BuildRGBInputMatrixShaper()
245 …!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocMatrix(ContextID, 3, 3, (cmsFloat64Number*) &… in BuildRGBInputMatrixShaper()
253 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageAllocXYZ2Lab(ContextID))) in BuildRGBInputMatrixShaper()
259 return Lut; in BuildRGBInputMatrixShaper()
262 cmsPipelineFree(Lut); in BuildRGBInputMatrixShaper()
273 cmsPipeline* Lut = cmsPipelineDup((cmsPipeline*) cmsReadTag(hProfile, tagFloat)); in _cmsReadFloatInputTag() local
277 if (Lut == NULL) return NULL; in _cmsReadFloatInputTag()
283 if (!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageNormalizeToLabFloat(ContextID))) in _cmsReadFloatInputTag()
288 if (!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageNormalizeToXyzFloat(ContextID))) in _cmsReadFloatInputTag()
294 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageNormalizeFromLabFloat(ContextID))) in _cmsReadFloatInputTag()
299 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageNormalizeFromXyzFloat(ContextID))) in _cmsReadFloatInputTag()
303 return Lut; in _cmsReadFloatInputTag()
306 cmsPipelineFree(Lut); in _cmsReadFloatInputTag()
324 cmsPipeline* Lut; in _cmsReadInputLUT() local
329 Lut = cmsPipelineAlloc(ContextID, 0, 0); in _cmsReadInputLUT()
330 if (Lut == NULL) { in _cmsReadInputLUT()
335 if (!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageAllocNamedColor(nc, TRUE)) || in _cmsReadInputLUT()
336 !cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageAllocLabV2ToV4(ContextID))) { in _cmsReadInputLUT()
337 cmsPipelineFree(Lut); in _cmsReadInputLUT()
340 return Lut; in _cmsReadInputLUT()
364 cmsPipeline* Lut = (cmsPipeline*) cmsReadTag(hProfile, tag16); in _cmsReadInputLUT() local
365 if (Lut == NULL) return NULL; in _cmsReadInputLUT()
371 Lut = cmsPipelineDup(Lut); in _cmsReadInputLUT()
375 return Lut; in _cmsReadInputLUT()
379 !cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageAllocLabV4ToV2(ContextID))) in _cmsReadInputLUT()
383 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageAllocLabV2ToV4(ContextID))) in _cmsReadInputLUT()
386 return Lut; in _cmsReadInputLUT()
388 cmsPipelineFree(Lut); in _cmsReadInputLUT()
418 cmsPipeline* Lut; in BuildGrayOutputPipeline() local
427 Lut = cmsPipelineAlloc(ContextID, 3, 1); in BuildGrayOutputPipeline()
428 if (Lut == NULL) { in BuildGrayOutputPipeline()
435 …if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocMatrix(ContextID, 1, 3, PickLstarMatrix,… in BuildGrayOutputPipeline()
439 …if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocMatrix(ContextID, 1, 3, PickYMatrix, NUL… in BuildGrayOutputPipeline()
443 if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocToneCurves(ContextID, 1, &RevGrayTRC))) in BuildGrayOutputPipeline()
447 return Lut; in BuildGrayOutputPipeline()
451 cmsPipelineFree(Lut); in BuildGrayOutputPipeline()
459 cmsPipeline* Lut; in BuildRGBOutputMatrixShaper() local
494 Lut = cmsPipelineAlloc(ContextID, 3, 3); in BuildRGBOutputMatrixShaper()
495 if (Lut != NULL) { in BuildRGBOutputMatrixShaper()
502 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageAllocLab2XYZ(ContextID))) in BuildRGBOutputMatrixShaper()
506 …if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocMatrix(ContextID, 3, 3, (cmsFloat64Number… in BuildRGBOutputMatrixShaper()
507 … !cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocToneCurves(ContextID, 3, InvShapes))) in BuildRGBOutputMatrixShaper()
512 return Lut; in BuildRGBOutputMatrixShaper()
515 cmsPipelineFree(Lut); in BuildRGBOutputMatrixShaper()
522 void ChangeInterpolationToTrilinear(cmsPipeline* Lut) in ChangeInterpolationToTrilinear() argument
526 for (Stage = cmsPipelineGetPtrToFirstStage(Lut); in ChangeInterpolationToTrilinear()
535 _cmsSetInterpolationRoutine(Lut->ContextID, CLUT ->Params); in ChangeInterpolationToTrilinear()
546 cmsPipeline* Lut = cmsPipelineDup((cmsPipeline*) cmsReadTag(hProfile, tagFloat)); in _cmsReadFloatOutputTag() local
550 if (Lut == NULL) return NULL; in _cmsReadFloatOutputTag()
556 if (!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageNormalizeToLabFloat(ContextID))) in _cmsReadFloatOutputTag()
562 if (!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageNormalizeToXyzFloat(ContextID))) in _cmsReadFloatOutputTag()
569 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageNormalizeFromLabFloat(ContextID))) in _cmsReadFloatOutputTag()
574 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageNormalizeFromXyzFloat(ContextID))) in _cmsReadFloatOutputTag()
578 return Lut; in _cmsReadFloatOutputTag()
581 cmsPipelineFree(Lut); in _cmsReadFloatOutputTag()
612 cmsPipeline* Lut = (cmsPipeline*) cmsReadTag(hProfile, tag16); in _cmsReadOutputLUT() local
613 if (Lut == NULL) return NULL; in _cmsReadOutputLUT()
619 Lut = cmsPipelineDup(Lut); in _cmsReadOutputLUT()
620 if (Lut == NULL) return NULL; in _cmsReadOutputLUT()
625 ChangeInterpolationToTrilinear(Lut); in _cmsReadOutputLUT()
629 return Lut; in _cmsReadOutputLUT()
632 if (!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageAllocLabV4ToV2(ContextID))) in _cmsReadOutputLUT()
637 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageAllocLabV2ToV4(ContextID))) in _cmsReadOutputLUT()
640 return Lut; in _cmsReadOutputLUT()
642 cmsPipelineFree(Lut); in _cmsReadOutputLUT()
668 cmsPipeline* Lut = cmsPipelineDup((cmsPipeline*) cmsReadTag(hProfile, tagFloat)); in _cmsReadFloatDevicelinkTag() local
672 if (Lut == NULL) return NULL; in _cmsReadFloatDevicelinkTag()
676 if (!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageNormalizeToLabFloat(ContextID))) in _cmsReadFloatDevicelinkTag()
682 if (!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageNormalizeToXyzFloat(ContextID))) in _cmsReadFloatDevicelinkTag()
688 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageNormalizeFromLabFloat(ContextID))) in _cmsReadFloatDevicelinkTag()
694 … if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageNormalizeFromXyzFloat(ContextID))) in _cmsReadFloatDevicelinkTag()
698 return Lut; in _cmsReadFloatDevicelinkTag()
700 cmsPipelineFree(Lut); in _cmsReadFloatDevicelinkTag()
708 cmsPipeline* Lut; in _cmsReadDevicelinkLUT() local
722 Lut = cmsPipelineAlloc(ContextID, 0, 0); in _cmsReadDevicelinkLUT()
723 if (Lut == NULL) in _cmsReadDevicelinkLUT()
726 if (!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageAllocNamedColor(nc, FALSE))) in _cmsReadDevicelinkLUT()
730 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageAllocLabV2ToV4(ContextID))) in _cmsReadDevicelinkLUT()
733 return Lut; in _cmsReadDevicelinkLUT()
735 cmsPipelineFree(Lut); in _cmsReadDevicelinkLUT()
761 Lut = (cmsPipeline*) cmsReadTag(hProfile, tag16); in _cmsReadDevicelinkLUT()
762 if (Lut == NULL) return NULL; in _cmsReadDevicelinkLUT()
765 Lut = cmsPipelineDup(Lut); in _cmsReadDevicelinkLUT()
766 if (Lut == NULL) return NULL; in _cmsReadDevicelinkLUT()
771 ChangeInterpolationToTrilinear(Lut); in _cmsReadDevicelinkLUT()
777 if (OriginalType != cmsSigLut16Type) return Lut; in _cmsReadDevicelinkLUT()
782 if(!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageAllocLabV4ToV2(ContextID))) in _cmsReadDevicelinkLUT()
787 if(!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageAllocLabV2ToV4(ContextID))) in _cmsReadDevicelinkLUT()
791 return Lut; in _cmsReadDevicelinkLUT()
794 cmsPipelineFree(Lut); in _cmsReadDevicelinkLUT()