libtthimage/Lib/foo.c

67 lines
1.2 KiB
C

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <math.h>
#include "../tthimage.h"
/* ============================== */
int essai_false_colors(void)
{
int foo;
RGB_map luts;
foo = Image_gen_fc_lut(27e3, 33, &luts);
fprintf(stderr, "retour gen_fc_lut = %d\n", foo);
return -1;
}
/* ============================== */
int essai_show_t16x24( char *text)
{
if (NULL != text)
Image_t16x24_essai("16x24thin", text, "16x24.tga");
else
Image_t16x24_essai("16x24gruik", "0123456789abcdef", "16x24.tga");
return 0;
}
/* ============================== */
void essai_gradients(void)
{
int foo;
foo = Image_plot_H_gradient("foo.tga", 640, 200);
fprintf(stderr, "plot h gradient -> %d\n", foo);
foo = Image_plot_V_gradient("foo.tga", 900, 200);
fprintf(stderr, "plot v gradient -> %d\n", foo);
}
/* ============================== */
int main(int argc, char *argv[])
{
fprintf(stderr, "*** %s is running\n", argv[0]);
if (argc > 1) {
fprintf(stderr, "argument: %s\n", argv[1]);
Image_print_version(0);
Image_print_sizeof_structs("foo");
}
else {
essai_false_colors();
}
/*
foo = essai_show_t16x24(NULL);
fprintf(stderr, "essai show t16x24 --> %d\n", foo);
*/
return 0;
}