more cleanup...
This commit is contained in:
@@ -199,7 +199,10 @@ testbmp: testbmp.c $(DEPS) ../libtthimage.a
|
||||
essais.o: essais.c $(DEPS) essais.h
|
||||
gcc $(CFLAGS) $< -c
|
||||
|
||||
testtga: testtga.c $(DEPS) ../libtthimage.a essais.o
|
||||
testtga.o: testtga.c testtga.c $(DEPS)
|
||||
gcc $(CFLAGS) $< -c
|
||||
|
||||
testtga: testtga.o ../libtthimage.a essais.o
|
||||
gcc $(CFLAGS) $< essais.o ../libtthimage.a -lm -o $@
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include "tthimage.h"
|
||||
#include "../tthimage.h"
|
||||
|
||||
/*::------------------------------------------------------------------::*/
|
||||
/*
|
||||
@@ -32,5 +32,3 @@ for (foo=0; foo<256; foo++)
|
||||
return FULL_NUCKED;
|
||||
}
|
||||
/*::------------------------------------------------------------------::*/
|
||||
|
||||
/*::------------------------------------------------------------------::*/
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#define DEBUG_LEVEL 1
|
||||
#endif
|
||||
|
||||
#include "tthimage.h"
|
||||
#include "../tthimage.h"
|
||||
|
||||
/*::------------------------------------------------------------------::*/
|
||||
#define LIBPCX_VERSION "0.0.12"
|
||||
|
||||
@@ -8,13 +8,18 @@
|
||||
|
||||
#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 ( '%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);
|
||||
|
||||
return FULL_NUCKED;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,17 @@
|
||||
|
||||
/*::------------------------------------------------------------------::*/
|
||||
|
||||
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[])
|
||||
{
|
||||
@@ -23,7 +34,10 @@ int foo;
|
||||
|
||||
printf("\n========== TestTga %s %s ==========\n", __DATE__, __TIME__);
|
||||
Image_print_version(2);
|
||||
/* Image_print_sizeof_structs("tth was here"); */
|
||||
|
||||
#if DEBUG_LEVEL
|
||||
Image_print_sizeof_structs("tth was here");
|
||||
#endif
|
||||
|
||||
if (argc != 2)
|
||||
{
|
||||
@@ -38,15 +52,16 @@ 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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user