Build doom on clipv2 and clip+
[kugel-rb.git] / apps / plugins / lib / feature_wrappers.h
blob50552fbda4950436263972098277cbe61ed3e09a
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2009 by Andrew Mahone
12 * This defines wrappers for some features which are used differently depending
13 * on how the target was built, primarily because of core features being accesed
14 * via pluginlib on targets where they are missing from core.
16 * This program is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU General Public License
18 * as published by the Free Software Foundation; either version 2
19 * of the License, or (at your option) any later version.
21 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
22 * KIND, either express or implied.
24 ****************************************************************************/
26 #ifndef _LIB_FEATURE_WRAPPERS_H_
27 #define _LIB_FEATURE_WRAPPERS_H_
29 /* search_albumart_files is only available in core with HAVE_ALBUMART defined,
30 * but can easily be implement in pluginlib as long as the database is
31 * available.
33 #if defined(HAVE_ALBUMART) && defined(HAVE_JPEG)
34 #define search_albumart_files rb->search_albumart_files
35 #endif
37 /* This should only be used when loading scaled bitmaps, or using custom output
38 * plugins. A native output plugin for the scaler is available as format_native
39 * on targets with LCD_DEPTH > 1
41 #ifdef HAVE_BMP_SCALING
42 #define scaled_read_bmp_file rb->read_bmp_file
43 #define scaled_read_bmp_fd rb->read_bmp_fd
44 #else
45 #define scaled_read_bmp_file read_bmp_file
46 #define scaled_read_bmp_fd read_bmp_fd
47 #endif
49 #ifdef HAVE_JPEG
50 #define read_jpeg_file rb->read_jpeg_file
51 #define read_jpeg_fd rb->read_jpeg_fd
52 #else
53 #endif
55 #endif