version UDAMA
This commit is contained in:
@@ -301,22 +301,30 @@ for (i = 0; i < nbre_capt; i++) {
|
||||
|
||||
puts(""); fflush(stdout);
|
||||
|
||||
t_final = fimg_timer_get(0);
|
||||
fprintf(stderr, "pid %d : elapsed %g s -> %.2f fps\n", getpid(),
|
||||
if (verbosity) {
|
||||
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);
|
||||
foo = fimg_to_gray(&cumul);
|
||||
}
|
||||
|
||||
#if SAVE_AS_CUMUL
|
||||
// save cumul to file
|
||||
if (verbosity) fprintf(stderr, "saving to '%s'\n", outfile);
|
||||
|
||||
foo = fimg_save_as_pnm(&cumul, outfile, 1);
|
||||
if (verbosity) fprintf(stderr, "saving cumul to '%s'\n", outfile);
|
||||
|
||||
foo = format_from_extension(outfile);
|
||||
switch (foo) {
|
||||
case FILE_TYPE_FIMG:
|
||||
foo = fimg_dump_to_file(&cumul, outfile, 0);
|
||||
break;
|
||||
case FILE_TYPE_PNM:
|
||||
foo = fimg_save_as_pnm(&cumul, outfile, 1);
|
||||
break;
|
||||
}
|
||||
// free buffers
|
||||
fimg_destroy(&cumul);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user