forked from tTh/FloatImg
nap time commit
This commit is contained in:
parent
36d30b76d7
commit
a4b7f5c21c
|
@ -41,19 +41,19 @@ singlepass: singlepass.c ${DEPS} ${OBJS} Makefile
|
|||
# some files are magically generated, sorry.
|
||||
#
|
||||
crapdef.h: crapulors.liste Makefile craplist2h.awk
|
||||
./craplist2h.awk < $< | tee $@
|
||||
< $< ./craplist2h.awk > $@
|
||||
|
||||
crapstr.h: crapulors.liste Makefile craplist2str.awk
|
||||
./craplist2str.awk < $< | tee $@
|
||||
< $< ./craplist2str.awk > $@
|
||||
|
||||
# ---------------------------------------------------------
|
||||
#
|
||||
# a lot of silly functions
|
||||
#
|
||||
crapulator.o: crapulator.c ${DEPS} Makefile
|
||||
crapulator.o: crapulator.c $(DEPS) Makefile
|
||||
gcc ${COPT} -c $<
|
||||
|
||||
fifo.o: fifo.c fifo.h Makefile
|
||||
fifo.o: fifo.c fifo.h $(DEPS) Makefile
|
||||
gcc ${COPT} -c $<
|
||||
|
||||
sfx.o: sfx.c ${DEPS} Makefile
|
||||
|
|
|
@ -24,5 +24,5 @@ BEGIN {
|
|||
END {
|
||||
print " { -1, NULL }"
|
||||
print " };"
|
||||
print "// generated file, do not edit by hand !"
|
||||
print "// ! generated file, do not edit by hand !"
|
||||
}
|
||||
|
|
|
@ -151,13 +151,11 @@ int pass, szimg, osrc, odst;
|
|||
szimg = picture->width * picture->height;
|
||||
|
||||
for (pass=0; pass<szimg/32; pass++) {
|
||||
|
||||
osrc = rand() % szimg;
|
||||
odst = rand() % szimg;
|
||||
picture->R[odst] = (picture->R[osrc] + picture->R[odst]) / 2.0;
|
||||
picture->G[odst] = (picture->G[osrc] + picture->G[odst]) / 2.0;
|
||||
picture->B[odst] = (picture->B[osrc] + picture->B[odst]) / 2.0;
|
||||
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -180,7 +178,6 @@ for (y=0; y<picture->height; y+=16) {
|
|||
un_petit_flou_8x8(picture, x, y+8);
|
||||
un_petit_flou_8x8(picture, x+8, y+8);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -22,19 +22,17 @@ do_an_effect_pass()
|
|||
{
|
||||
local effect=$1
|
||||
local ddir=$2
|
||||
figlet "$effect" ; echo
|
||||
|
||||
figlet "$effect" ; echo
|
||||
echo " ===> " $ddir
|
||||
ls $ddir | wc
|
||||
|
||||
rm -f $ddir/?????.png
|
||||
ls $ddir | wc
|
||||
|
||||
$SPASS -F $effect \
|
||||
-g $SRCDIR/'?????.fimg' \
|
||||
-O $ddir \
|
||||
-r 2
|
||||
ls $ddir | wc
|
||||
-r 1
|
||||
|
||||
}
|
||||
|
||||
# --------------------------------------------
|
||||
|
@ -47,6 +45,17 @@ local sdir=$2
|
|||
echo "====== Linkfarming from " $sdir \
|
||||
"====== avec" $(ls $sdir | wc -l) "images"
|
||||
|
||||
mogrify \
|
||||
-font Utopia-Bold \
|
||||
-pointsize 90 \
|
||||
-kerning 9 \
|
||||
-fill Gray80 \
|
||||
-stroke Gray20 \
|
||||
-strokewidth 3 \
|
||||
-gravity South-East \
|
||||
-annotate +45+125 $effname \
|
||||
$sdir/*.png
|
||||
|
||||
for img in $(ls -1 $sdir/?????.png)
|
||||
do
|
||||
|
||||
|
@ -54,16 +63,6 @@ do
|
|||
# echo "image = " $img
|
||||
# echo "link = " $linkname
|
||||
|
||||
mogrify \
|
||||
-font Noto-Serif-Bold \
|
||||
-pointsize 70 \
|
||||
-kerning 4 \
|
||||
-fill Gray90 \
|
||||
-stroke Gray10 \
|
||||
-strokewidth 3 \
|
||||
-annotate +35+85 $effname \
|
||||
$img
|
||||
|
||||
ln --force --symbolic $img $linkname
|
||||
|
||||
LINKNUM=$(( LINKNUM + 1 ))
|
||||
|
@ -75,7 +74,7 @@ echo "linkfarming done"
|
|||
|
||||
do_all_the_effects()
|
||||
{
|
||||
EFFECTS=$( $SPASS -L | sort )
|
||||
EFFECTS=$( $SPASS -L | sort --reverse )
|
||||
|
||||
for effect in $EFFECTS
|
||||
do
|
||||
|
@ -99,8 +98,6 @@ done
|
|||
|
||||
rm -v -f $LINKFARM/L?????.png
|
||||
|
||||
|
||||
|
||||
do_all_the_effects
|
||||
|
||||
banner encoding
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* https://git.tetalab.org/tTh/FloatImg
|
||||
*/
|
||||
|
||||
#define FIMG_VERSION (219)
|
||||
#define FIMG_VERSION (220)
|
||||
#define RELEASE_NAME ("noname")
|
||||
|
||||
/* XXX add a test for stdint.h / uint32_t XXX */
|
||||
|
|
|
@ -44,6 +44,9 @@ fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__,
|
|||
psrc, pdst, k);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* XXX useless message ?
|
||||
*/
|
||||
if (k) { fprintf(stderr, "k=%d in %s\n", k, __func__); }
|
||||
|
||||
fimg_clear(pdst);
|
||||
|
@ -102,6 +105,9 @@ fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__,
|
|||
psrc, pdst, k);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* XXX useless message ?
|
||||
*/
|
||||
if (k) { fprintf(stderr, "k=%d in %s\n", k, __func__); }
|
||||
|
||||
fimg_clear(pdst);
|
||||
|
|
|
@ -32,7 +32,7 @@ switch(largeur) {
|
|||
case 8: case 16: case 32:
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "%s bad width %d\n", __func__, largeur);
|
||||
fprintf(stderr, "%s: bad width %d\n", __func__, largeur);
|
||||
return -77;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
# Images en virgule flottante, video 4 linux
|
||||
|
||||
Quelques gruikwares en rapport avec la capture vidéo.
|
||||
|
||||
|
||||
## grabvidseq
|
||||
|
||||
Logiciel de capture d'une image flottante par accumulation de trames.
|
||||
|
||||
```
|
||||
tth@lubitel:~/Devel/FloatImg/v4l2$ ./grabvidseq -h
|
||||
options :
|
||||
|
@ -18,6 +23,10 @@ options :
|
|||
-v increase verbosity
|
||||
```
|
||||
|
||||
Les formats d'exportation sont : Fimg, Png, Tiff, Pnm et Fits. Chacun d'eux
|
||||
ayant son propre lot de limitations et de bugs. Le choix est fait
|
||||
selon l'extension du nom de fichier demandé~: ".fimg", ".tiff"...
|
||||
|
||||
## video-infos
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue