forked from tTh/FloatImg
metadata little change
This commit is contained in:
parent
039d4cb77b
commit
be48fc6e84
|
@ -4,7 +4,7 @@
|
|||
* http://la.buvette.org/photos/cumul
|
||||
*/
|
||||
|
||||
#define FIMG_VERSION 174
|
||||
#define FIMG_VERSION 175
|
||||
|
||||
/*
|
||||
* in memory descriptor
|
||||
|
@ -37,6 +37,7 @@ typedef struct {
|
|||
int32_t count;
|
||||
float fval;
|
||||
char idcam[32];
|
||||
int32_t origin; // enum ?
|
||||
} FimgMetaData;
|
||||
/*
|
||||
* we MUST look at packing and endianess problems NOW */
|
||||
|
|
|
@ -25,6 +25,7 @@ fprintf(stderr, "magic = '%8s'\n", pmd->magic);
|
|||
fprintf(stderr, "counter = %d\n", pmd->count);
|
||||
fprintf(stderr, "float value = %.3f\n", pmd->fval);
|
||||
fprintf(stderr, "id camera = '%s'\n", pmd->idcam);
|
||||
fprintf(stderr, "origin = %d\n", pmd->origin);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
@ -36,7 +37,7 @@ memcpy(pmd->magic, "metadata", 8);
|
|||
pmd->count = 0;
|
||||
pmd->fval = 255.0;
|
||||
strcpy(pmd->idcam, "unknow");
|
||||
|
||||
pmd->origin = 999;
|
||||
return -1;
|
||||
}
|
||||
/* ---------------------------------------------------------------- */
|
||||
|
|
Loading…
Reference in New Issue