FloatImg/extras/Fonderie/filterstack.h

32 lines
625 B
C
Raw Normal View History

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