not a milestone
This commit is contained in:
@@ -14,9 +14,12 @@
|
||||
|
||||
#include "../floatimg.h"
|
||||
|
||||
#include "crapulator.h"
|
||||
|
||||
// XXX #include "fonctions.h"
|
||||
|
||||
int verbosity;
|
||||
int convert_to_gray; /* needed by fonctions.c */
|
||||
|
||||
/* -------------------------------------------------------------- */
|
||||
int interpolator(char *pattern, char *outdir, int Nsteps)
|
||||
@@ -63,10 +66,20 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/* here, we can insert the input filter */
|
||||
/* OK try it ... */
|
||||
foo = crapulator(&B, 8, 1.0);
|
||||
if (foo) {
|
||||
fprintf(stderr, "crapulator failure %d\n", foo);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
for (step=0; step<Nsteps; step++) {
|
||||
coef = (float)step / (float)Nsteps;
|
||||
fimg_interpolate(pSecond, pFirst, &Out, coef);
|
||||
|
||||
/* here we can insert the output filter */
|
||||
|
||||
sprintf(line, "%s/%05d.png", outdir, ipng);
|
||||
foo = fimg_save_as_png(&Out, line, 0);
|
||||
if (foo) {
|
||||
@@ -84,7 +97,7 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) {
|
||||
pTmp = pSecond;
|
||||
pSecond = pFirst;
|
||||
pFirst = pTmp;
|
||||
/* THIS CODE DON'T WORK !!! */
|
||||
/* XXX THIS CODE DON'T WORK !!! */
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user