#include <stdint.h>
#include <arpa/inet.h>
#include <zlib.h>
+#include <stdio.h>
+#include <stdlib.h>
#include "png.h"
uint32_t l;
int i;
int toalloc = 0;
+ z_stream strm;
for(i = 0; i < 256; i++) {
lut[i][0] = ((i >> 6) * 0x55);
screen_conv[i+2] = lut[lcd[i/3]][2];
}
+ strm.zalloc = Z_NULL;
+ strm.zfree = Z_NULL;
+ strm.opaque = Z_NULL;
+ if (deflateInit(&strm, 9) != Z_OK) {
+ perror("deflateInit");
+ exit(EXIT_FAILURE);
+ }
+
+
image = malloc(320*234*2); /* TODO: FIXME! */
outpos = image;
memcpy(outpos, png, sizeof(png));