• 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()
367 cmsPipeline* Lut = (cmsPipeline*) cmsReadTag(hProfile, tag16); in _cmsReadInputLUT() local
368 if (Lut == NULL) return NULL; in _cmsReadInputLUT()
374 Lut = cmsPipelineDup(Lut); in _cmsReadInputLUT()
378 return Lut; in _cmsReadInputLUT()
382 !cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageAllocLabV4ToV2(ContextID))) in _cmsReadInputLUT()
386 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageAllocLabV2ToV4(ContextID))) in _cmsReadInputLUT()
389 return Lut; in _cmsReadInputLUT()
391 cmsPipelineFree(Lut); in _cmsReadInputLUT()
421 cmsPipeline* Lut; in BuildGrayOutputPipeline() local
430 Lut = cmsPipelineAlloc(ContextID, 3, 1); in BuildGrayOutputPipeline()
431 if (Lut == NULL) { in BuildGrayOutputPipeline()
438 …if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocMatrix(ContextID, 1, 3, PickLstarMatrix,… in BuildGrayOutputPipeline()
442 …if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocMatrix(ContextID, 1, 3, PickYMatrix, NUL… in BuildGrayOutputPipeline()
446 if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocToneCurves(ContextID, 1, &RevGrayTRC))) in BuildGrayOutputPipeline()
450 return Lut; in BuildGrayOutputPipeline()
454 cmsPipelineFree(Lut); in BuildGrayOutputPipeline()
462 cmsPipeline* Lut; in BuildRGBOutputMatrixShaper() local
497 Lut = cmsPipelineAlloc(ContextID, 3, 3); in BuildRGBOutputMatrixShaper()
498 if (Lut != NULL) { in BuildRGBOutputMatrixShaper()
505 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageAllocLab2XYZ(ContextID))) in BuildRGBOutputMatrixShaper()
509 …if (!cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocMatrix(ContextID, 3, 3, (cmsFloat64Number… in BuildRGBOutputMatrixShaper()
510 … !cmsPipelineInsertStage(Lut, cmsAT_END, cmsStageAllocToneCurves(ContextID, 3, InvShapes))) in BuildRGBOutputMatrixShaper()
515 return Lut; in BuildRGBOutputMatrixShaper()
518 cmsPipelineFree(Lut); in BuildRGBOutputMatrixShaper()
525 void ChangeInterpolationToTrilinear(cmsPipeline* Lut) in ChangeInterpolationToTrilinear() argument
529 for (Stage = cmsPipelineGetPtrToFirstStage(Lut); in ChangeInterpolationToTrilinear()
538 _cmsSetInterpolationRoutine(Lut->ContextID, CLUT ->Params); in ChangeInterpolationToTrilinear()
549 cmsPipeline* Lut = cmsPipelineDup((cmsPipeline*) cmsReadTag(hProfile, tagFloat)); in _cmsReadFloatOutputTag() local
553 if (Lut == NULL) return NULL; in _cmsReadFloatOutputTag()
559 if (!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageNormalizeToLabFloat(ContextID))) in _cmsReadFloatOutputTag()
565 if (!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageNormalizeToXyzFloat(ContextID))) in _cmsReadFloatOutputTag()
572 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageNormalizeFromLabFloat(ContextID))) in _cmsReadFloatOutputTag()
577 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageNormalizeFromXyzFloat(ContextID))) in _cmsReadFloatOutputTag()
581 return Lut; in _cmsReadFloatOutputTag()
584 cmsPipelineFree(Lut); in _cmsReadFloatOutputTag()
618 cmsPipeline* Lut = (cmsPipeline*) cmsReadTag(hProfile, tag16); in _cmsReadOutputLUT() local
619 if (Lut == NULL) return NULL; in _cmsReadOutputLUT()
625 Lut = cmsPipelineDup(Lut); in _cmsReadOutputLUT()
626 if (Lut == NULL) return NULL; in _cmsReadOutputLUT()
631 ChangeInterpolationToTrilinear(Lut); in _cmsReadOutputLUT()
635 return Lut; in _cmsReadOutputLUT()
638 if (!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageAllocLabV4ToV2(ContextID))) in _cmsReadOutputLUT()
643 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageAllocLabV2ToV4(ContextID))) in _cmsReadOutputLUT()
646 return Lut; in _cmsReadOutputLUT()
648 cmsPipelineFree(Lut); in _cmsReadOutputLUT()
674 cmsPipeline* Lut = cmsPipelineDup((cmsPipeline*)cmsReadTag(hProfile, tagFloat)); in _cmsReadFloatDevicelinkTag() local
678 if (Lut == NULL) return NULL; in _cmsReadFloatDevicelinkTag()
682 if (!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageNormalizeToLabFloat(ContextID))) in _cmsReadFloatDevicelinkTag()
688 if (!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageNormalizeToXyzFloat(ContextID))) in _cmsReadFloatDevicelinkTag()
694 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageNormalizeFromLabFloat(ContextID))) in _cmsReadFloatDevicelinkTag()
700 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageNormalizeFromXyzFloat(ContextID))) in _cmsReadFloatDevicelinkTag()
704 return Lut; in _cmsReadFloatDevicelinkTag()
706 cmsPipelineFree(Lut); in _cmsReadFloatDevicelinkTag()
714 cmsPipeline* Lut; in _cmsReadDevicelinkLUT() local
734 Lut = cmsPipelineAlloc(ContextID, 0, 0); in _cmsReadDevicelinkLUT()
735 if (Lut == NULL) in _cmsReadDevicelinkLUT()
738 if (!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageAllocNamedColor(nc, FALSE))) in _cmsReadDevicelinkLUT()
742 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageAllocLabV2ToV4(ContextID))) in _cmsReadDevicelinkLUT()
745 return Lut; in _cmsReadDevicelinkLUT()
747 cmsPipelineFree(Lut); in _cmsReadDevicelinkLUT()
774 Lut = (cmsPipeline*)cmsReadTag(hProfile, tag16); in _cmsReadDevicelinkLUT()
775 if (Lut == NULL) return NULL; in _cmsReadDevicelinkLUT()
778 Lut = cmsPipelineDup(Lut); in _cmsReadDevicelinkLUT()
779 if (Lut == NULL) return NULL; in _cmsReadDevicelinkLUT()
784 ChangeInterpolationToTrilinear(Lut); in _cmsReadDevicelinkLUT()
790 if (OriginalType != cmsSigLut16Type) return Lut; in _cmsReadDevicelinkLUT()
795 if (!cmsPipelineInsertStage(Lut, cmsAT_BEGIN, _cmsStageAllocLabV4ToV2(ContextID))) in _cmsReadDevicelinkLUT()
800 if (!cmsPipelineInsertStage(Lut, cmsAT_END, _cmsStageAllocLabV2ToV4(ContextID))) in _cmsReadDevicelinkLUT()
804 return Lut; in _cmsReadDevicelinkLUT()
807 cmsPipelineFree(Lut); in _cmsReadDevicelinkLUT()