FloatImg/experiment/cachengn.h

30 lines
525 B
C
Raw Normal View History

2021-10-18 05:23:35 +11:00
/*
* the chache engine - header
*/
void cachengn_print_version(int k);
2021-11-27 09:10:29 +11:00
2023-07-20 21:03:43 +11:00
typedef struct {
int flags;
char *filename;
FloatImg *image;
int index;
} FimgCacheEntry;
/*
* parameters:
* - iw, ik : image size
* - szc : number of slots
* - nbre : WTF isthat?
*/
2021-11-27 09:10:29 +11:00
int init_empty_cache(int iw, int ih, int szc, int nbre);
2023-07-20 21:03:43 +11:00
/* /!\ the floatimg returned must be view as readonly */
FloatImg *give_me_thiz_picz(char *fname, int notused);
/* utilities functions */
int liste_le_cache(unsigned int flags);