Lines Matching refs:lut
1275 cmsBool BlessLUT(cmsPipeline* lut) in BlessLUT() argument
1278 if (lut ->Elements != NULL) { in BlessLUT()
1285 First = cmsPipelineGetPtrToFirstStage(lut); in BlessLUT()
1286 Last = cmsPipelineGetPtrToLastStage(lut); in BlessLUT()
1290 lut->InputChannels = First->InputChannels; in BlessLUT()
1291 lut->OutputChannels = Last->OutputChannels; in BlessLUT()
1314 cmsPipeline* lut = (cmsPipeline*) D; in _LUTeval16() local
1319 From16ToFloat(In, &Storage[Phase][0], lut ->InputChannels); in _LUTeval16()
1321 for (mpe = lut ->Elements; in _LUTeval16()
1331 FromFloatTo16(&Storage[Phase][0], Out, lut ->OutputChannels); in _LUTeval16()
1340 cmsPipeline* lut = (cmsPipeline*) D; in _LUTevalFloat() local
1345 memmove(&Storage[Phase][0], In, lut ->InputChannels * sizeof(cmsFloat32Number)); in _LUTevalFloat()
1347 for (mpe = lut ->Elements; in _LUTevalFloat()
1356 memmove(Out, &Storage[Phase][0], lut ->OutputChannels * sizeof(cmsFloat32Number)); in _LUTevalFloat()
1395 cmsContext CMSEXPORT cmsGetPipelineContextID(const cmsPipeline* lut) in cmsGetPipelineContextID() argument
1397 _cmsAssert(lut != NULL); in cmsGetPipelineContextID()
1398 return lut ->ContextID; in cmsGetPipelineContextID()
1401 cmsUInt32Number CMSEXPORT cmsPipelineInputChannels(const cmsPipeline* lut) in cmsPipelineInputChannels() argument
1403 _cmsAssert(lut != NULL); in cmsPipelineInputChannels()
1404 return lut ->InputChannels; in cmsPipelineInputChannels()
1407 cmsUInt32Number CMSEXPORT cmsPipelineOutputChannels(const cmsPipeline* lut) in cmsPipelineOutputChannels() argument
1409 _cmsAssert(lut != NULL); in cmsPipelineOutputChannels()
1410 return lut ->OutputChannels; in cmsPipelineOutputChannels()
1414 void CMSEXPORT cmsPipelineFree(cmsPipeline* lut) in cmsPipelineFree() argument
1418 if (lut == NULL) return; in cmsPipelineFree()
1420 for (mpe = lut ->Elements; in cmsPipelineFree()
1428 if (lut ->FreeDataFn) lut ->FreeDataFn(lut ->ContextID, lut ->Data); in cmsPipelineFree()
1430 _cmsFree(lut ->ContextID, lut); in cmsPipelineFree()
1435 …XPORT cmsPipelineEval16(const cmsUInt16Number In[], cmsUInt16Number Out[], const cmsPipeline* lut) in cmsPipelineEval16() argument
1437 _cmsAssert(lut != NULL); in cmsPipelineEval16()
1438 lut ->Eval16Fn(In, Out, lut->Data); in cmsPipelineEval16()
1443 …T cmsPipelineEvalFloat(const cmsFloat32Number In[], cmsFloat32Number Out[], const cmsPipeline* lut) in cmsPipelineEvalFloat() argument
1445 _cmsAssert(lut != NULL); in cmsPipelineEvalFloat()
1446 lut ->EvalFloatFn(In, Out, lut); in cmsPipelineEvalFloat()
1452 cmsPipeline* CMSEXPORT cmsPipelineDup(const cmsPipeline* lut) in cmsPipelineDup() argument
1458 if (lut == NULL) return NULL; in cmsPipelineDup()
1460 NewLUT = cmsPipelineAlloc(lut ->ContextID, lut ->InputChannels, lut ->OutputChannels); in cmsPipelineDup()
1463 for (mpe = lut ->Elements; in cmsPipelineDup()
1486 NewLUT ->Eval16Fn = lut ->Eval16Fn; in cmsPipelineDup()
1487 NewLUT ->EvalFloatFn = lut ->EvalFloatFn; in cmsPipelineDup()
1488 NewLUT ->DupDataFn = lut ->DupDataFn; in cmsPipelineDup()
1489 NewLUT ->FreeDataFn = lut ->FreeDataFn; in cmsPipelineDup()
1492 NewLUT ->Data = NewLUT ->DupDataFn(lut ->ContextID, lut->Data); in cmsPipelineDup()
1495 NewLUT ->SaveAs8Bits = lut ->SaveAs8Bits; in cmsPipelineDup()
1499 _cmsFree(lut->ContextID, NewLUT); in cmsPipelineDup()
1507 int CMSEXPORT cmsPipelineInsertStage(cmsPipeline* lut, cmsStageLoc loc, cmsStage* mpe) in cmsPipelineInsertStage() argument
1511 if (lut == NULL || mpe == NULL) in cmsPipelineInsertStage()
1517 mpe ->Next = lut ->Elements; in cmsPipelineInsertStage()
1518 lut ->Elements = mpe; in cmsPipelineInsertStage()
1523 if (lut ->Elements == NULL) in cmsPipelineInsertStage()
1524 lut ->Elements = mpe; in cmsPipelineInsertStage()
1527 for (pt = lut ->Elements; in cmsPipelineInsertStage()
1539 return BlessLUT(lut); in cmsPipelineInsertStage()
1543 void CMSEXPORT cmsPipelineUnlinkStage(cmsPipeline* lut, cmsStageLoc loc, cmsStage** mpe) in cmsPipelineUnlinkStage() argument
1550 if (lut ->Elements == NULL) { in cmsPipelineUnlinkStage()
1560 cmsStage* elem = lut ->Elements; in cmsPipelineUnlinkStage()
1562 lut ->Elements = elem -> Next; in cmsPipelineUnlinkStage()
1571 for (pt = lut ->Elements; in cmsPipelineUnlinkStage()
1584 lut ->Elements = NULL; in cmsPipelineUnlinkStage()
1595 BlessLUT(lut); in cmsPipelineUnlinkStage()
1625 cmsBool CMSEXPORT cmsPipelineSetSaveAs8bitsFlag(cmsPipeline* lut, cmsBool On) in cmsPipelineSetSaveAs8bitsFlag() argument
1627 cmsBool Anterior = lut ->SaveAs8Bits; in cmsPipelineSetSaveAs8bitsFlag()
1629 lut ->SaveAs8Bits = On; in cmsPipelineSetSaveAs8bitsFlag()
1634 cmsStage* CMSEXPORT cmsPipelineGetPtrToFirstStage(const cmsPipeline* lut) in cmsPipelineGetPtrToFirstStage() argument
1636 return lut ->Elements; in cmsPipelineGetPtrToFirstStage()
1639 cmsStage* CMSEXPORT cmsPipelineGetPtrToLastStage(const cmsPipeline* lut) in cmsPipelineGetPtrToLastStage() argument
1643 for (mpe = lut ->Elements; mpe != NULL; mpe = mpe ->Next) in cmsPipelineGetPtrToLastStage()
1649 cmsUInt32Number CMSEXPORT cmsPipelineStageCount(const cmsPipeline* lut) in cmsPipelineStageCount() argument
1654 for (n=0, mpe = lut ->Elements; mpe != NULL; mpe = mpe ->Next) in cmsPipelineStageCount()
1744 const cmsPipeline* lut) in cmsPipelineEvalReverseFloat() argument
1753 if (lut ->InputChannels != 3 && lut ->InputChannels != 4) return FALSE; in cmsPipelineEvalReverseFloat()
1754 if (lut ->OutputChannels != 3) return FALSE; in cmsPipelineEvalReverseFloat()
1770 if (lut ->InputChannels == 4) { in cmsPipelineEvalReverseFloat()
1780 cmsPipelineEvalFloat(x, fx, lut); in cmsPipelineEvalReverseFloat()
1791 for (j=0; j < lut ->InputChannels; j++) in cmsPipelineEvalReverseFloat()
1808 cmsPipelineEvalFloat(xd, fxd, lut); in cmsPipelineEvalReverseFloat()