]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/IndustryStandard/Bmp.h
MdePkg: TpmPtp: Add CapCRBIdleBypass definition
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / Bmp.h
CommitLineData
90710be6 1/** @file\r
2 This file defines BMP file header data structures.\r
3\r
4Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
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 _BMP_H_\r
16#define _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
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