ref: 6a7c384764bf6d69450037b1fb2ff3dd96b5e81c
dir: /h/thresh.h/
typedef struct {
int init;
SPFLOAT prev, thresh, mode;
} sp_thresh;
int sp_thresh_create(sp_thresh **p);
int sp_thresh_destroy(sp_thresh **p);
int sp_thresh_init(sp_data *sp, sp_thresh *p);
int sp_thresh_compute(sp_data *sp, sp_thresh *p, SPFLOAT *in, SPFLOAT *out);