Browse Source

a little bla

master
tth 1 year ago
parent
commit
6d4df793da
  1. 5
      Fonderie/single.c
  2. 11
      Fonderie/single.h

5
Fonderie/single.c

@ -23,6 +23,7 @@ @@ -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) @@ -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]) { @@ -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);

11
Fonderie/single.h

@ -1,16 +1,21 @@ @@ -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);
/* -------------------------------------------------------------- */
/* -------------------------------------------------------------- */

Loading…
Cancel
Save