Vishal Bhoj | 82c8071 | 2015-12-15 21:13:33 +0530 | [diff] [blame^] | 1 | /** @file
|
| 2 | This file defines BMP file header data structures.
|
| 3 |
|
| 4 | Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
| 5 | 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 _BMP_H_
|
| 16 | #define _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
|