a big commit of garbage

This commit is contained in:
tth
2022-05-14 20:49:59 +02:00
parent 4dcc524fc4
commit 615321eca8
15 changed files with 173 additions and 35 deletions

View File

@@ -40,8 +40,10 @@ ne sont gérés que de façon très rudimentaire.
## fimg2text
Nouveau de l'année 2020+1 : exfiltrer toutes des données d'une image flottante
afin de les rendre machinables.
afin de les rendre machinables. Voir aussi *fimgmetadata*.
## fimgmetadata
Nouveau avril 2022. Need more doc...
Voir aussi *fimg2text*.

View File

@@ -6,8 +6,18 @@
# -----------------------------------------------------
TMPF="../funcs/in.fimg"
TMPF="bar.fimg"
# -----------------------------------------------------
function essai_metadata
{
echo " ____ essai metadata ________"
./mkfimg -v -m -t hdeg $TMPF 800 600
echo ; echo
./fimgstats $TMPF
echo ; echo
./fimgmetadata all $TMPF
}
# -----------------------------------------------------
function essai_rot90
{
@@ -53,6 +63,6 @@ function essai_hilight
}
# -----------------------------------------------------
essai_hilight
essai_metadata
# -----------------------------------------------------

View File

@@ -73,7 +73,7 @@ action = lookup_cmd(command);
switch(action) {
case C_timestamp:
printf("ts %ld\n", metadata.timestamp.tv_sec); break;
printf("timestamp %ld\n", metadata.timestamp.tv_sec); break;
case C_count:
printf("count %d\n", metadata.count); break;
case C_fval:

View File

@@ -10,7 +10,6 @@
#include "../floatimg.h"
int verbosity; /* global */
int make_csv;
/* --------------------------------------------------------------------- */
@@ -108,6 +107,9 @@ fputs( "usage : fimgstats [options] file.fimg\n"
"\t-c\tmake a machinable csv\n"
"\t-v\tincrease verbosity\n"
, stderr);
if (k) {
fimg_print_version(k);
}
}
/* --------------------------------------------------------------------- */
int main(int argc, char *argv[])

View File

@@ -181,7 +181,7 @@ switch(type) {
if (wrmdata) {
// fprintf(stderr, "%s: warning, metadata is bogus\n", argv[0]);
(void)fimg_default_metadata(&metadata);
(void)fimg_default_metadata(&metadata, 9);
sprintf(metadata.idcam, "mkfimg (libv %d)", FIMG_VERSION);
foo = fimg_dumpmd_to_file(&fimg, fname, &metadata, 0);
#if DEBUG_LEVEL