Bump version numbers for 3.13
[maemo-rb.git] / apps / recorder / albumart.h
blob80cacaf5f05ff435e1bdf6cff3f38b44b02f30c0
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2007 Nicolas Pennequin
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.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef _ALBUMART_H_
23 #define _ALBUMART_H_
25 #if defined(HAVE_ALBUMART) || defined(PLUGIN)
27 #include <stdbool.h>
28 #include "metadata.h"
29 #include "skin_engine/skin_engine.h"
31 /* Look for albumart bitmap in the same dir as the track and in its parent dir.
32 * Calls size_func to get the dimensions to look for
33 * Stores the found filename in the buf parameter.
34 * Returns true if a bitmap was found, false otherwise */
35 bool find_albumart(const struct mp3entry *id3, char *buf, int buflen,
36 const struct dim *dim);
38 #ifndef PLUGIN
39 /* Draw the album art bitmap from the given handle ID onto the given Skin.
40 Call with clear = true to clear the bitmap instead of drawing it. */
41 void draw_album_art(struct gui_wps *gwps, int handle_id, bool clear);
42 #endif
44 bool search_albumart_files(const struct mp3entry *id3, const char *size_string,
45 char *buf, int buflen);
47 void get_albumart_size(struct bitmap *bmp);
49 #endif /* HAVE_ALBUMART */
51 #endif /* _ALBUMART_H_ */