it's #else not #elif (fix red)
[Rockbox.git] / apps / plugins / lib / bmp.h
blob10f71865f755566e34f49d3d3332a8e21ccd6d3f
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 by Antoine Cellerier <dionoea -at- videolan -dot- org>
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef _LIB_BMP_H_
20 #define _LIB_BMP_H_
22 #include "lcd.h"
23 #include "plugin.h"
25 #ifdef HAVE_LCD_COLOR
26 /**
27 * Save bitmap to file
29 int save_bmp_file( char* filename, struct bitmap *bm, struct plugin_api* rb );
30 #endif
32 /**
33 Very simple image scale from src to dst (nearest neighbour).
34 Source and destination dimensions are read from the struct bitmap.
36 void simple_resize_bitmap(struct bitmap *src, struct bitmap *dst);
38 /**
39 Advanced image scale from src to dst (bilinear) based on imlib2.
40 Source and destination dimensions are read from the struct bitmap.
42 void smooth_resize_bitmap(struct bitmap *src, struct bitmap *dst);
44 #endif