From be48fc6e84a86584339f884fc8a6ee54d5767cef Mon Sep 17 00:00:00 2001 From: tth Date: Sun, 20 Mar 2022 15:53:49 +0100 Subject: [PATCH] metadata little change --- floatimg.h | 3 ++- lib/metadata.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/floatimg.h b/floatimg.h index 924c415a..d0db2382 100644 --- a/floatimg.h +++ b/floatimg.h @@ -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 */ diff --git a/lib/metadata.c b/lib/metadata.c index 4d9c7c5f..f0ae0752 100644 --- a/lib/metadata.c +++ b/lib/metadata.c @@ -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; } /* ---------------------------------------------------------------- */