metadata little change

This commit is contained in:
tth 2022-03-20 15:53:49 +01:00
parent 039d4cb77b
commit be48fc6e84
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@
* http://la.buvette.org/photos/cumul * http://la.buvette.org/photos/cumul
*/ */
#define FIMG_VERSION 174 #define FIMG_VERSION 175
/* /*
* in memory descriptor * in memory descriptor
@ -37,6 +37,7 @@ typedef struct {
int32_t count; int32_t count;
float fval; float fval;
char idcam[32]; char idcam[32];
int32_t origin; // enum ?
} FimgMetaData; } FimgMetaData;
/* /*
* we MUST look at packing and endianess problems NOW */ * we MUST look at packing and endianess problems NOW */

View File

@ -25,6 +25,7 @@ fprintf(stderr, "magic = '%8s'\n", pmd->magic);
fprintf(stderr, "counter = %d\n", pmd->count); fprintf(stderr, "counter = %d\n", pmd->count);
fprintf(stderr, "float value = %.3f\n", pmd->fval); fprintf(stderr, "float value = %.3f\n", pmd->fval);
fprintf(stderr, "id camera = '%s'\n", pmd->idcam); fprintf(stderr, "id camera = '%s'\n", pmd->idcam);
fprintf(stderr, "origin = %d\n", pmd->origin);
return -1; return -1;
} }
@ -36,7 +37,7 @@ memcpy(pmd->magic, "metadata", 8);
pmd->count = 0; pmd->count = 0;
pmd->fval = 255.0; pmd->fval = 255.0;
strcpy(pmd->idcam, "unknow"); strcpy(pmd->idcam, "unknow");
pmd->origin = 999;
return -1; return -1;
} }
/* ---------------------------------------------------------------- */ /* ---------------------------------------------------------------- */