Browse Source

killin a nasty workaround

master
tth 3 years ago
parent
commit
f11bf3aa71
  1. 4
      v4l2/grabvidseq.c
  2. 4
      v4l2/rgb2fimg.c

4
v4l2/grabvidseq.c

@ -315,10 +315,6 @@ if (to_gray) { @@ -315,10 +315,6 @@ if (to_gray) {
// save cumul to file
if (verbosity) fprintf(stderr, "saving to '%s'\n", outfile);
if (upscaling) { /* nasty workaround */
cumul.count /= 4; /* WTF ? */
}
foo = fimg_save_as_pnm(&cumul, outfile, 1);
// free buffers

4
v4l2/rgb2fimg.c

@ -47,7 +47,9 @@ for (y=0; y<h; y++) { @@ -47,7 +47,9 @@ for (y=0; y<h; y++) {
modz++; /* next displacment index */
d->count++; /* one more frame in the accumulator */
if ( ! (modz & 0x03)) {
d->count++; /* one more frame in the accumulator */
}
return -1;
}

Loading…
Cancel
Save