2020-12-03 21:56:45 +01:00
|
|
|
/*
|
|
|
|
* filterstack.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct {
|
2020-12-07 04:45:51 +01:00
|
|
|
int numero; /* id in rapulator */
|
2020-12-03 21:56:45 +01:00
|
|
|
int ival;
|
|
|
|
float fval;
|
|
|
|
} FilterSlot;
|
|
|
|
|
2020-12-10 19:19:35 +01:00
|
|
|
#define NUMBER_OF_STACK 8
|
|
|
|
#define FILTER_BY_STACK 8
|
2020-12-03 21:56:45 +01:00
|
|
|
|
2020-12-10 19:19:35 +01:00
|
|
|
typedef struct {
|
|
|
|
int count;
|
|
|
|
FilterSlot slots[FILTER_BY_STACK];
|
|
|
|
} FilterStack;
|
|
|
|
|
|
|
|
int filterstack_init(int numid, int nbre);
|
2020-12-03 21:56:45 +01:00
|
|
|
|
2020-12-10 19:19:35 +01:00
|
|
|
int filterstack_add(int numid, int code, int ival, float fval);
|
2020-12-03 21:56:45 +01:00
|
|
|
|
2020-12-10 19:19:35 +01:00
|
|
|
int filterstack_list(int numid, const char *txt); /* XXX */
|
2020-12-03 21:56:45 +01:00
|
|
|
|
2020-12-10 19:19:35 +01:00
|
|
|
int filterstack_run(int numid, FloatImg *target, int notused);
|
2020-12-04 19:55:34 +01:00
|
|
|
|
2020-12-10 19:19:35 +01:00
|
|
|
int load_stack_from_file(int numid, char *fname, int notused);
|
2020-12-04 19:55:34 +01:00
|
|
|
|
2020-12-10 19:19:35 +01:00
|
|
|
int parse_filter_chain(int numid, char *argument);
|
2020-12-07 04:45:51 +01:00
|
|
|
|