tuning on applymap tool

This commit is contained in:
tth 2022-07-01 02:36:54 +02:00
parent 10dc0d2204
commit 155ed74e2b
4 changed files with 16 additions and 4 deletions

View File

@ -120,7 +120,7 @@ int Image_combine_Vsplit(Image_Desc *s1, Image_Desc *s2, Image_Desc *d,
int foo, x, y; int foo, x, y;
#if DEBUG_LEVEL #if DEBUG_LEVEL
fprintf(stderr, "%s (%p %p %p %d %d)\n", __func__, s1, s2, d, xv, uh); fprintf(stderr, "%s ( %p %p %p %d %d )\n", __func__, s1, s2, d, xv, uh);
#endif #endif
if (0 != uh) if (0 != uh)
@ -152,7 +152,7 @@ for (y=0; y<s1->height; y++)
} }
} }
return FUNC_IS_BETA; return OLL_KORRECT;
} }
/*::------------------------------------------------------------------::*/ /*::------------------------------------------------------------------::*/
/* nouveau 29 novembre 2013 /* nouveau 29 novembre 2013

View File

@ -29,6 +29,10 @@ int fd;
char *path, *tmp; char *path, *tmp;
int l1, l2; int l1, l2;
#if DEBUG_LEVEL
fprintf(stderr, ">>> %s ( '%s' '%s' %d )\n", __func__, filename, mode, type);
#endif
if (type != 0) if (type != 0)
{ {
fprintf(stderr, "Image must Open: type (%d) must be 0\n", type); fprintf(stderr, "Image must Open: type (%d) must be 0\n", type);
@ -112,6 +116,10 @@ FILE *fp;
char *path, *tmp; char *path, *tmp;
int l1, l2; int l1, l2;
#if DEBUG_LEVEL
fprintf(stderr, ">>> %s ( '%s' '%s' %d )\n", __func__, filename, mode, type);
#endif
/* filter for the reserved parameter */ /* filter for the reserved parameter */
if (type != 0) if (type != 0)
{ {

View File

@ -19,7 +19,7 @@ Usage:
prewitt | i | rotation [0..8] prewitt | i | rotation [0..8]
random | ii | try it... random | ii | try it...
``` ```
La colonne du milieu undique le type des paramètres : La colonne du milieu indique le type des paramètres :
- `i` pour un nombre entier - `i` pour un nombre entier
- `d` pour un flottant en double précision - `d` pour un flottant en double précision
@ -33,6 +33,8 @@ est globalement mal géré par l'ensemble de libtthimage.
## tga_applymap ## tga_applymap
La gestion de la ligne de commande est désastreuse. **À REFAIRE**
## tga_cadre ## tga_cadre
Pas mal de façons de mettre un cadre sur l'image. Pas mal de façons de mettre un cadre sur l'image.

View File

@ -13,7 +13,9 @@ void usage(int flag)
{ {
fprintf(stderr, "* tga_applymap v 0.0.14 [%s] (dwtfywl) Krabulator 1910\n", fprintf(stderr, "* tga_applymap v 0.0.14 [%s] (dwtfywl) Krabulator 1910\n",
TGA_OUTILS_VERSION); TGA_OUTILS_VERSION);
fprintf(stderr, "Usage: tga_applymap M src.tga color.map dst.tga\n"); fprintf(stderr, " compiled %s at %s\n", __DATE__, __TIME__);
fprintf(stderr, "Usage:\n\ttga_applymap M src.tga color.map dst.tga\n");
fprintf(stderr, " M is 1 or 2\n"); fprintf(stderr, " M is 1 or 2\n");
Image_print_version(0); Image_print_version(0);
exit(5); exit(5);