From bf40df4d1ace92c8fc7ea4e678de128148e60650 Mon Sep 17 00:00:00 2001 From: Tonton Th Date: Thu, 12 Dec 2019 12:13:21 +0100 Subject: [PATCH] update this test script --- scripts/contrast-test.sh | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/scripts/contrast-test.sh b/scripts/contrast-test.sh index e06557d5..85ebc6d2 100755 --- a/scripts/contrast-test.sh +++ b/scripts/contrast-test.sh @@ -2,17 +2,27 @@ GRAB="quux.fimg" COS01="cos01.fimg" +COS010="cos010.fimg" SQRT="sqrt.fimg" POW2="pow2.fimg" +# --------- conversion fimg -> pnm f2p () { -echo ========== $1 -fimg2pnm -v $1 $(basename $1 .fimg).pnm +dst=$(basename $1 .fimg).pnm +echo == converting $1 to $dst +fimg2pnm $1 $dst } -grabvidseq -v -n 777 -p 0.07 -o $GRAB -f2p $GRAB +# --------- capturer une image +grabvidseq -v -n 77 -p 0.07 -o ${GRAB} +echo ERRCODE $? +f2p ${GRAB} + +ls -rtl +exit + +# XXXXXXXXXXXXXXXXXXXXXX fimgfx -v pow2 $GRAB $POW2 f2p $POW2 @@ -23,5 +33,7 @@ f2p $SQRT fimgfx -v cos01 $GRAB $COS01 f2p $COS01 -convert -delay 10 *.pnm foo.gif +fimgfx -v cos010 $GRAB $COS010 +f2p $COS010 +convert -delay 10 *.pnm foo.gif