1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Detlev Zundel, DENX Software Engineering, dzu@denx.de.
6 /************************************************************************/
7 /* ** Layout of a bmp file */
8 /************************************************************************/
13 struct __packed bmp_color_table_entry {
20 /* When accessing these fields, remember that they are stored in little
21 endian format, so use linux macros, e.g. le32_to_cpu(width) */
23 struct __packed bmp_header {
40 __u32 colors_important;
45 struct bmp_header header;
46 /* We use a zero sized array just as a placeholder for variable
48 struct bmp_color_table_entry color_table[0];
51 /* Data in the bmp_image is aligned to this length */
52 #define BMP_DATA_ALIGN 4
54 /* Constants for the compression field */