Compare commits

..

2 Commits

Author SHA1 Message Date
c84a893380 cosmetic changes 2019-12-12 12:50:08 +01:00
c4bf60e026 use the right path, Luke 2019-12-12 12:45:29 +01:00
2 changed files with 13 additions and 14 deletions

View File

@ -1,5 +1,7 @@
#!/bin/bash
CMDPATH="/usr/local/bin"
GRAB="quux.fimg"
COS01="cos01.fimg"
COS010="cos010.fimg"
@ -11,29 +13,26 @@ f2p ()
{
dst=$(basename $1 .fimg).pnm
echo == converting $1 to $dst
fimg2pnm $1 $dst
${CMDPATH}/fimg2pnm $1 $dst
}
# --------- capturer une image
grabvidseq -v -n 77 -p 0.07 -o ${GRAB}
${CMDPATH}/grabvidseq -v -u -n 2400 -p 0.04 -o ${GRAB}
echo ERRCODE $?
f2p ${GRAB}
ls -rtl
exit
# XXXXXXXXXXXXXXXXXXXXXX
fimgfx -v pow2 $GRAB $POW2
# ----------- traitements
${CMDPATH}/fimgfx pow2 $GRAB $POW2
f2p $POW2
fimgfx -v sqrt $GRAB $SQRT
${CMDPATH}/fimgfx sqrt $GRAB $SQRT
f2p $SQRT
fimgfx -v cos01 $GRAB $COS01
${CMDPATH}/fimgfx cos01 $GRAB $COS01
f2p $COS01
fimgfx -v cos010 $GRAB $COS010
${CMDPATH}/fimgfx cos010 $GRAB $COS010
f2p $COS010
convert -delay 10 *.pnm foo.gif
echo == Making gif89a
convert -delay 40 *.pnm foo.gif

View File

@ -313,11 +313,11 @@ for (i = 0; i < nbre_capt; i++) {
xioctl(fd, VIDIOC_QBUF, &buf);
}
puts(""); fflush(stdout);
fflush(stdout);
if (verbosity) {
t_final = fimg_timer_get(0);
fprintf(stderr, "pid %d : elapsed %g s -> %.2f fps\n", getpid(),
fprintf(stderr, "pid %d : elapsed %.3g s -> %.2f fps\n", getpid(),
t_final, (double)nbre_capt / t_final);
}