testing filter chain
This commit is contained in:
parent
8009acc0d1
commit
d5ccf30dcc
@ -1,16 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
OUTF='/tmp/out_a*.png'
|
||||
FILTRES="5:6:13 2 5:6:8 4:25 8:13:13:7 10:1 25:25:25"
|
||||
|
||||
rm $OUTF
|
||||
for F in $FILTRES
|
||||
do
|
||||
|
||||
make t && ./t
|
||||
I="/tmp/fstack"$F".png"
|
||||
echo ; echo $I
|
||||
./t -F $F
|
||||
txt=$(printf "[%-10s]" $F)
|
||||
convert foo.png -pointsize 32 -kerning 0 \
|
||||
-fill Orange -undercolor Gray20 \
|
||||
-font Courier-Bold \
|
||||
-annotate +20+40 "$txt" \
|
||||
$I
|
||||
|
||||
done
|
||||
|
||||
convert -delay 100 /tmp/fstack*.png foo.gif
|
||||
|
||||
|
||||
A_PART=$(ls -1 $OUTF)
|
||||
Z_PART=$(ls -r1 $OUTF)
|
||||
|
||||
convert -delay 10 ${A_PART} ${Z_PART} foo.gif
|
||||
|
||||
|
||||
|
||||
|
@ -41,7 +41,7 @@ if (foo) {
|
||||
return 0;
|
||||
}
|
||||
/* ----------------------------------------------------------- */
|
||||
int parse_filter_chain(char *argument)
|
||||
int parse_filter_chain(const char *argument)
|
||||
{
|
||||
char *cptr;
|
||||
int value, foo;
|
||||
@ -69,7 +69,7 @@ for (;;) {
|
||||
}
|
||||
}
|
||||
|
||||
filterstack_list(__func__);
|
||||
if (verbosity) filterstack_list(__func__);
|
||||
return 0;
|
||||
}
|
||||
/* ----------------------------------------------------------- */
|
||||
@ -107,14 +107,12 @@ fprintf(stderr, "%s : argc = %d, optind = %d\n", argv[0], argc, optind);
|
||||
|
||||
parse_filter_chain(filterchain);
|
||||
|
||||
foo = fimg_create(&image, W, H, FIMG_TYPE_RGB);
|
||||
foo = fimg_create_from_dump("mire.fimg", &image);
|
||||
if (foo) {
|
||||
fprintf(stderr, "err %d create image\n", foo);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
fimg_vdeg_a(&image, 255);
|
||||
|
||||
srand(getpid());
|
||||
debut = fimg_timer_set(TIMER);
|
||||
foo = essai_filterstack(&image);
|
||||
|
Loading…
Reference in New Issue
Block a user