2007-11-11 12:29:37 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007 Nicolas Pennequin
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2007-11-11 12:29:37 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _ALBUMART_H_
|
|
|
|
#define _ALBUMART_H_
|
|
|
|
|
|
|
|
#ifdef HAVE_ALBUMART
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "id3.h"
|
|
|
|
#include "gwps.h"
|
|
|
|
|
|
|
|
/* Look for albumart bitmap in the same dir as the track and in its parent dir.
|
|
|
|
* Stores the found filename in the buf parameter.
|
|
|
|
* Returns true if a bitmap was found, false otherwise */
|
|
|
|
bool find_albumart(const struct mp3entry *id3, char *buf, int buflen);
|
|
|
|
|
2007-11-12 01:31:42 +00:00
|
|
|
/* Draw the album art bitmap from the given handle ID onto the given WPS.
|
|
|
|
Call with clear = true to clear the bitmap instead of drawing it. */
|
|
|
|
void draw_album_art(struct gui_wps *gwps, int handle_id, bool clear);
|
2007-11-11 12:29:37 +00:00
|
|
|
|
2007-12-09 18:48:02 +00:00
|
|
|
bool search_albumart_files(const struct mp3entry *id3, const char *size_string,
|
|
|
|
char *buf, int buflen);
|
|
|
|
|
2007-11-11 12:29:37 +00:00
|
|
|
#endif /* HAVE_ALBUMART */
|
|
|
|
|
|
|
|
#endif /* _ALBUMART_H_ */
|