-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmtypes.h
57 lines (48 loc) · 999 Bytes
/
mtypes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef __MTYPES_H
#include <stdint.h>
typedef struct cstruct {
double real;
double imag;
double length;
} Complex;
typedef struct {
Complex lleft;
char filename[256];
uint32_t interleave;
} RunStart;
typedef struct {
uint8_t red;
uint8_t grn;
uint8_t blu;
} Pixel;
typedef struct {
uint32_t *pall;
uint32_t size;
} ColorInfo;
#pragma pack(push,1)
typedef struct{
uint8_t signature[2];
uint32_t filesize;
uint32_t reserved;
uint32_t fileoffset_to_pixelarray;
} fileheader;
typedef struct{
uint32_t dibheadersize;
uint32_t width;
uint32_t height;
uint16_t planes;
uint16_t bitsperpixel;
uint32_t compression;
uint32_t imagesize;
uint32_t ypixelpermeter;
uint32_t xpixelpermeter;
uint32_t numcolorspallette;
uint32_t mostimpcolor;
} bitmapinfoheader;
typedef struct {
fileheader fileheader;
bitmapinfoheader bitmapinfoheader;
} bitmap;
#pragma pack(pop)
#define __MTYPES_H
#endif