summaryrefslogtreecommitdiffstats
path: root/interpol.h
diff options
context:
space:
mode:
Diffstat (limited to 'interpol.h')
-rw-r--r--interpol.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/interpol.h b/interpol.h
new file mode 100644
index 0000000..e4ba740
--- /dev/null
+++ b/interpol.h
@@ -0,0 +1,17 @@
+#ifndef foointerpolhfoo
+#define foointerpolhfoo
+
+struct interpol_state {
+ int frac;
+ float *coeff;
+ int *coeff_valid;
+ int radius;
+};
+
+
+void interpol_init(struct interpol_state *s, int frac, int radius);
+void interpol_done(struct interpol_state *s);
+
+float interpol_get(struct interpol_state *s, float *p, int l, float x);
+
+#endif