metadata boilerplane, first milestone reached

This commit is contained in:
tth
2022-03-19 01:21:58 +01:00
parent 7ea77cc882
commit 039d4cb77b
20 changed files with 105 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
* http://la.buvette.org/photos/cumul
*/
#define FIMG_VERSION 171
#define FIMG_VERSION 174
/*
* in memory descriptor
@@ -28,6 +28,16 @@ typedef struct {
char magic[8];
int32_t w, h, t;
} FimgFileHead;
/*
* new 11 mars 2022
*/
typedef struct {
char magic[8];
struct timeval timestamp;
int32_t count;
float fval;
char idcam[32];
} FimgMetaData;
/*
* we MUST look at packing and endianess problems NOW */
@@ -207,11 +217,14 @@ int fimg_displacement_0(FloatImg *psrc, FloatImg *pdst, int flags);
int fimg_hdeg_a(FloatImg *img, double dcoef);
int fimg_vdeg_a(FloatImg *img, double dcoef);
/* FIMG files module */
/* FIMG native file module */
int fimg_fileinfos(char *fname, int *datas);
int fimg_dump_to_file(FloatImg *head, char *fname, int notused);
int fimg_load_from_dump(char *fname, FloatImg *where);
int fimg_create_from_dump(char *fname, FloatImg *head);
/* FIMG metadata module */
int fimg_show_metadata(FimgMetaData *pmd, char *title, int notused);
int fimg_default_metadata(FimgMetaData *pmd);
int fimg_save_R_as_fits(FloatImg *src, char *outname, int flags);
int fimg_save_G_as_fits(FloatImg *src, char *outname, int flags);