forked from len0rd/rockbox
Commit FS#8308 (Port of imlib2 based smooth scaling) by Jonas Hurrelmann. It could be made smaller by taking out some special cases, but I'm leaving them in for now because size isn't really a concern until we decide to move it into the core (if we ever do). test_resize now allows to choose between both resize methods for comparison. sliding_puzzle is made to use the smooth scaling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17001 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9ba80c9641
commit
6aa36c66a3
5 changed files with 492 additions and 18 deletions
|
@ -35,4 +35,10 @@ int save_bmp_file( char* filename, struct bitmap *bm, struct plugin_api* rb );
|
|||
*/
|
||||
void simple_resize_bitmap(struct bitmap *src, struct bitmap *dst);
|
||||
|
||||
/**
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue