summaryrefslogtreecommitdiffstats
path: root/include/bmp_layout.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-07-31 15:08:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-07-31 15:08:49 +0200
commitce0d6995f6a38db81391ae913cc11580ceca0951 (patch)
tree3669ccc1f3578b6d3f7d502f403d58c919650624 /include/bmp_layout.h
parent79baaa503f732c421f1168b57e8241b863e8af94 (diff)
downloadbarebox-ce0d6995f6a38db81391ae913cc11580ceca0951.tar.gz
barebox-ce0d6995f6a38db81391ae913cc11580ceca0951.tar.xz
framebuffer: Add bmp command to show bmp files
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/bmp_layout.h')
-rw-r--r--include/bmp_layout.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/bmp_layout.h b/include/bmp_layout.h
index d823de910f..63c5564830 100644
--- a/include/bmp_layout.h
+++ b/include/bmp_layout.h
@@ -27,17 +27,17 @@
#ifndef _BMP_H_
#define _BMP_H_
-typedef struct bmp_color_table_entry {
+struct bmp_color_table_entry {
__u8 blue;
__u8 green;
__u8 red;
__u8 reserved;
-} __attribute__ ((packed)) bmp_color_table_entry_t;
+} __attribute__ ((packed));
/* When accessing these fields, remember that they are stored in little
endian format, so use linux macros, e.g. le32_to_cpu(width) */
-typedef struct bmp_header {
+struct bmp_header {
/* Header */
char signature[2];
__u32 file_size;
@@ -57,14 +57,14 @@ typedef struct bmp_header {
__u32 colors_important;
/* ColorTable */
-} __attribute__ ((packed)) bmp_header_t;
+} __attribute__ ((packed));
-typedef struct bmp_image {
- bmp_header_t header;
+struct bmp_image {
+ struct bmp_header header;
/* We use a zero sized array just as a placeholder for variable
sized array */
- bmp_color_table_entry_t color_table[0];
-} bmp_image_t;
+ struct bmp_color_table_entry color_table[0];
+};
/* Data in the bmp_image is aligned to this length */
#define BMP_DATA_ALIGN 4