forked from len0rd/rockbox
use different function to resize bitmap for greylib.
it is confusing that same function expects different data type (fb_data or unsigned char) depending on the target. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28233 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8ad85ba291
commit
38e88f35f4
3 changed files with 54 additions and 16 deletions
|
@ -37,10 +37,19 @@ int save_bmp_file( char* filename, struct bitmap *bm );
|
|||
*/
|
||||
void simple_resize_bitmap(struct bitmap *src, struct bitmap *dst);
|
||||
|
||||
#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH < 4)
|
||||
/**
|
||||
Same as simple_resize_bitmap except this is for use with greylib.
|
||||
*/
|
||||
void grey_resize_bitmap(struct bitmap *src, struct bitmap *dst);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
/**
|
||||
Advanced image scale from src to dst (bilinear) based on imlib2.
|
||||
Source and destination dimensions are read from the struct bitmap.
|
||||
*/
|
||||
void smooth_resize_bitmap(struct bitmap *src, struct bitmap *dst);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue