|
|
|
@ -305,6 +305,7 @@ t_final = fimg_timer_get(0);
@@ -305,6 +305,7 @@ t_final = fimg_timer_get(0);
|
|
|
|
|
fprintf(stderr, "pid %d : elapsed %g s -> %.2f fps\n", getpid(), |
|
|
|
|
t_final, (double)nbre_capt / t_final); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if SAVE_AS_CUMUL |
|
|
|
|
if (to_gray) { |
|
|
|
|
if (verbosity) fputs("converting to gray\n", stderr); |
|
|
|
@ -313,6 +314,11 @@ if (to_gray) {
@@ -313,6 +314,11 @@ if (to_gray) {
|
|
|
|
|
|
|
|
|
|
// save cumul to file
|
|
|
|
|
if (verbosity) fprintf(stderr, "saving to '%s'\n", outfile); |
|
|
|
|
|
|
|
|
|
if (upscaling) { /* nasty workaround */ |
|
|
|
|
cumul.count /= 4; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
foo = fimg_save_as_pnm(&cumul, outfile, 1); |
|
|
|
|
|
|
|
|
|
// free buffers
|
|
|
|
|