aboutsummaryrefslogtreecommitdiff
path: root/src/bitmap.h
blob: 61ef0ceec02b396bf36961e25074db665b09f985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef IMV_BITMAP_H
#define IMV_BITMAP_H

enum imv_pixelformat {
  IMV_ARGB,
  IMV_ABGR,
};

struct imv_bitmap {
  int width;
  int height;
  enum imv_pixelformat format;
  unsigned char *data;
};

struct imv_bitmap *imv_bitmap_clone(struct imv_bitmap *bmp);
void imv_bitmap_free(struct imv_bitmap *bmp);

#endif