Lines Matching refs:TheCurves
163 return Data ->TheCurves;
179 if (Data ->TheCurves == NULL) return;
182 Out[i] = cmsEvalToneCurveFloat(Data ->TheCurves[i], In[i]);
197 if (Data ->TheCurves != NULL) {
199 if (Data ->TheCurves[i] != NULL)
200 cmsFreeToneCurve(Data ->TheCurves[i]);
203 _cmsFree(mpe ->ContextID, Data ->TheCurves);
219 NewElem ->TheCurves = (cmsToneCurve**) _cmsCalloc(mpe ->ContextID, NewElem ->nCurves, sizeof(cmsToneCurve*));
221 if (NewElem ->TheCurves == NULL) goto Error;
226 NewElem ->TheCurves[i] = cmsDupToneCurve(Data ->TheCurves[i]);
227 if (NewElem ->TheCurves[i] == NULL) goto Error;
235 if (NewElem ->TheCurves != NULL) {
237 if (NewElem ->TheCurves[i])
238 cmsFreeToneCurve(NewElem ->TheCurves[i]);
241 _cmsFree(mpe ->ContextID, NewElem ->TheCurves);
268 NewElem ->TheCurves = (cmsToneCurve**) _cmsCalloc(ContextID, nChannels, sizeof(cmsToneCurve*));
269 if (NewElem ->TheCurves == NULL) {
277 NewElem ->TheCurves[i] = cmsBuildGamma(ContextID, 1.0);
280 NewElem ->TheCurves[i] = cmsDupToneCurve(Curves[i]);
283 if (NewElem ->TheCurves[i] == NULL) {