• Home
  • Raw
  • Download

Lines Matching refs:Curve

748 void CMSEXPORT cmsFreeToneCurve(cmsToneCurve* Curve)  in cmsFreeToneCurve()  argument
754 if (Curve == NULL || Curve->InterpParams == NULL) return; in cmsFreeToneCurve()
756 ContextID = Curve ->InterpParams->ContextID; in cmsFreeToneCurve()
758 _cmsFreeInterpParams(Curve ->InterpParams); in cmsFreeToneCurve()
759 Curve ->InterpParams = NULL; in cmsFreeToneCurve()
761 if (Curve -> Table16) { in cmsFreeToneCurve()
762 _cmsFree(ContextID, Curve ->Table16); in cmsFreeToneCurve()
763 Curve ->Table16 = NULL; in cmsFreeToneCurve()
766 if (Curve ->Segments) { in cmsFreeToneCurve()
770 for (i=0; i < Curve ->nSegments; i++) { in cmsFreeToneCurve()
772 if (Curve ->Segments[i].SampledPoints) { in cmsFreeToneCurve()
773 _cmsFree(ContextID, Curve ->Segments[i].SampledPoints); in cmsFreeToneCurve()
774 Curve ->Segments[i].SampledPoints = NULL; in cmsFreeToneCurve()
777 if (Curve ->SegInterp[i] != 0) { in cmsFreeToneCurve()
778 _cmsFreeInterpParams(Curve->SegInterp[i]); in cmsFreeToneCurve()
779 Curve->SegInterp[i] = NULL; in cmsFreeToneCurve()
783 _cmsFree(ContextID, Curve ->Segments); in cmsFreeToneCurve()
784 Curve ->Segments = NULL; in cmsFreeToneCurve()
785 _cmsFree(ContextID, Curve ->SegInterp); in cmsFreeToneCurve()
786 Curve ->SegInterp = NULL; in cmsFreeToneCurve()
789 if (Curve -> Evals) { in cmsFreeToneCurve()
790 _cmsFree(ContextID, Curve -> Evals); in cmsFreeToneCurve()
791 Curve -> Evals = NULL; in cmsFreeToneCurve()
794 if (Curve) { in cmsFreeToneCurve()
795 _cmsFree(ContextID, Curve); in cmsFreeToneCurve()
796 Curve = NULL; in cmsFreeToneCurve()
801 void CMSEXPORT cmsFreeToneCurveTriple(cmsToneCurve* Curve[3]) in cmsFreeToneCurveTriple()
804 _cmsAssert(Curve != NULL); in cmsFreeToneCurveTriple()
806 if (Curve[0] != NULL) cmsFreeToneCurve(Curve[0]); in cmsFreeToneCurveTriple()
807 if (Curve[1] != NULL) cmsFreeToneCurve(Curve[1]); in cmsFreeToneCurveTriple()
808 if (Curve[2] != NULL) cmsFreeToneCurve(Curve[2]); in cmsFreeToneCurveTriple()
810 Curve[0] = Curve[1] = Curve[2] = NULL; in cmsFreeToneCurveTriple()
1122 cmsBool CMSEXPORT cmsIsToneCurveLinear(const cmsToneCurve* Curve) in cmsIsToneCurveLinear() argument
1127 _cmsAssert(Curve != NULL); in cmsIsToneCurveLinear()
1129 for (i=0; i < Curve ->nEntries; i++) { in cmsIsToneCurveLinear()
1131 diff = abs((int) Curve->Table16[i] - (int) _cmsQuantizeVal(i, Curve ->nEntries)); in cmsIsToneCurveLinear()
1211 cmsFloat32Number CMSEXPORT cmsEvalToneCurveFloat(const cmsToneCurve* Curve, cmsFloat32Number v) in cmsEvalToneCurveFloat() argument
1213 _cmsAssert(Curve != NULL); in cmsEvalToneCurveFloat()
1216 if (Curve ->nSegments == 0) { in cmsEvalToneCurveFloat()
1221 Out = cmsEvalToneCurve16(Curve, In); in cmsEvalToneCurveFloat()
1226 return (cmsFloat32Number) EvalSegmentedFn(Curve, v); in cmsEvalToneCurveFloat()
1230 cmsUInt16Number CMSEXPORT cmsEvalToneCurve16(const cmsToneCurve* Curve, cmsUInt16Number v) in cmsEvalToneCurve16() argument
1234 _cmsAssert(Curve != NULL); in cmsEvalToneCurve16()
1236 Curve ->InterpParams ->Interpolation.Lerp16(&v, &out, Curve ->InterpParams); in cmsEvalToneCurve16()