summaryrefslogtreecommitdiffstats
path: root/interpol.h
blob: e4ba740c5fc017c40c2801a6535a90df8dc17ed7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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