| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
#ifndef BMITYPES_H_INCLUDED |
| 11 |
#define BMITYPES_H_INCLUDED |
| 12 |
|
| 13 |
#include "libzmf_utils.h" |
| 14 |
#include "ZMFTypes.h" |
| 15 |
#include <vector> |
| 16 |
|
| 17 |
namespace libzmf |
| 18 |
{ |
| 19 |
|
| 20 |
enum class BMIStreamType |
| 21 |
{ |
| 22 |
UNKNOWN, |
| 23 |
BITMAP, |
| 24 |
END_OF_FILE |
| 25 |
}; |
| 26 |
|
| 27 |
struct BMIOffset |
| 28 |
{ |
| 29 |
BMIStreamType type; |
| 30 |
uint32_t start; |
| 31 |
uint32_t end; |
| 32 |
|
| 33 |
BMIOffset() |
| 34 |
: type(BMIStreamType::UNKNOWN), start(0), end(0) |
| 35 |
{ } |
| 36 |
}; |
| 37 |
|
| 38 |
bool operator==(const BMIOffset &lhs, const BMIOffset &rhs); |
| 39 |
bool operator!=(const BMIOffset &lhs, const BMIOffset &rhs); |
| 40 |
|
| 41 |
struct ColorBitmap |
| 42 |
{ |
| 43 |
uint32_t width; |
| 44 |
uint32_t height; |
| 45 |
std::vector<Color> data; |
| 46 |
|
| 47 |
ColorBitmap() |
| 48 |
: width(0), height(0), data() |
| 49 |
{ } |
| 50 |
}; |
| 51 |
|
| 52 |
} |
| 53 |
|
| 54 |
#endif |
| 55 |
|
| 56 |
|