commit avant la Ganguise + push en vrac

This commit is contained in:
2019-08-24 13:24:01 +02:00
parent d1e9999e1c
commit a07883c0c2
7 changed files with 73 additions and 20 deletions

View File

@@ -191,6 +191,7 @@ foo = fimg_create(&cumul,
fmt.fmt.pix.width, fmt.fmt.pix.height,
FIMG_TYPE_RGB);
fimg_clear(&cumul);
cumul.fval = 255.0;
#endif
@@ -220,7 +221,8 @@ for (i = 0; i < nbre_capt; i++) {
}
if(verbosity > 1) {
printf("%6d / %6d %9.3f\n", i, nbre_capt, fimg_timer_get(0));
printf("%6d / %6d %9.3f\n", i, nbre_capt,
fimg_timer_get(0));
}
@@ -246,15 +248,13 @@ for (i = 0; i < nbre_capt; i++) {
#endif
#if SAVE_AS_CUMUL
/**
/** this is the slow version
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