Lines Matching refs:Curve
857 void CMSEXPORT cmsFreeToneCurve(cmsToneCurve* Curve) in cmsFreeToneCurve() argument
863 if (Curve == NULL || Curve->InterpParams == NULL) return; in cmsFreeToneCurve()
865 ContextID = Curve ->InterpParams->ContextID; in cmsFreeToneCurve()
867 _cmsFreeInterpParams(Curve ->InterpParams); in cmsFreeToneCurve()
868 Curve ->InterpParams = NULL; in cmsFreeToneCurve()
870 if (Curve -> Table16) { in cmsFreeToneCurve()
871 _cmsFree(ContextID, Curve ->Table16); in cmsFreeToneCurve()
872 Curve ->Table16 = NULL; in cmsFreeToneCurve()
875 if (Curve ->Segments) { in cmsFreeToneCurve()
879 for (i=0; i < Curve ->nSegments; i++) { in cmsFreeToneCurve()
881 if (Curve ->Segments[i].SampledPoints) { in cmsFreeToneCurve()
882 _cmsFree(ContextID, Curve ->Segments[i].SampledPoints); in cmsFreeToneCurve()
883 Curve ->Segments[i].SampledPoints = NULL; in cmsFreeToneCurve()
886 if (Curve ->SegInterp[i] != 0) { in cmsFreeToneCurve()
887 _cmsFreeInterpParams(Curve->SegInterp[i]); in cmsFreeToneCurve()
888 Curve->SegInterp[i] = NULL; in cmsFreeToneCurve()
892 _cmsFree(ContextID, Curve ->Segments); in cmsFreeToneCurve()
893 Curve ->Segments = NULL; in cmsFreeToneCurve()
894 _cmsFree(ContextID, Curve ->SegInterp); in cmsFreeToneCurve()
895 Curve ->SegInterp = NULL; in cmsFreeToneCurve()
898 if (Curve -> Evals) { in cmsFreeToneCurve()
899 _cmsFree(ContextID, Curve -> Evals); in cmsFreeToneCurve()
900 Curve -> Evals = NULL; in cmsFreeToneCurve()
903 if (Curve) { in cmsFreeToneCurve()
904 _cmsFree(ContextID, Curve); in cmsFreeToneCurve()
905 Curve = NULL; in cmsFreeToneCurve()
910 void CMSEXPORT cmsFreeToneCurveTriple(cmsToneCurve* Curve[3]) in cmsFreeToneCurveTriple()
913 _cmsAssert(Curve != NULL); in cmsFreeToneCurveTriple()
915 if (Curve[0] != NULL) cmsFreeToneCurve(Curve[0]); in cmsFreeToneCurveTriple()
916 if (Curve[1] != NULL) cmsFreeToneCurve(Curve[1]); in cmsFreeToneCurveTriple()
917 if (Curve[2] != NULL) cmsFreeToneCurve(Curve[2]); in cmsFreeToneCurveTriple()
919 Curve[0] = Curve[1] = Curve[2] = NULL; in cmsFreeToneCurveTriple()
1280 cmsBool CMSEXPORT cmsIsToneCurveLinear(const cmsToneCurve* Curve) in cmsIsToneCurveLinear() argument
1285 _cmsAssert(Curve != NULL); in cmsIsToneCurveLinear()
1287 for (i=0; i < (int) Curve ->nEntries; i++) { in cmsIsToneCurveLinear()
1289 diff = abs((int) Curve->Table16[i] - (int) _cmsQuantizeVal(i, Curve ->nEntries)); in cmsIsToneCurveLinear()
1369 cmsFloat32Number CMSEXPORT cmsEvalToneCurveFloat(const cmsToneCurve* Curve, cmsFloat32Number v) in cmsEvalToneCurveFloat() argument
1371 _cmsAssert(Curve != NULL); in cmsEvalToneCurveFloat()
1374 if (Curve ->nSegments == 0) { in cmsEvalToneCurveFloat()
1379 Out = cmsEvalToneCurve16(Curve, In); in cmsEvalToneCurveFloat()
1384 return (cmsFloat32Number) EvalSegmentedFn(Curve, v); in cmsEvalToneCurveFloat()
1388 cmsUInt16Number CMSEXPORT cmsEvalToneCurve16(const cmsToneCurve* Curve, cmsUInt16Number v) in cmsEvalToneCurve16() argument
1392 _cmsAssert(Curve != NULL); in cmsEvalToneCurve16()
1394 Curve ->InterpParams ->Interpolation.Lerp16(&v, &out, Curve ->InterpParams); in cmsEvalToneCurve16()