1 /* SPDX-License-Identifier: GPL-2.0+ */
6 /************************************************************************/
7 /* ** Layout of a bmp file */
8 /************************************************************************/
13 #include <linux/compiler.h>
15 struct __packed bmp_color_table_entry {
22 /* When accessing these fields, remember that they are stored in little
23 endian format, so use linux macros, e.g. le32_to_cpu(width) */
25 struct __packed bmp_header {
42 __u32 colors_important;
47 struct bmp_header header;
48 /* We use a zero sized array just as a placeholder for variable
50 struct bmp_color_table_entry 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 */