2
* Detlev Zundel, DENX Software Engineering, dzu@denx.de.
4
* SPDX-License-Identifier: GPL-2.0+
7
/************************************************************************/
8
/* ** Layout of a bmp file */
9
/************************************************************************/
14
typedef struct bmp_color_table_entry {
19
} __attribute__ ((packed)) bmp_color_table_entry_t;
21
/* When accessing these fields, remember that they are stored in little
22
endian format, so use linux macros, e.g. le32_to_cpu(width) */
24
typedef struct bmp_header {
41
__u32 colors_important;
44
} __attribute__ ((packed)) bmp_header_t;
46
typedef struct bmp_image {
48
/* We use a zero sized array just as a placeholder for variable
50
bmp_color_table_entry_t color_table[0];
53
/* Data in the bmp_image is aligned to this length */
54
#define BMP_DATA_ALIGN 4
56
/* Constants for the compression field */