Changeset 85870 in vbox for trunk/include
- Timestamp:
- Aug 21, 2020 4:56:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/formats/bmp.h
r85864 r85870 1 1 /* $Id$ */ 2 2 /** @file 3 * Bitmap (BMP) format defines.3 * IPRT - Microsoft Bitmap Formats (BMP). 4 4 */ 5 5 6 6 /* 7 * Copyright (C) 20 20 Oracle Corporation7 * Copyright (C) 2006-2020 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 34 34 #include <iprt/assertcompile.h> 35 35 36 37 /** @defgroup grp_rt_fmt_bmp Microsoft Bitmaps Formats (BMP) 38 * @ingroup grp_rt_formats 39 * @{ 40 */ 41 36 42 /** @name BMP header sizes (in bytes). 37 * @{ .*/43 * @{ */ 38 44 #define BMP_HDR_SIZE_FILE 14 39 45 #define BMP_HDR_SIZE_OS21 12 40 46 #define BMP_HDR_SIZE_OS22 64 41 47 #define BMP_HDR_SIZE_WIN3X 40 42 /** @} .*/48 /** @} */ 43 49 44 #pragma pack(1)45 50 46 51 /** BMP format file header. */ 52 #pragma pack(1) 47 53 typedef struct BMPFILEHDR 48 54 { … … 58 64 uint32_t offBits; 59 65 } BMPFILEHDR; 66 #pragma pack() 60 67 AssertCompileSize(BMPFILEHDR, BMP_HDR_SIZE_FILE); 61 68 /** Pointer to a BMP format file header. */ 62 69 typedef BMPFILEHDR *PBMPFILEHDR; 70 71 /** BMP file magic number for BMP / DIB. */ 72 #define BMP_HDR_MAGIC (RT_H2LE_U16_C(0x4d42)) 63 73 64 74 /** OS/2 1.x BMP core header, … … 158 168 typedef BMPWIN3XINFOHDR *PBMPWIN3XINFOHDR; 159 169 160 #pragma pack()161 170 162 /** BMP file magic number for BMP / DIB. */163 #define BMP_HDR_MAGIC (RT_H2LE_U16_C(0x4d42))164 171 165 172 /** @name BMP compression types. 166 * @{ . */ 167 typedef enum BMP_COMPRESSION_TYPE 168 { 169 BMP_COMPRESSION_TYPE_NONE = 0, 170 BMP_COMPRESSION_TYPE_RLE8 = 1, 171 BMP_COMPRESSION_TYPE_RLE4 = 2 172 } BMP_COMPRESSION_TYPE; 173 /** @} . */ 173 * @{ */ 174 #define BMP_COMPRESSION_TYPE_NONE 0 175 #define BMP_COMPRESSION_TYPE_RLE8 1 176 #define BMP_COMPRESSION_TYPE_RLE4 2 177 /** @} */ 178 179 /** @} */ 174 180 175 181 #endif /* !IPRT_INCLUDED_formats_bmp_h */
Note:
See TracChangeset
for help on using the changeset viewer.