2020-11-02 11:25:00 +11:00
|
|
|
/*
|
|
|
|
* Machine qui fait des fils flous
|
|
|
|
*/
|
|
|
|
/* -------------------------------------------------------------- */
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
unsigned long magic;
|
|
|
|
int nbslots; /* how many pics used ? */
|
|
|
|
FloatImg total; /* computing workspace */
|
|
|
|
FloatImg wspace; /* computing workspace */
|
|
|
|
FloatImg *slots; /* circular buffer */
|
|
|
|
int next; /* incremented with modulo */
|
|
|
|
} 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
|
|
|
|
|
|
|
|
/* -------------------------------------------------------------- */
|
|
|
|
|
|
|
|
int export_fifo(char *fname, int postproc, int step);
|
|
|
|
|
|
|
|
int insert_picture(FloatImg *src);
|
|
|
|
|
|
|
|
int create_fifo(int nbslot, int w, int h, int t);
|
|
|
|
|
|
|
|
/* -------------------------------------------------------------- */
|
|
|
|
/*
|
|
|
|
* funcs in 'sfx.c'
|
|
|
|
*/
|
|
|
|
|
2020-11-10 10:50:25 +11:00
|
|
|
int trinarize(FloatImg *pimg, int notused);
|
2020-11-05 22:48:35 +11:00
|
|
|
int binarize(FloatImg *pimg, int notused);
|
|
|
|
|
2020-11-03 00:51:48 +11:00
|
|
|
int brotche_rand48_a(FloatImg *fimg, float ratio, float mval);
|
2020-11-02 11:25:00 +11:00
|
|
|
int brotche_rand48_b(FloatImg *fimg, float ratio, float mval);
|
|
|
|
int colors_brotcher(FloatImg *fimg, float fval);
|
|
|
|
|
|
|
|
/* -------------------------------------------------------------- */
|
|
|
|
|