diff --git a/funcs/Makefile b/funcs/Makefile index d56af7a..4e39865 100644 --- a/funcs/Makefile +++ b/funcs/Makefile @@ -6,7 +6,7 @@ OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \ fimg-libpnm.o rampes.o sfx0.o geometry.o rotate.o \ equalize.o fimg-fits.o saturation.o histogram.o \ hsv.o classif.o contour2x2.o qsortrgb.o exporter.o \ - displacement.o + displacement.o dithering.o #--------------------------------------------------------------- @@ -56,6 +56,10 @@ histogram.o: histogram.c $(DEPS) equalize.o: equalize.c $(DEPS) gcc $(COPT) -c $< +dithering.o: dithering.c $(DEPS) + gcc $(COPT) -c $< + + sfx0.o: sfx0.c $(DEPS) gcc $(COPT) -c $< diff --git a/funcs/README.md b/funcs/README.md new file mode 100644 index 0000000..65b2f6e --- /dev/null +++ b/funcs/README.md @@ -0,0 +1,20 @@ +# Fonctions + +Plein de fonctions qu'il serait bon de documenter :) + +## Contours + +Détecter des contours est une activité respectable. + +## Exporter + +Une méta-fonction qui va sauvegarder (dans la mesure de ses conséquences) +une image en fonction de l'extension du nom de fichier. + +## Sfx + +Effets spéciaux divers. + +## Dithering + +Work in progress... diff --git a/funcs/dithering.c b/funcs/dithering.c new file mode 100644 index 0000000..1430548 --- /dev/null +++ b/funcs/dithering.c @@ -0,0 +1,31 @@ +/* + * FloatImg : some dithering experiments + */ + +#include +#include +#include +#include + +#include "../floatimg.h" + +extern int verbosity; + +/* --------------------------------------------------------------------- */ +int fimg_dither_0(FloatImg *psrc, FloatImg *pdst, int flags) +{ +int x, y; + +for (y=0; yheight; y++) { + + for (x=0; xwidth; x++) + { + + + } + } + +return -1; +} +/* --------------------------------------------------------------------- */ +