FloatImg/Fonderie/fifo.h

50 lines
1.0 KiB
C
Raw Normal View History

2020-11-02 11:25:00 +11:00
/*
2021-04-24 08:54:47 +11:00
* Machine qui fait des fils flous par la
* méthode de la moyenne mobile.
2020-11-02 11:25:00 +11:00
*/
/* -------------------------------------------------------------- */
typedef struct {
unsigned long magic;
int nbslots; /* how many pics used ? */
2021-04-24 08:54:47 +11:00
2020-11-02 11:25:00 +11:00
FloatImg total; /* computing workspace */
FloatImg wspace; /* computing workspace */
2021-04-24 08:54:47 +11:00
2020-11-02 11:25:00 +11:00
FloatImg *slots; /* circular buffer */
2021-04-24 08:54:47 +11:00
2020-11-02 11:25:00 +11:00
int next; /* incremented with modulo */
2021-04-24 08:54:47 +11:00
int export_type; /* fimg/png/pnm/... */
2020-11-02 11:25:00 +11:00
} A_Fifo;
#define MAGIC_FIFO 0xabcd9876
typedef struct {
unsigned long magic;
int blanks; /* ???? */
float fk;
int preproc, postproc;
int step; /* for fifo export */
} ControlBloc;
#define MAGIC_CTRLB 0xabcdfefe
/* -------------------------------------------------------------- */
2021-04-24 08:54:47 +11:00
int create_fifo(int nbslot, int w, int h, int t);
int set_fifo_output_format(int filetype);
int export_fifo(char *fname, int notused);
2020-11-02 11:25:00 +11:00
int insert_picture(FloatImg *src);
/* -------------------------------------------------------------- */
/*
2020-12-03 05:55:06 +11:00
* funcs in 'sfx.c' ---> sfx.h
2020-11-02 11:25:00 +11:00
*/