2020-03-26 19:12:25 +11:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#
|
|
|
|
# essai des differents outils
|
|
|
|
#
|
|
|
|
|
|
|
|
# -----------------------------------------------------
|
|
|
|
|
|
|
|
TMPF="tmp.fimg"
|
|
|
|
|
|
|
|
# -----------------------------------------------------
|
|
|
|
function essai_rot90
|
|
|
|
{
|
|
|
|
echo "=== " $0 " ==="
|
|
|
|
./mkfimg -v -t hdeg $TMPF 800 600
|
|
|
|
./fimg2png -v $TMPF foo.png
|
|
|
|
./fimgfx -v rot90 $TMPF bar.fimg
|
|
|
|
}
|
|
|
|
# -----------------------------------------------------
|
2020-06-12 00:56:32 +11:00
|
|
|
function essai_drand48
|
|
|
|
{
|
2020-06-24 21:37:02 +11:00
|
|
|
./mkfimg -vv -t drand48 $TMPF 800 600
|
2020-06-12 00:56:32 +11:00
|
|
|
./fimgstats -vv $TMPF
|
|
|
|
}
|
|
|
|
# -----------------------------------------------------
|
2020-06-23 20:09:42 +11:00
|
|
|
function essai_cmixa
|
|
|
|
{
|
2020-06-24 21:37:02 +11:00
|
|
|
./mkfimg -vv -t tpat0 $TMPF 800 600
|
|
|
|
./fimgfx -vv cmixa $TMPF bar.fimg
|
|
|
|
|
2020-09-22 09:43:21 +11:00
|
|
|
}
|
|
|
|
# -----------------------------------------------------
|
|
|
|
function essai_cumulator
|
|
|
|
{
|
|
|
|
D=" 800 600 "
|
|
|
|
./mkfimg -v -t hdeg hdeg.fimg $D
|
|
|
|
./mkfimg -v -t vdeg vdeg.fimg $D
|
|
|
|
./mkfimg -v -t drand48 rand.fimg $D
|
|
|
|
|
|
|
|
./cumulfimgs -vv -o foo.fimg hdeg.fimg rand.fimg vdeg.fimg
|
2020-06-23 20:09:42 +11:00
|
|
|
}
|
|
|
|
# -----------------------------------------------------
|
2020-03-26 19:12:25 +11:00
|
|
|
|
2020-09-22 09:43:21 +11:00
|
|
|
essai_cumulator
|
2020-03-26 19:12:25 +11:00
|
|
|
|
|
|
|
# -----------------------------------------------------
|