aboutsummaryrefslogtreecommitdiff
path: root/include/lib/png.h
blob: e7943c2c47e3c745267031967978144e0b80fce5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef INC_LIB_PNG_H
#define INC_LIB_PNG_H

#include <stdint.h>
#include <sys/types.h>

struct pixel_t {
  uint8_t red;
  uint8_t green;
  uint8_t blue;
};

struct bitmap_t {
  struct pixel_t* image_buffer;
  size_t width;
  size_t height;
};

// Save bitmap to file
void save_png(struct bitmap_t* bitmap, char* fname);

#endif