summaryrefslogtreecommitdiffstats
path: root/include/bmp_layout.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-09-12 15:42:40 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-09-12 17:21:10 +0200
commit6ce5bc4624456e26fe2c534b6ef3ec32b42685a4 (patch)
tree32446aa30d86df81a3c9e906387921e7f8e618fc /include/bmp_layout.h
parenta87361dfc30a49b5dd6cbd7e13cda40af223bfd5 (diff)
downloadbarebox-6ce5bc4624456e26fe2c534b6ef3ec32b42685a4.tar.gz
barebox-6ce5bc4624456e26fe2c534b6ef3ec32b42685a4.tar.xz
bmp: Move bmp rendering to lib/bmp.c
So we can add other format support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/bmp_layout.h')
-rw-r--r--include/bmp_layout.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/bmp_layout.h b/include/bmp_layout.h
index 63c5564830..b5472dd785 100644
--- a/include/bmp_layout.h
+++ b/include/bmp_layout.h
@@ -74,4 +74,15 @@ struct bmp_image {
#define BMP_BI_RLE8 1
#define BMP_BI_RLE4 2
+#ifdef CONFIG_BMP
+int bmp_render_file(struct fb_info *info, const char* bmpfile, void* fb,
+ int startx, int starty, int xres, int yres, void* offscreenbuf);
+#else
+static inline int bmp_render_file(struct fb_info *info, const char* bmpfile, void* fb,
+ int startx, int starty, int xres, int yres, void* offscreenbuf)
+{
+ return -ENOSYS;
+}
+#endif
+
#endif /* _BMP_H_ */