From 6d4df793da7f30df485c07ddb55dd6f875f36adb Mon Sep 17 00:00:00 2001 From: tth Date: Sat, 24 Apr 2021 00:11:37 +0200 Subject: [PATCH] a little bla --- Fonderie/single.c | 5 +++-- Fonderie/single.h | 11 ++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Fonderie/single.c b/Fonderie/single.c index fdfbbb3..db1d456 100644 --- a/Fonderie/single.c +++ b/Fonderie/single.c @@ -23,6 +23,7 @@ static int nextpng, counter; static char *destination; static int chainfilter; +static int outtype; /* and the classic global var */ extern int verbosity; @@ -60,6 +61,7 @@ int single_push_picture(FloatImg *pimg) { int foo; char line[1000], buff[100]; +char *extension = ".png"; #if DEBUG_LEVEL fprintf(stderr, ">>> %s ( %p )\n", __func__, pimg); @@ -71,8 +73,7 @@ if ('/' != line[strlen(line)-1]) { strcat(line, "/"); } -// fprintf(stderr, " destdir = '%s'\n", line); -sprintf(buff, "%05d.png", nextpng); +sprintf(buff, "%05d.%s", nextpng, extension); strcat(line, buff); // fprintf(stderr, "writing %p to '%s'\n", pimg, line); diff --git a/Fonderie/single.h b/Fonderie/single.h index d197ac7..4cca0a8 100644 --- a/Fonderie/single.h +++ b/Fonderie/single.h @@ -1,16 +1,21 @@ /* SINGLE experimental and/or testing code, do not use in - production. + serious production. */ /* -------------------------------------------------------------- */ - +/* + * next: + * dest: + * fxchain: + * outfmt: see floatimg.h for FILE_TYPE_XXX constants + */ int single_init(int next, char *dest, int fxchain, int outfmt); + int single_push_picture(FloatImg *pimg); int single_print_state(char *title, int k); /* -------------------------------------------------------------- */ -/* -------------------------------------------------------------- */