optimize cumul videograb

This commit is contained in:
2019-08-15 05:50:40 +02:00
parent 4ea5294009
commit d11947bd7c
3 changed files with 28 additions and 3 deletions

View File

@@ -220,7 +220,7 @@ for (i = 0; i < nbre_capt; i++) {
}
if(verbosity > 1) {
printf("%6d %5.3f\n", i, fimg_timer_get(0));
printf("%6d %9.3f\n", i, fimg_timer_get(0));
}
@@ -246,9 +246,15 @@ for (i = 0; i < nbre_capt; i++) {
#endif
#if SAVE_AS_CUMUL
/**
x_rgb2fimg(buffers[buf.index].start,
fmt.fmt.pix.width, fmt.fmt.pix.height, &grab);
fimg_add(&grab, &cumul, &cumul);
**/
x_add_rgb2fimg(buffers[buf.index].start,
fmt.fmt.pix.width, fmt.fmt.pix.height, &cumul);
#endif
#if SAVE_AS_FIMG