Home | History | Annotate | Download | only in src

Lines Matching full:contextid

31 cmsStage* CMSEXPORT _cmsStageAllocPlaceholder(cmsContext ContextID,
40 cmsStage* ph = (cmsStage*) _cmsMallocZero(ContextID, sizeof(cmsStage));
45 ph ->ContextID = ContextID;
70 cmsStage* CMSEXPORT cmsStageAllocIdentity(cmsContext ContextID, cmsUInt32Number nChannels)
72 return _cmsStageAllocPlaceholder(ContextID,
203 _cmsFree(mpe ->ContextID, Data ->TheCurves);
204 _cmsFree(mpe ->ContextID, Data);
215 NewElem = (_cmsStageToneCurvesData*) _cmsMallocZero(mpe ->ContextID, sizeof(_cmsStageToneCurvesData));
219 NewElem ->TheCurves = (cmsToneCurve**) _cmsCalloc(mpe ->ContextID, NewElem ->nCurves, sizeof(cmsToneCurve*));
241 _cmsFree(mpe ->ContextID, NewElem ->TheCurves);
242 _cmsFree(mpe ->ContextID, NewElem);
248 cmsStage* CMSEXPORT cmsStageAllocToneCurves(cmsContext ContextID, cmsUInt32Number nChannels, cmsToneCurve* const Curves[])
255 NewMPE = _cmsStageAllocPlaceholder(ContextID, cmsSigCurveSetElemType, nChannels, nChannels,
259 NewElem = (_cmsStageToneCurvesData*) _cmsMallocZero(ContextID, sizeof(_cmsStageToneCurvesData));
268 NewElem ->TheCurves = (cmsToneCurve**) _cmsCalloc(ContextID, nChannels, sizeof(cmsToneCurve*));
277 NewElem ->TheCurves[i] = cmsBuildGamma(ContextID, 1.0);
295 cmsStage* _cmsStageAllocIdentityCurves(cmsContext ContextID, int nChannels)
297 cmsStage* mpe = cmsStageAllocToneCurves(ContextID, nChannels, NULL);
347 NewElem = (_cmsStageMatrixData*) _cmsMallocZero(mpe ->ContextID, sizeof(_cmsStageMatrixData));
352 NewElem ->Double = (cmsFloat64Number*) _cmsDupMem(mpe ->ContextID, Data ->Double, sz * sizeof(cmsFloat64Number)) ;
355 NewElem ->Offset = (cmsFloat64Number*) _cmsDupMem(mpe ->ContextID,
369 _cmsFree(mpe ->ContextID, Data ->Double);
372 _cmsFree(mpe ->ContextID, Data ->Offset);
374 _cmsFree(mpe ->ContextID, mpe ->Data);
379 cmsStage* CMSEXPORT cmsStageAllocMatrix(cmsContext ContextID, cmsUInt32Number Rows, cmsUInt32Number Cols,
394 NewMPE = _cmsStageAllocPlaceholder(ContextID, cmsSigMatrixElemType, Cols, Rows,
399 NewElem = (_cmsStageMatrixData*) _cmsMallocZero(ContextID, sizeof(_cmsStageMatrixData));
403 NewElem ->Double = (cmsFloat64Number*) _cmsCalloc(ContextID, n, sizeof(cmsFloat64Number));
417 NewElem ->Offset = (cmsFloat64Number*) _cmsCalloc(ContextID, Cols, sizeof(cmsFloat64Number));
494 NewElem = (_cmsStageCLutData*) _cmsMallocZero(mpe ->ContextID, sizeof(_cmsStageCLutData));
503 NewElem ->Tab.TFloat = (cmsFloat32Number*) _cmsDupMem(mpe ->ContextID, Data ->Tab.TFloat, Data ->nEntries * sizeof (cmsFloat32Number));
507 NewElem ->Tab.T = (cmsUInt16Number*) _cmsDupMem(mpe ->ContextID, Data ->Tab.T, Data ->nEntries * sizeof (cmsUInt16Number));
513 NewElem ->Params = _cmsComputeInterpParamsEx(mpe ->ContextID,
524 _cmsFree(mpe ->ContextID, NewElem -> Tab.T);
525 _cmsFree(mpe ->ContextID, NewElem);
541 _cmsFree(mpe ->ContextID, Data -> Tab.T);
544 _cmsFree(mpe ->ContextID, mpe ->Data);
550 cmsStage* CMSEXPORT cmsStageAllocCLut16bitGranular(cmsContext ContextID,
563 cmsSignalError(ContextID, cmsERROR_RANGE, "Too many input channels (%d channels, max=%d)", inputChan, MAX_INPUT_DIMENSIONS);
567 NewMPE = _cmsStageAllocPlaceholder(ContextID, cmsSigCLutElemType, inputChan, outputChan,
572 NewElem = (_cmsStageCLutData*) _cmsMallocZero(ContextID, sizeof(_cmsStageCLutData));
589 NewElem ->Tab.T = (cmsUInt16Number*) _cmsCalloc(ContextID, n, sizeof(cmsUInt16Number));
601 NewElem ->Params = _cmsComputeInterpParamsEx(ContextID, clutPoints, inputChan, outputChan, NewElem ->Tab.T, CMS_LERP_FLAGS_16BITS);
610 cmsStage* CMSEXPORT cmsStageAllocCLut16bit(cmsContext ContextID,
623 return cmsStageAllocCLut16bitGranular(ContextID, Dimensions, inputChan, outputChan, Table);
627 cmsStage* CMSEXPORT cmsStageAllocCLutFloat(cmsContext ContextID,
640 return cmsStageAllocCLutFloatGranular(ContextID, Dimensions, inputChan, outputChan, Table);
645 cmsStage* CMSEXPORT cmsStageAllocCLutFloatGranular(cmsContext ContextID, const cmsUInt32Number clutPoints[], cmsUInt32Number inputChan, cmsUInt32Number outputChan, const cmsFloat32Number* Table)
654 cmsSignalError(ContextID, cmsERROR_RANGE, "Too many input channels (%d channels, max=%d)", inputChan, MAX_INPUT_DIMENSIONS);
658 NewMPE = _cmsStageAllocPlaceholder(ContextID, cmsSigCLutElemType, inputChan, outputChan,
663 NewElem = (_cmsStageCLutData*) _cmsMallocZero(ContextID, sizeof(_cmsStageCLutData));
680 NewElem ->Tab.TFloat = (cmsFloat32Number*) _cmsCalloc(ContextID, n, sizeof(cmsFloat32Number));
692 NewElem ->Params = _cmsComputeInterpParamsEx(ContextID, clutPoints, inputChan, outputChan, NewElem ->Tab.TFloat, CMS_LERP_FLAGS_FLOAT);
715 cmsStage* _cmsStageAllocIdentityCLut(cmsContext ContextID, int nChan)
724 mpe = cmsStageAllocCLut16bitGranular(ContextID, Dimensions, nChan, nChan, NULL);
965 cmsStage* _cmsStageAllocLab2XYZ(cmsContext ContextID)
967 return _cmsStageAllocPlaceholder(ContextID, cmsSigLab2XYZElemType, 3, 3, EvaluateLab2XYZ, NULL, NULL, NULL);
978 cmsStage* _cmsStageAllocLabV2ToV4curves(cmsContext ContextID)
984 LabTable[0] = cmsBuildTabulatedToneCurve16(ContextID, 258, NULL);
985 LabTable[1] = cmsBuildTabulatedToneCurve16(ContextID, 258, NULL);
986 LabTable[2] = cmsBuildTabulatedToneCurve16(ContextID, 258, NULL);
1005 mpe = cmsStageAllocToneCurves(ContextID, 3, LabTable);
1016 cmsStage* _cmsStageAllocLabV2ToV4(cmsContext ContextID)
1023 cmsStage *mpe = cmsStageAllocMatrix(ContextID, 3, 3, V2ToV4, NULL);
1032 cmsStage* _cmsStageAllocLabV4ToV2(cmsContext ContextID)
1039 cmsStage *mpe = cmsStageAllocMatrix(ContextID, 3, 3, V4ToV2, NULL);
1052 cmsStage* _cmsStageNormalizeFromLabFloat(cmsContext ContextID)
1066 cmsStage *mpe = cmsStageAllocMatrix(ContextID, 3, 3, a1, o1);
1074 cmsStage* _cmsStageNormalizeFromXyzFloat(cmsContext ContextID)
1084 cmsStage *mpe = cmsStageAllocMatrix(ContextID, 3, 3, a1, NULL);
1091 ContextID)
1105 cmsStage *mpe = cmsStageAllocMatrix(ContextID, 3, 3, a1, o1);
1111 cmsStage* _cmsStageNormalizeToXyzFloat(cmsContext ContextID)
1122 cmsStage *mpe = cmsStageAllocMatrix(ContextID, 3, 3, a1, NULL);
1159 cmsStage* _cmsStageAllocXYZ2Lab(cmsContext ContextID)
1161 return _cmsStageAllocPlaceholder(ContextID, cmsSigXYZ2LabElemType, 3, 3, EvaluateXYZ2Lab, NULL, NULL, NULL);
1169 cmsStage* _cmsStageAllocLabPrelin(cmsContext ContextID)
1174 LabTable[0] = cmsBuildGamma(ContextID, 1.0);
1175 LabTable[1] = cmsBuildParametricToneCurve(ContextID, 108, Params);
1176 LabTable[2] = cmsBuildParametricToneCurve(ContextID, 108, Params);
1178 return cmsStageAllocToneCurves(ContextID, 3, LabTable);
1188 _cmsFree(mpe ->ContextID, mpe);
1224 NewMPE = _cmsStageAllocPlaceholder(mpe ->ContextID,
1330 cmsPipeline* CMSEXPORT cmsPipelineAlloc(cmsContext ContextID, cmsUInt32Number InputChannels, cmsUInt32Number OutputChannels)
1337 NewLUT = (cmsPipeline*) _cmsMallocZero(ContextID, sizeof(cmsPipeline));
1349 NewLUT ->ContextID = ContextID;
1359 return lut ->ContextID;
1389 if (lut ->FreeDataFn) lut ->FreeDataFn(lut ->ContextID, lut ->Data);
1391 _cmsFree(lut ->ContextID, lut);
1421 NewLUT = cmsPipelineAlloc(lut ->ContextID, lut ->InputChannels, lut ->OutputChannels);
1452 NewLUT ->Data = NewLUT ->DupDataFn(lut ->ContextID, lut->Data);