This commit is contained in:
tonton th 2020-12-03 19:47:02 +01:00
parent 3572966edb
commit 3fb8dfcdb7
1 changed files with 3 additions and 7 deletions

View File

@ -111,7 +111,7 @@ char *cptr, line[200];
float coef, value;
IdxValue *idx_values;
fprintf(stderr, "\nfrom '%s' to '%s' with %d steps.\n",
fprintf(stderr, " interpolate from '%s' to '%s' with %d steps.\n",
pattern, outdir, Nsteps);
memset(&globbuf, 0, sizeof(glob_t));
@ -137,11 +137,8 @@ w = iarray[0], h = iarray[1];
fprintf(stderr, "first image size : %dx%d\n", w, h);
fimg_create(&A, w, h, 3); pFirst = &A;
// brotche_rand48_a(&A, 0.10, 250.555);
fimg_create(&B, w, h, 3); pSecond = &B;
// brotche_rand48_a(&B, 0.10, 250.555);
fimg_create(&Out, w, h, 3);
// brotche_rand48_a(&Out, 0.10, 250.555);
ipng = 0;
for (idx=0; idx<globbuf.gl_pathc; idx++) {
@ -151,7 +148,7 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) {
cptr = globbuf.gl_pathv[curpix]; /* aliasing filename */
/* read the next file in B */
fprintf(stderr, "%5d / %5ld : load %s\r", idx,
fprintf(stderr, "%5d / %5ld %s\r", idx,
globbuf.gl_pathc, cptr);
foo = fimg_load_from_dump(cptr, &B);
if (foo) {
@ -160,8 +157,7 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) {
}
value = idx_values[idx].value;
/* here, we can insert the input filter */
/* OK try it ... */
/* here, insert the input filter */
foo = crapulator(&B, infx, value/2.0);
if (foo) {
fprintf(stderr, "%s: input fx fail %d\n", __func__, foo);