From 8c996cfffe22430300a23d36f6e266ac5603b41e Mon Sep 17 00:00:00 2001 From: alle Date: Thu, 28 May 2009 20:05:31 +0000 Subject: [PATCH] Describe the magic of search_albumart_files (still not complete) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21120 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/albumart.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c index d0026b638..e33fcb8d0 100644 --- a/apps/recorder/albumart.c +++ b/apps/recorder/albumart.c @@ -120,16 +120,20 @@ static bool try_exts(char *path, int len) #endif /* Look for the first matching album art bitmap in the following list: - * ./.bmp - * ./.bmp + * ./.{jpeg,jpg,bmp} + * ./.{jpeg,jpg,bmp} * ./cover.bmp - * ../.bmp - * ../cover.bmp - * ROCKBOX_DIR/albumart/-.bmp + * ../.{jpeg,jpg,bmp} + * ../cover.{jpeg,jpg,bmp} + * ROCKBOX_DIR/albumart/-.{jpeg,jpg,bmp} * is the value of the size_string parameter, and * are read from the ID3 metadata. * If a matching bitmap is found, its filename is stored in buf. * Return value is true if a bitmap was found, false otherwise. + * + * If the first symbol in size_string is a colon (e.g. ":100x100") + * then the colon is skipped ("100x100" will be used) and the track + * specific image (./.bmp) is not tried. */ bool search_albumart_files(const struct mp3entry *id3, const char *size_string, char *buf, int buflen) -- 2.11.4.GIT