]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | This file defines BMP file header data structures.\r | |
3 | \r | |
4 | Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef _GENERIC_BDS_BMP_H__\r | |
16 | #define _GENERIC_BDS_BMP_H__\r | |
17 | \r | |
18 | #pragma pack(1)\r | |
19 | \r | |
20 | typedef struct {\r | |
21 | UINT8 Blue;\r | |
22 | UINT8 Green;\r | |
23 | UINT8 Red;\r | |
24 | UINT8 Reserved;\r | |
25 | } BMP_COLOR_MAP;\r | |
26 | \r | |
27 | typedef struct {\r | |
28 | CHAR8 CharB;\r | |
29 | CHAR8 CharM;\r | |
30 | UINT32 Size;\r | |
31 | UINT16 Reserved[2];\r | |
32 | UINT32 ImageOffset;\r | |
33 | UINT32 HeaderSize;\r | |
34 | UINT32 PixelWidth;\r | |
35 | UINT32 PixelHeight;\r | |
36 | UINT16 Planes; ///< Must be 1\r | |
37 | UINT16 BitPerPixel; ///< 1, 4, 8, or 24\r | |
38 | UINT32 CompressionType;\r | |
39 | UINT32 ImageSize; ///< Compressed image size in bytes\r | |
40 | UINT32 XPixelsPerMeter;\r | |
41 | UINT32 YPixelsPerMeter;\r | |
42 | UINT32 NumberOfColors;\r | |
43 | UINT32 ImportantColors;\r | |
44 | } BMP_IMAGE_HEADER;\r | |
45 | \r | |
46 | #pragma pack()\r | |
47 | \r | |
48 | #endif\r |