|
|
|
@ -30,21 +30,21 @@ GNU General Public License for more details.
@@ -30,21 +30,21 @@ GNU General Public License for more details.
|
|
|
|
|
#pragma pack( push, 1 ) |
|
|
|
|
typedef struct |
|
|
|
|
{ |
|
|
|
|
char id[2]; // bmfh.bfType
|
|
|
|
|
dword fileSize; // bmfh.bfSize
|
|
|
|
|
dword reserved0; // bmfh.bfReserved1 + bmfh.bfReserved2
|
|
|
|
|
dword bitmapDataOffset; // bmfh.bfOffBits
|
|
|
|
|
dword bitmapHeaderSize; // bmih.biSize
|
|
|
|
|
int width; // bmih.biWidth
|
|
|
|
|
int height; // bmih.biHeight
|
|
|
|
|
word planes; // bmih.biPlanes
|
|
|
|
|
word bitsPerPixel; // bmih.biBitCount
|
|
|
|
|
dword compression; // bmih.biCompression
|
|
|
|
|
dword bitmapDataSize; // bmih.biSizeImage
|
|
|
|
|
dword hRes; // bmih.biXPelsPerMeter
|
|
|
|
|
dword vRes; // bmih.biYPelsPerMeter
|
|
|
|
|
dword colors; // bmih.biClrUsed
|
|
|
|
|
dword importantColors; // bmih.biClrImportant
|
|
|
|
|
int8_t id[2]; // bmfh.bfType
|
|
|
|
|
uint32_t fileSize; // bmfh.bfSize
|
|
|
|
|
uint32_t reserved0; // bmfh.bfReserved1 + bmfh.bfReserved2
|
|
|
|
|
uint32_t bitmapDataOffset; // bmfh.bfOffBits
|
|
|
|
|
uint32_t bitmapHeaderSize; // bmih.biSize
|
|
|
|
|
int32_t width; // bmih.biWidth
|
|
|
|
|
int32_t height; // bmih.biHeight
|
|
|
|
|
uint16_t planes; // bmih.biPlanes
|
|
|
|
|
uint16_t bitsPerPixel; // bmih.biBitCount
|
|
|
|
|
uint32_t compression; // bmih.biCompression
|
|
|
|
|
uint32_t bitmapDataSize; // bmih.biSizeImage
|
|
|
|
|
uint32_t hRes; // bmih.biXPelsPerMeter
|
|
|
|
|
uint32_t vRes; // bmih.biYPelsPerMeter
|
|
|
|
|
uint32_t colors; // bmih.biClrUsed
|
|
|
|
|
uint32_t importantColors; // bmih.biClrImportant
|
|
|
|
|
} bmp_t; |
|
|
|
|
#pragma pack( pop ) |
|
|
|
|
#endif // IMG_BMP_H
|
|
|
|
|