Lines Matching refs:p16
254 Prelin16Data* p16 = (Prelin16Data*) D;
258 for (i=0; i < p16 ->nInputs; i++) {
260 p16 ->EvalCurveIn16[i](&Input[i], &StageABC[i], p16 ->ParamsCurveIn16[i]);
263 p16 ->EvalCLUT(StageABC, p16 ->StageDEF, p16 ->CLUTparams);
265 for (i=0; i < p16 ->nOutputs; i++) {
267 p16 ->EvalCurveOut16[i](&p16->StageDEF[i], &Output[i], p16 ->ParamsCurveOut16[i]);
275 Prelin16Data* p16 = (Prelin16Data*) ptr;
277 _cmsFree(ContextID, p16 ->StageDEF);
278 _cmsFree(ContextID, p16 ->EvalCurveOut16);
279 _cmsFree(ContextID, p16 ->ParamsCurveOut16);
281 _cmsFree(ContextID, p16);
287 Prelin16Data* p16 = (Prelin16Data*) ptr;
288 Prelin16Data* Duped = _cmsDupMem(ContextID, p16, sizeof(Prelin16Data));
292 Duped ->StageDEF = _cmsCalloc(ContextID, p16 ->nOutputs, sizeof(cmsUInt16Number));
293 Duped ->EvalCurveOut16 = _cmsDupMem(ContextID, p16 ->EvalCurveOut16, p16 ->nOutputs * sizeof(_cmsInterpFn16));
294 Duped ->ParamsCurveOut16 = _cmsDupMem(ContextID, p16 ->ParamsCurveOut16, p16 ->nOutputs * sizeof(cmsInterpParams* ));
307 Prelin16Data* p16 = _cmsMallocZero(ContextID, sizeof(Prelin16Data));
308 if (p16 == NULL) return NULL;
310 p16 ->nInputs = nInputs;
311 p16 -> nOutputs = nOutputs;
317 p16 -> ParamsCurveIn16[i] = NULL;
318 p16 -> EvalCurveIn16[i] = Eval16nop1D;
322 p16 -> ParamsCurveIn16[i] = In[i] ->InterpParams;
323 p16 -> EvalCurveIn16[i] = p16 ->ParamsCurveIn16[i]->Interpolation.Lerp16;
327 p16 ->CLUTparams = ColorMap;
328 p16 ->EvalCLUT = ColorMap ->Interpolation.Lerp16;
331 p16 -> StageDEF = _cmsCalloc(ContextID, p16 ->nOutputs, sizeof(cmsUInt16Number));
332 p16 -> EvalCurveOut16 = (_cmsInterpFn16*) _cmsCalloc(ContextID, nOutputs, sizeof(_cmsInterpFn16));
333 p16 -> ParamsCurveOut16 = (cmsInterpParams**) _cmsCalloc(ContextID, nOutputs, sizeof(cmsInterpParams* ));
338 p16 ->ParamsCurveOut16[i] = NULL;
339 p16 -> EvalCurveOut16[i] = Eval16nop1D;
343 p16 ->ParamsCurveOut16[i] = Out[i] ->InterpParams;
344 p16 -> EvalCurveOut16[i] = p16 ->ParamsCurveOut16[i]->Interpolation.Lerp16;
348 return p16;
410 cmsInterpParams* p16 = Grid ->Params;
422 px = ((cmsFloat64Number) At[0] * (p16->Domain[0])) / 65535.0;
423 py = ((cmsFloat64Number) At[1] * (p16->Domain[1])) / 65535.0;
424 pz = ((cmsFloat64Number) At[2] * (p16->Domain[2])) / 65535.0;
425 pw = ((cmsFloat64Number) At[3] * (p16->Domain[3])) / 65535.0;
437 index = p16 -> opta[3] * x0 +
438 p16 -> opta[2] * y0 +
439 p16 -> opta[1] * z0 +
440 p16 -> opta[0] * w0;
445 px = ((cmsFloat64Number) At[0] * (p16->Domain[0])) / 65535.0;
446 py = ((cmsFloat64Number) At[1] * (p16->Domain[1])) / 65535.0;
447 pz = ((cmsFloat64Number) At[2] * (p16->Domain[2])) / 65535.0;
457 index = p16 -> opta[2] * x0 +
458 p16 -> opta[1] * y0 +
459 p16 -> opta[0] * z0;
464 px = ((cmsFloat64Number) At[0] * (p16->Domain[0])) / 65535.0;
470 index = p16 -> opta[0] * x0;
590 Prelin16Data* p16;
701 p16 = PrelinOpt16alloc(Dest ->ContextID,
709 _cmsPipelineSetOptimizationParameters(Dest, PrelinEval16, (void*) p16, PrelinOpt16free, Prelin16dup);
1107 Prelin16Data* p16 = PrelinOpt16alloc(OptimizedLUT ->ContextID,
1110 if (p16 == NULL) return FALSE;
1112 _cmsPipelineSetOptimizationParameters(OptimizedLUT, PrelinEval16, (void*) p16, PrelinOpt16free, Prelin16dup);