blob: eaacc4aa20617a6a29c29cc5531c5950e6f39b96 [file] [log] [blame]
Vishal Bhoj82c80712015-12-15 21:13:33 +05301/** @file
2 This file defines BMP file header data structures.
3
4Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
5This program and the accompanying materials
6are licensed and made available under the terms and conditions of the BSD License
7which accompanies this distribution. The full text of the license may be found at
8http://opensource.org/licenses/bsd-license.php
9
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13**/
14
15#ifndef _BMP_H_
16#define _BMP_H_
17
18#pragma pack(1)
19
20typedef struct {
21 UINT8 Blue;
22 UINT8 Green;
23 UINT8 Red;
24 UINT8 Reserved;
25} BMP_COLOR_MAP;
26
27typedef 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