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 struct __packed bmp_color_table_entry {
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 struct __packed bmp_header {
41 __u32 colors_important;
46 struct bmp_header header;
47 /* We use a zero sized array just as a placeholder for variable
49 struct bmp_color_table_entry color_table[0];
52 /* Data in the bmp_image is aligned to this length */
53 #define BMP_DATA_ALIGN 4
55 /* Constants for the compression field */