]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/IndustryStandard/Bmp.h
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / Bmp.h
1 /** @file
2 This file defines BMP file header data structures.
3
4 Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #ifndef _BMP_H_
10 #define _BMP_H_
11
12 #pragma pack(1)
13
14 typedef struct {
15 UINT8 Blue;
16 UINT8 Green;
17 UINT8 Red;
18 UINT8 Reserved;
19 } BMP_COLOR_MAP;
20
21 typedef struct {
22 CHAR8 CharB;
23 CHAR8 CharM;
24 UINT32 Size;
25 UINT16 Reserved[2];
26 UINT32 ImageOffset;
27 UINT32 HeaderSize;
28 UINT32 PixelWidth;
29 UINT32 PixelHeight;
30 UINT16 Planes; ///< Must be 1
31 UINT16 BitPerPixel; ///< 1, 4, 8, or 24
32 UINT32 CompressionType;
33 UINT32 ImageSize; ///< Compressed image size in bytes
34 UINT32 XPixelsPerMeter;
35 UINT32 YPixelsPerMeter;
36 UINT32 NumberOfColors;
37 UINT32 ImportantColors;
38 } BMP_IMAGE_HEADER;
39
40 #pragma pack()
41
42 #endif