Compare commits

..

4 Commits

Author SHA1 Message Date
tth
cb94093c30 install script is on the way 2022-06-28 20:35:00 +02:00
tth
fbfde6116a cosmetic 2022-06-28 18:49:21 +02:00
tth
27d5efb088 fix a name error 2022-06-28 17:45:30 +02:00
tth
5b72d3989e first serious bug founs and killed 2022-06-28 17:31:59 +02:00
8 changed files with 89 additions and 28 deletions

4
.gitignore vendored
View File

@ -1,9 +1,7 @@
*.o
libimage.a
foo
libtthimage.a
Lib/foo
Lib/testtga

View File

@ -161,16 +161,16 @@ OBJECTS = 7seg.o \
warp0.o warp1.o warp2.o warp3.o \
zoom.o
../libimage.a: $(OBJECTS)
../libtthimage.a: $(OBJECTS)
$(AR) vrs $@ $?
$(RANLIB) $@
#-----------------------------------------------------------------
foo: foo.c $(DEPS) ../libimage.a
foo: foo.c $(DEPS) ../libtthimage.a
gcc $(CFLAGS) $< ../libimage.a -o $@
t_t16x24: t_t16x24.c $(DEPS) ../libimage.a
t_t16x24: t_t16x24.c $(DEPS) ../libtthimage.a
gcc $(CFLAGS) $< ../libimage.a-o $@
#-----------------------------------------------------------------
@ -178,7 +178,7 @@ t_t16x24: t_t16x24.c $(DEPS) ../libimage.a
essais.o: essais.c $(DEPS) essais.h
gcc $(CFLAGS) $< -c
testtga: testtga.c $(DEPS) ../libimage.a essais.o
gcc $(CFLAGS) $< essais.o ../libimage.a -lm -o $@
testtga: testtga.c $(DEPS) ../libtthimage.a essais.o
gcc $(CFLAGS) $< essais.o ../libtthimage.a -lm -o $@
#-----------------------------------------------------------------

View File

@ -68,8 +68,9 @@ for (foo=0; foo<NB_SLOTS; foo++)
*ps = seuil; /* give a nice value to our caller */
fprintf(stderr, "$$$$ seuil is %d\n", seuil);
#if DEBUG_LEVEL
fprintf(stderr, "%s : seuil is %d\n", __func__, seuil);
#endif
for (y=0; y<s->height; y++)
{
@ -85,7 +86,9 @@ for (y=0; y<s->height; y++)
}
}
#if DEBUG_LEVEL
fprintf(stderr, "end of %s\n", __func__);
#endif
return FULL_NUCKED;
}

View File

@ -6,7 +6,7 @@
include ../Paramakes.mk
DEPS = ../tthimage.h Makefile tga_outils.h
DEPS = ../tthimage.h Makefile tga_outils.h ../libtthimage.a
all: genplot2 \
tga_cadre tga_effects tga_filtres tga_remap tga_tools \
@ -24,54 +24,54 @@ fonctions.o: fonctions.c $(DEPS)
#-----------------------------------------------------------------
genplot2: genplot2.c $(DEPS) fonctions.o
gcc $(CFLAGS) $< ../libimage.a fonctions.o -lm -o $@
gcc $(CFLAGS) $< ../libtthimage.a fonctions.o -lm -o $@
#-----------------------------------------------------------------
tga_applymap: tga_applymap.c $(DEPS) fonctions.o
gcc $(CFLAGS) $< ../libimage.a fonctions.o -lm -o $@
gcc $(CFLAGS) $< ../libtthimage.a fonctions.o -lm -o $@
tga_cadre: tga_cadre.c $(DEPS) fonctions.o
gcc $(CFLAGS) $< ../libimage.a fonctions.o -lm -o $@
gcc $(CFLAGS) $< ../libtthimage.a fonctions.o -lm -o $@
tga_combine: tga_combine.c $(DEPS) fonctions.o
gcc $(CFLAGS) $< ../libimage.a fonctions.o -lm -o $@
gcc $(CFLAGS) $< ../libtthimage.a fonctions.o -lm -o $@
tga_dither: tga_dither.c $(DEPS) fonctions.o
gcc $(CFLAGS) $< ../libimage.a fonctions.o -lm -o $@
gcc $(CFLAGS) $< ../libtthimage.a fonctions.o -lm -o $@
tga_effects: tga_effects.c $(DEPS) fonctions.o
gcc $(CFLAGS) $< ../libimage.a fonctions.o -lm -o $@
gcc $(CFLAGS) $< ../libtthimage.a fonctions.o -lm -o $@
tga_equalize: tga_equalize.c $(DEPS) fonctions.o
gcc $(CFLAGS) $< ../libimage.a fonctions.o -lm -o $@
gcc $(CFLAGS) $< ../libtthimage.a fonctions.o -lm -o $@
tga_filtres: tga_filtres.c $(DEPS) fonctions.o
gcc $(CFLAGS) $< ../libimage.a fonctions.o -lm -o $@
gcc $(CFLAGS) $< ../libtthimage.a fonctions.o -lm -o $@
tga_makehf15: tga_makehf15.c $(DEPS) fonctions.o
gcc $(CFLAGS) $< ../libimage.a fonctions.o -lm -o $@
gcc $(CFLAGS) $< ../libtthimage.a fonctions.o -lm -o $@
tga_mires: tga_mires.c $(DEPS) fonctions.o
gcc $(CFLAGS) $< ../libimage.a fonctions.o -lm -o $@
gcc $(CFLAGS) $< ../libtthimage.a fonctions.o -lm -o $@
tga_remap: tga_remap.c $(DEPS) fonctions.o
gcc $(CFLAGS) $< ../libimage.a fonctions.o -lm -o $@
gcc $(CFLAGS) $< ../libtthimage.a fonctions.o -lm -o $@
tga_television: tga_television.c $(DEPS) fonctions.o
gcc $(CFLAGS) $< ../libimage.a fonctions.o -lm -o $@
gcc $(CFLAGS) $< ../libtthimage.a fonctions.o -lm -o $@
tga_tools: tga_tools.c $(DEPS) fonctions.o
gcc $(CFLAGS) $< ../libimage.a fonctions.o -lm -o $@
gcc $(CFLAGS) $< ../libtthimage.a fonctions.o -lm -o $@
tga_incrust: tga_incrust.c $(DEPS) fonctions.o
gcc $(CFLAGS) $< ../libimage.a fonctions.o -lm -o $@
gcc $(CFLAGS) $< ../libtthimage.a fonctions.o -lm -o $@
# tga_info: tga_info.c $(DEPS) fonctions.o
# gcc $(CFLAGS) $< ../libimage.a fonctions.o -lm -o $@
tga_pattern: tga_pattern.c $(DEPS) fonctions.o
gcc $(CFLAGS) $< ../libimage.a fonctions.o -lm -o $@
gcc $(CFLAGS) $< ../libtthimage.a fonctions.o -lm -o $@
#-----------------------------------------------------------------

36
Tools/README.md Normal file
View File

@ -0,0 +1,36 @@
# Tools
Pour utiliser toutes ces fonction, il y a une collection d'utilitaires
spécialisés.
## genplot2
## tga_applymap
## tga_cadre
## tga_combine
## tga_dither
## tga_effects
## tga_equalize
## tga_filtres
## tga_incrust
## tga_makehf15
## tga_mires
## tga_pattern
## tga_remap
## tga_television
## tga_tools

View File

@ -48,6 +48,7 @@ mot_clef commandes[] =
{ "tag7", TAG7SEG0, "si", "fname.tga nnn" },
{ "environ", ENVIRON, "", "" },
{ "mk_rgb", MK_RGB, "siiiii", "fname w h r g b" },
{ NULL, 0, NULL, NULL }
};
/*::------------------------------------------------------------------::*/
@ -295,7 +296,7 @@ fprintf(stderr, "set new seed -> %d\n", foo);
if (1 == argc)
{
fprintf(stderr, "* tga_tools v 0.1.31 (%s) *\n", __DATE__);
fprintf(stderr, "* tga_tools v 0.1.32 (%s) *\n", __DATE__);
fprintf(stderr, "usage:\n\t%s action f.tga [params]\n", argv[0]);
liste_mots_clefs(commandes, 42);
exit(0);

23
install.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
echo "warning: $0 is an ugly installer"
DESTDIR="/usr/local/"
install -d $DESTDIR/lib/
install -m 0644 libtthimage.a $DESTDIR/lib/libtthimage.a
install -m 0644 tthimage.h $DESTDIR/include/tthimage.h
liste="genplot2 tga_cadre tga_effects tga_filtres tga_remap tga_tools \
tga_combine tga_television tga_dither tga_applymap tga_makehf15 \
tga_mires tga_incrust tga_pattern tga_equalize"
for binaire in $liste
do
# file Tools/$binaire
install --strip -v Tools/$binaire $DESTDIR/bin/
echo
done

View File

@ -4,7 +4,7 @@
http:///la.buvette.org/devel/libimage/
*/
#ifndef IMAGE_VERSION_STRING
#define IMAGE_VERSION_STRING "0.4.49"
#define IMAGE_VERSION_STRING "0.4.50"
/*::------------------------------------------------------------------::*/
/*