diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-09-12 15:42:46 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-09-12 17:23:09 +0200 |
commit | 2beb82f88a9b3a2f2fee8fdb8818a38240009137 (patch) | |
tree | dc3bfb5bff15ac61a14f2d3c5a0d44d0d209f98b /include | |
parent | a60803de6796ab7efefcb7da26ac7647bf9ac5b3 (diff) | |
download | barebox-2beb82f88a9b3a2f2fee8fdb8818a38240009137.tar.gz barebox-2beb82f88a9b3a2f2fee8fdb8818a38240009137.tar.xz |
graphic_utils: add rgba support
this will allow to render rgba image with or without hw support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/graphic_utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/graphic_utils.h b/include/graphic_utils.h index 4e5596f1ef..9909b6c873 100644 --- a/include/graphic_utils.h +++ b/include/graphic_utils.h @@ -7,8 +7,11 @@ #ifndef __GRAPHIC_UTILS_H__ #define __GRAPHIC_UTILS_H__ +void rgba_blend(struct fb_info *info, void *image, void* dest, int height, + int width, int startx, int starty, bool is_rgba); void set_pixel(struct fb_info *info, void *adr, u32 px); void set_rgb_pixel(struct fb_info *info, void *adr, u8 r, u8 g, u8 b); +void set_rgba_pixel(struct fb_info *info, void *adr, u8 r, u8 g, u8 b, u8 a); void memset_pixel(struct fb_info *info, void* buf, u32 color, size_t size); #endif /* __GRAPHIC_UTILS_H__ */ |