Atlas - bmp_head.h
Home / lab / c / bitmap Lines: 1 | Size: 928 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1/** 2 * BITMAP 3 * © 2025 0x4248 4 */ 5 6#include <stdint.h> 7 8#pragma pack(push, 1) 9 10typedef struct { 11 uint16_t bfType; 12 uint32_t bfSize; 13 uint16_t bfReserved1; 14 uint16_t bfReserved2; 15 uint32_t bfOffBits; 16 /* Yeah I know its part of the file info and 17 * not the header, its just easier putting it 18 * into this struct. 19 */ 20 uint32_t biSize; 21} BM_FILE_HEAD; 22 23/* V1 FILE INFO: 40 BYTES */ 24typedef struct { 25 int32_t biWidth; 26 int32_t biHeight; 27 uint16_t biPlanes; 28 uint16_t biBitCount; 29 uint32_t biCompression; 30 uint32_t biSizeImage; 31 int32_t biXPelsPerMeter; 32 int32_t biYPelsPerMeter; 33 uint32_t biClrUsed; 34 uint32_t biClrImportant; 35} BM_INFO_V1; 36 37typedef struct { 38 /* V2 Data */ 39 uint32_t biRedMask; 40 uint32_t biGreenMask; 41 uint32_t biBlueMask; 42} BM_INFO_V2; 43 44typedef struct { 45 /* V3 Data */ 46 uint32_t biAlphaMask; 47 48} BM_INFO_V3; 49 50 51#pragma pack(pop) 52[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.