ref: 4717f3fcc1523ee0e7e7b85273d6c5dd5bf192a3
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);