the great code shaking party

This commit is contained in:
tth
2022-06-26 12:22:12 +02:00
parent ecd0186b28
commit 75a06cf5b4
102 changed files with 65 additions and 0 deletions

39
Lib/png.c Normal file
View File

@@ -0,0 +1,39 @@
/*
PNG aka "portable network graphics"s.
Un vrai merdier, en fait :(
*/
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <png.h>
#include "tthimage.h"
/*::------------------------------------------------------------------::*/
Image_Desc * Image_PNG_alloc_load(char *fname, int k)
{
return 666;
}
/*::------------------------------------------------------------------::*/
int Image_save_as_PNG(Image_Desc *img, char *fname, int p1, int p2)
{
FILE *fp;
int x, y;
png_uint_32 pngv;
#if DEBUG_LEVEL
fprintf(stderr, "%s ( %p '%s' %d %d )\n", __func__, img, fname, p1, p2);
fprintf(stderr, " png version -> %d\n", png_access_version_number());
#endif
return FULL_NUCKED;
}
/*::------------------------------------------------------------------::*/