]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Library/GenericBdsLib/Bmp.h
7f1790e74496d18c058e2f50983405cf24de9857
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / GenericBdsLib / Bmp.h
1 /** @file
2 This file defines BMP file header data structures.
3
4 Copyright (c) 2006 - 2008, Intel Corporation. <BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef _GENERIC_BDS_BMP_H__
16 #define _GENERIC_BDS_BMP_H__
17
18 #pragma pack(1)
19
20 typedef struct {
21 UINT8 Blue;
22 UINT8 Green;
23 UINT8 Red;
24 UINT8 Reserved;
25 } BMP_COLOR_MAP;
26
27 typedef struct {
28 CHAR8 CharB;
29 CHAR8 CharM;
30 UINT32 Size;
31 UINT16 Reserved[2];
32 UINT32 ImageOffset;
33 UINT32 HeaderSize;
34 UINT32 PixelWidth;
35 UINT32 PixelHeight;
36 UINT16 Planes; ///< Must be 1
37 UINT16 BitPerPixel; ///< 1, 4, 8, or 24
38 UINT32 CompressionType;
39 UINT32 ImageSize; ///< Compressed image size in bytes
40 UINT32 XPixelsPerMeter;
41 UINT32 YPixelsPerMeter;
42 UINT32 NumberOfColors;
43 UINT32 ImportantColors;
44 } BMP_IMAGE_HEADER;
45
46 #pragma pack()
47
48 #endif