]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdeModulePkg/Include/Guid/Bmp.h
Add additional comments for structure definition.
[mirror_edk2.git] / MdeModulePkg / Include / Guid / Bmp.h
... / ...
CommitLineData
1/** @file\r
2 This file defines header data structures for BMP file and default\r
3 FFS GUID Filename for BMP logo file. \r
4\r
5Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
6All rights reserved. This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#ifndef __BMP_GUID_H__\r
17#define __BMP_GUID_H__\r
18\r
19#pragma pack(1)\r
20\r
21typedef struct {\r
22 UINT8 Blue;\r
23 UINT8 Green;\r
24 UINT8 Red;\r
25 UINT8 Reserved;\r
26} BMP_COLOR_MAP;\r
27\r
28typedef struct {\r
29 CHAR8 CharB;\r
30 CHAR8 CharM;\r
31 UINT32 Size;\r
32 UINT16 Reserved[2];\r
33 UINT32 ImageOffset;\r
34 UINT32 HeaderSize;\r
35 UINT32 PixelWidth;\r
36 UINT32 PixelHeight;\r
37 UINT16 Planes; /// Must be 1\r
38 UINT16 BitPerPixel; /// 1, 4, 8, or 24\r
39 UINT32 CompressionType;\r
40 UINT32 ImageSize; /// Compressed image size in bytes\r
41 UINT32 XPixelsPerMeter;\r
42 UINT32 YPixelsPerMeter;\r
43 UINT32 NumberOfColors;\r
44 UINT32 ImportantColors;\r
45} BMP_IMAGE_HEADER;\r
46\r
47#pragma pack()\r
48\r
49#define EFI_DEFAULT_BMP_LOGO_GUID \\r
50 {0x7BB28B99,0x61BB,0x11d5,{0x9A,0x5D,0x00,0x90,0x27,0x3F,0xC1,0x4D}}\r
51\r
52extern EFI_GUID gEfiDefaultBmpLogoGuid;\r
53\r
54#endif\r