]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Include/Guid/Bmp.h
Add INF extension Information
[mirror_edk2.git] / MdeModulePkg / Include / Guid / Bmp.h
1 /** @file
2 This file defines BMP file header data structures.
3 It also defines the File GUID for default BMP logo file.
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 #pragma pack(1)
20
21 typedef struct {
22 UINT8 Blue;
23 UINT8 Green;
24 UINT8 Red;
25 UINT8 Reserved;
26 } BMP_COLOR_MAP;
27
28 typedef struct {
29 CHAR8 CharB;
30 CHAR8 CharM;
31 UINT32 Size;
32 UINT16 Reserved[2];
33 UINT32 ImageOffset;
34 UINT32 HeaderSize;
35 UINT32 PixelWidth;
36 UINT32 PixelHeight;
37 UINT16 Planes; ///> Must be 1
38 UINT16 BitPerPixel; ///> 1, 4, 8, or 24
39 UINT32 CompressionType;
40 UINT32 ImageSize; ///> Compressed image size in bytes
41 UINT32 XPixelsPerMeter;
42 UINT32 YPixelsPerMeter;
43 UINT32 NumberOfColors;
44 UINT32 ImportantColors;
45 } BMP_IMAGE_HEADER;
46
47 #pragma pack()
48
49 #define EFI_DEFAULT_BMP_LOGO_GUID \
50 {0x7BB28B99,0x61BB,0x11d5,{0x9A,0x5D,0x00,0x90,0x27,0x3F,0xC1,0x4D}}
51
52 extern EFI_GUID gEfiDefaultBmpLogoGuid;
53
54 #endif