-
Notifications
You must be signed in to change notification settings - Fork 0
/
bmpreader.h
43 lines (42 loc) · 979 Bytes
/
bmpreader.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
class ImageIO
{
public:
static int writePixelBuffer (
const char *filename,
const unsigned char *buffer,
const unsigned int width,
const unsigned int height,
const unsigned int bitdepth,
const unsigned int channels,
bool flip)
{}
static int readPixelBuffer (
const char *filename,
const char *buffer,
unsigned int& width,
unsigned int& height,
unsigned int& bitdepth,
unsigned int& colourType)
{}
};
class BMPIO : public ImageIO
{
public:
static int writePixelBuffer (
const char *filename,
const unsigned char *buffer,
const unsigned int width,
const unsigned int height,
const unsigned int bitdepth,
const unsigned int channels,
bool flip)
{}
static int readPixelBuffer (
const char *filename,
const char *buffer,
unsigned int& width,
unsigned int& height,
unsigned int& bitdepth,
unsigned int& colourType)
{}
};