From 90ce8269033dd1f06a5054392f35e45e45a5c560 Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Sun, 9 Dec 2007 18:48:02 +0000 Subject: Initial commit of the PictureFlow plugin, a nice visualization for album covers. Original code by Ariya Hidayat. Rockbox port by Jonas Hurrelmann and a few tweaks by me. On the first startup the database is scanned and album art is searched for each album. This process will take some time (dircache enabled and/or database in RAM speed it up, and it is possible to abort by pressing MENU), but the results are cached and the next startups will be very quick. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15900 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/albumart.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/recorder/albumart.c') diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c index 6aaf3885d7..6761cfc67a 100644 --- a/apps/recorder/albumart.c +++ b/apps/recorder/albumart.c @@ -125,8 +125,8 @@ static void fix_path_part(char* path, int offset, int count) * If a matching bitmap is found, its filename is stored in buf. * Return value is true if a bitmap was found, false otherwise. */ -static bool search_files(const struct mp3entry *id3, const char *size_string, - char *buf, int buflen) +bool search_albumart_files(const struct mp3entry *id3, const char *size_string, + char *buf, int buflen) { char path[MAX_PATH + 1]; char dir[MAX_PATH + 1]; @@ -228,12 +228,12 @@ bool find_albumart(const struct mp3entry *id3, char *buf, int buflen) data->albumart_max_width, data->albumart_max_height); /* First we look for a bitmap of the right size */ - if (search_files(id3, size_string, buf, buflen)) + if (search_albumart_files(id3, size_string, buf, buflen)) return true; /* Then we look for generic bitmaps */ *size_string = 0; - return search_files(id3, size_string, buf, buflen); + return search_albumart_files(id3, size_string, buf, buflen); } /* Draw the album art bitmap from the given handle ID onto the given WPS. -- cgit v1.2.3