metadata boilerplane, first milestone reached
This commit is contained in:
17
floatimg.h
17
floatimg.h
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user