Compare commits

..

No commits in common. "d260117865392668e0b836e1540fd108731f94d0" and "15124ad892afde0d0ba49c4ac799da5c4e6afa50" have entirely different histories.

9 changed files with 19 additions and 41 deletions

View File

@ -199,10 +199,7 @@ testbmp: testbmp.c $(DEPS) ../libtthimage.a
essais.o: essais.c $(DEPS) essais.h
gcc $(CFLAGS) $< -c
testtga.o: testtga.c testtga.c $(DEPS)
gcc $(CFLAGS) $< -c
testtga: testtga.o ../libtthimage.a essais.o
testtga: testtga.c $(DEPS) ../libtthimage.a essais.o
gcc $(CFLAGS) $< essais.o ../libtthimage.a -lm -o $@
#-----------------------------------------------------------------

View File

@ -8,7 +8,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../tthimage.h"
#include "tthimage.h"
/*::------------------------------------------------------------------::*/
int Image_alpha_setvalue(Image_Desc *dst, int v_alpha)

View File

@ -67,7 +67,7 @@ int Image_H_line(Image_Desc *i, int xa, int xb, int ypos, RGBA *col)
{
int ix;
#if 1
#if DEBUG_LEVEL
fprintf(stderr, ">>> %s ( %d %d %d %p )\n", __func__, xa, xb, ypos, col);
#endif

View File

@ -5,7 +5,7 @@
#include <stdio.h>
#include <math.h>
#include "../tthimage.h"
#include "tthimage.h"
/*::------------------------------------------------------------------::*/
/*
@ -32,3 +32,5 @@ for (foo=0; foo<256; foo++)
return FULL_NUCKED;
}
/*::------------------------------------------------------------------::*/
/*::------------------------------------------------------------------::*/

View File

@ -22,7 +22,7 @@
#define DEBUG_LEVEL 1
#endif
#include "../tthimage.h"
#include "tthimage.h"
/*::------------------------------------------------------------------::*/
#define LIBPCX_VERSION "0.0.12"

View File

@ -8,18 +8,13 @@
#include <stdio.h>
#include <jpeglib.h> /* XXX to be checked ? */
#include "../tthimage.h"
/*::------------------------------------------------------------------::*/
int try_to_read_a_jpeg_file(char *fname, Image_Desc *img)
{
fprintf(stderr, ">>> %s ( '%s' %p )\n", __func__, fname, img);
fprintf(stderr, " %s compiled %s at %s\n", __FILE__, __DATE__, __TIME__);
fprintf(stderr, " JPEG_LIB_VERSION = %d\n", JPEG_LIB_VERSION);
fprintf(stderr, ">>> %s ( %s %p )\n", __func__, fname, img);
return FULL_NUCKED;
}

View File

@ -15,17 +15,6 @@
/*::------------------------------------------------------------------::*/
int test_du_jpeg_reader(char *filename)
{
Image_Desc destimg;
int foo;
fprintf(stderr, ">>> %s ( '%s' ) \n", __func__, filename);
foo = try_to_read_a_jpeg_file(filename, &destimg);
return FULL_NUCKED;
}
/*::------------------------------------------------------------------::*/
int main(int argc, char *argv[])
{
@ -34,10 +23,7 @@ int foo;
printf("\n========== TestTga %s %s ==========\n", __DATE__, __TIME__);
Image_print_version(2);
#if DEBUG_LEVEL
Image_print_sizeof_structs("tth was here");
#endif
/* Image_print_sizeof_structs("tth was here"); */
if (argc != 2)
{
@ -52,16 +38,15 @@ else
Image_start_chrono("Essai", 0);
foo = test_du_jpeg_reader("in.jpeg");
fprintf(stderr, " essai lecture jpeg -> %d\n", foo);
#if 0
foo = Test_Dithering(fichier, 17);
fprintf(stderr, "essai dithering -> %d\n", foo);
#if 0
/*
Test_des_patterns("/tmp/pattt", 0, 0);
foo = Essai_des_jauges(fichier, 17);
*/
foo = Essai_Extractbits(fichier, 17);

View File

@ -45,11 +45,9 @@ Paramètres mal documentés.
## tga_dither
Comment drastiquement réduire le nombre de couleurs d'une image ?
## tga_export
Attendu avec impatience, il aura le support complet des PNG. Un jour...
Attendu avec impatience, il aura le support complet des PNG.
## tga_effects
@ -84,4 +82,4 @@ tth@konrad:~/Devel/libtthimage$
## genplot2
Outil de tracé pseudo-générique et farci de bugs. WIP ME HARDLY !

View File

@ -149,15 +149,16 @@ else filename = argv[optind];
if (argc<=optind+1) image = "image.tga";
else image = argv[optind+1];
/*----------- giving to the yuser some useless informations --- */
#if DEBUG_LEVEL
fprintf(stderr, "*** Genplot2 v 1.0.10 (dwtfywl) 1995,2010,2022 TontonTh \n");
#endif
if (verbeux) {
fprintf(stderr, "argc %d optind %d file '%s' image '%s'\n",
argc, optind, filename, image);
fprintf(stderr, " picsize : %d %d\n", outw, outh);
}
/*----------- giving to the yuser some useless informations --- */
#if DEBUG_LEVEL
fprintf(stderr, "*** Genplot2 v 1.0.9 (dwtfywl) 1995,2010,2022 TontonTh \n");
fprintf(stderr, " picsize : %d %d\n", outw, outh);
#endif
/*----------- opening input file and getting MIN and MAX values */