feat(01-bmpmafia): added nerdybmp program

This commit is contained in:
2025-02-05 16:31:05 +03:00
commit aac3bb56c8
6 changed files with 103 additions and 0 deletions

View File

@ -0,0 +1,31 @@
#ifndef BMP_HPP
#define BMP_HPP
#include <stdint.h>
#pragma pack(push, 1)
namespace bmp {
struct FileHeader {
uint16_t type;
uint32_t size;
uint16_t reserved1;
uint16_t reserved2;
uint32_t offBits;
};
struct InfoHeader {
uint32_t size;
int32_t width;
int32_t height;
uint16_t planes;
uint16_t bitCount;
uint32_t compression;
uint32_t sizeImage;
int32_t xPixelsPerMeter;
int32_t yPixelsPerMeter;
uint32_t colorsUsed;
uint32_t colorsImportant;
};
}
#pragma pack(pop)
#endif