FloatImg/experiment/cachengn.h

30 lines
525 B
C
Raw Normal View History

2021-10-17 20:23:35 +02:00
/*
* the chache engine - header
*/
void cachengn_print_version(int k);
2021-11-26 23:10:29 +01:00
2023-07-20 12:03:43 +02: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-26 23:10:29 +01:00
int init_empty_cache(int iw, int ih, int szc, int nbre);
2023-07-20 12:03:43 +02: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);