diff options
author | Björn Stenberg <bjorn@haxx.se> | 2009-01-12 21:56:46 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2009-01-12 21:56:46 +0000 |
commit | 52320b83c0e9fb3c3f6c463f8bd61de35f03b235 (patch) | |
tree | 995a6f7e903f2a142ce64e05b27fa5e189b8544c /apps/plugins/lib/pluginlib_bmp.h | |
parent | bbd33a0a7db188e874b11e30e509f32c13200aea (diff) | |
download | rockbox-52320b83c0e9fb3c3f6c463f8bd61de35f03b235.tar.gz rockbox-52320b83c0e9fb3c3f6c463f8bd61de35f03b235.zip |
Added missing dependencies for codeclib and pluginlib. This required renaming some files that have twins in other places.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19756 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/pluginlib_bmp.h')
-rw-r--r-- | apps/plugins/lib/pluginlib_bmp.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/apps/plugins/lib/pluginlib_bmp.h b/apps/plugins/lib/pluginlib_bmp.h new file mode 100644 index 0000000000..0e7a0a4933 --- /dev/null +++ b/apps/plugins/lib/pluginlib_bmp.h | |||
@@ -0,0 +1,56 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2006 by Antoine Cellerier <dionoea -at- videolan -dot- org> | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | #ifndef _LIB_BMP_H_ | ||
22 | #define _LIB_BMP_H_ | ||
23 | |||
24 | #include "lcd.h" | ||
25 | #include "plugin.h" | ||
26 | |||
27 | #if LCD_DEPTH > 1 /* save is only available for color, resize for >1bpp */ | ||
28 | #ifdef HAVE_LCD_COLOR | ||
29 | /** | ||
30 | * Save bitmap to file | ||
31 | */ | ||
32 | int save_bmp_file( char* filename, struct bitmap *bm, const struct plugin_api* rb ); | ||
33 | #endif | ||
34 | |||
35 | /** | ||
36 | Very simple image scale from src to dst (nearest neighbour). | ||
37 | Source and destination dimensions are read from the struct bitmap. | ||
38 | */ | ||
39 | void simple_resize_bitmap(struct bitmap *src, struct bitmap *dst); | ||
40 | |||
41 | /** | ||
42 | Advanced image scale from src to dst (bilinear) based on imlib2. | ||
43 | Source and destination dimensions are read from the struct bitmap. | ||
44 | */ | ||
45 | void smooth_resize_bitmap(struct bitmap *src, struct bitmap *dst); | ||
46 | |||
47 | #else | ||
48 | /* | ||
49 | BMP loader is built with scaling support in pluginlib on 1bpp targets, as | ||
50 | these do not provide scaling support in the core BMP loader. bmp_init is | ||
51 | needed to copy the plugin API pointer for the pluginlib loader's use. | ||
52 | */ | ||
53 | void bmp_init(const struct plugin_api *api); | ||
54 | #endif | ||
55 | |||
56 | #endif | ||