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