blob: 1a9aeae197878d2c901f741b033ff9b056b9c75b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef IMAGE_H
#define IMAGE_H
#if defined(USE_LIBPNG)
#include <png.h>
#elif defined(USE_LODEPNG)
#include "lodepng.h"
#else
#error "No png implementation"
#endif
#include <stdint.h>
#include <stddef.h>
// API structured after lodepng API
unsigned decode32(uint32_t** out, unsigned* w, unsigned* h, unsigned char* in, size_t insize);
unsigned encode32_file(const char* filename, const uint32_t* image, unsigned w, unsigned h);
#endif
|