diff options
Diffstat (limited to 'apps/recorder/albumart.h')
-rw-r--r-- | apps/recorder/albumart.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/apps/recorder/albumart.h b/apps/recorder/albumart.h new file mode 100644 index 0000000000..21ae50edb9 --- /dev/null +++ b/apps/recorder/albumart.h | |||
@@ -0,0 +1,39 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2007 Nicolas Pennequin | ||
11 | * | ||
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. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #ifndef _ALBUMART_H_ | ||
21 | #define _ALBUMART_H_ | ||
22 | |||
23 | #ifdef HAVE_ALBUMART | ||
24 | |||
25 | #include <stdbool.h> | ||
26 | #include "id3.h" | ||
27 | #include "gwps.h" | ||
28 | |||
29 | /* Look for albumart bitmap in the same dir as the track and in its parent dir. | ||
30 | * Stores the found filename in the buf parameter. | ||
31 | * Returns true if a bitmap was found, false otherwise */ | ||
32 | bool find_albumart(const struct mp3entry *id3, char *buf, int buflen); | ||
33 | |||
34 | /* Draw the album art bitmap from the given handle ID onto the given WPS. */ | ||
35 | void draw_album_art(struct gui_wps *gwps, int handle_id); | ||
36 | |||
37 | #endif /* HAVE_ALBUMART */ | ||
38 | |||
39 | #endif /* _ALBUMART_H_ */ | ||