A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita
audio
rust
zig
deno
mpris
rockbox
mpd
1/***************************************************************************
2* __________ __ ___.
3* Open \______ \ ____ ____ | | _\_ |__ _______ ___
4* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7* \/ \/ \/ \/ \/
8* $Id$
9*
10* Copyright (C) 2009 by Andrew Mahone
11*
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.
15*
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.
20*
21* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
22* KIND, either express or implied.
23*
24****************************************************************************/
25
26#ifndef _LIB_FEATURE_WRAPPERS_H_
27#define _LIB_FEATURE_WRAPPERS_H_
28
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.
32 */
33#if defined(HAVE_ALBUMART) && defined(HAVE_JPEG)
34#define search_albumart_files rb->search_albumart_files
35#endif
36
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
40 */
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
48
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
54
55#endif
56