diff options
author | Alexander Levin <al.le@rockbox.org> | 2009-05-28 20:05:31 +0000 |
---|---|---|
committer | Alexander Levin <al.le@rockbox.org> | 2009-05-28 20:05:31 +0000 |
commit | a484054d5534c764f5512ccfdb53b518465f4ce3 (patch) | |
tree | f5c61ac8337e25a79cca54fb8aba6155ad4cedcd /apps | |
parent | 96165abec2da60c466659fa0e68e06d97587d51a (diff) | |
download | rockbox-a484054d5534c764f5512ccfdb53b518465f4ce3.tar.gz rockbox-a484054d5534c764f5512ccfdb53b518465f4ce3.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/recorder/albumart.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c index d0026b638c..e33fcb8d08 100644 --- a/apps/recorder/albumart.c +++ b/apps/recorder/albumart.c | |||
@@ -120,16 +120,20 @@ static bool try_exts(char *path, int len) | |||
120 | #endif | 120 | #endif |
121 | 121 | ||
122 | /* Look for the first matching album art bitmap in the following list: | 122 | /* Look for the first matching album art bitmap in the following list: |
123 | * ./<trackname><size>.bmp | 123 | * ./<trackname><size>.{jpeg,jpg,bmp} |
124 | * ./<albumname><size>.bmp | 124 | * ./<albumname><size>.{jpeg,jpg,bmp} |
125 | * ./cover<size>.bmp | 125 | * ./cover<size>.bmp |
126 | * ../<albumname><size>.bmp | 126 | * ../<albumname><size>.{jpeg,jpg,bmp} |
127 | * ../cover<size>.bmp | 127 | * ../cover<size>.{jpeg,jpg,bmp} |
128 | * ROCKBOX_DIR/albumart/<artist>-<albumname><size>.bmp | 128 | * ROCKBOX_DIR/albumart/<artist>-<albumname><size>.{jpeg,jpg,bmp} |
129 | * <size> is the value of the size_string parameter, <trackname> and | 129 | * <size> is the value of the size_string parameter, <trackname> and |
130 | * <albumname> are read from the ID3 metadata. | 130 | * <albumname> are read from the ID3 metadata. |
131 | * If a matching bitmap is found, its filename is stored in buf. | 131 | * If a matching bitmap is found, its filename is stored in buf. |
132 | * Return value is true if a bitmap was found, false otherwise. | 132 | * Return value is true if a bitmap was found, false otherwise. |
133 | * | ||
134 | * If the first symbol in size_string is a colon (e.g. ":100x100") | ||
135 | * then the colon is skipped ("100x100" will be used) and the track | ||
136 | * specific image (./<trackname><size>.bmp) is not tried. | ||
133 | */ | 137 | */ |
134 | bool search_albumart_files(const struct mp3entry *id3, const char *size_string, | 138 | bool search_albumart_files(const struct mp3entry *id3, const char *size_string, |
135 | char *buf, int buflen) | 139 | char *buf, int buflen) |