]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Library/GenericBdsLib/Bmp.h
Program SD Cards into 4-bit mode (support for this is required in the spec). This...
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / GenericBdsLib / Bmp.h
CommitLineData
4354ec05 1/** @file\r
2 This file defines BMP file header data structures.\r
3\r
180a5a35
HT
4Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
4354ec05 6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT 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
20typedef 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
27typedef 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
ce1e1d5a 36 UINT16 Planes; ///< Must be 1\r
37 UINT16 BitPerPixel; ///< 1, 4, 8, or 24\r
4354ec05 38 UINT32 CompressionType;\r
ce1e1d5a 39 UINT32 ImageSize; ///< Compressed image size in bytes\r
4354ec05 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