19 #ifndef AVFILTER_HERMITE_H
20 #define AVFILTER_HERMITE_H
26 double width = x1 - x0;
27 double t = (x - x0) / width;
29 double ct0, ct1, ct2, ct3;
39 ct2 = -3 * p0 - 2 * m0 + 3 * p1 - m1;
40 ct3 = 2 * p0 + m0 - 2 * p1 + m1;
42 return ct3 * t3 + ct2 * t2 + ct1 * t + ct0;
static double hermite_interpolation(double x, double x0, double x1, double p0, double p1, double m0, double m1)