diff options
author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-05-07 01:23:13 +0000 |
---|---|---|
committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-05-07 01:23:13 +0000 |
commit | 5621fd393a4445645b07bb2e89d89d23bb9a6473 (patch) | |
tree | b2b46a056ea1ae599e0a99118ddacdf72a6dac4a /apps/recorder | |
parent | 580b1a5c4b305c7cb320415267c5e1b88b053948 (diff) | |
download | rockbox-5621fd393a4445645b07bb2e89d89d23bb9a6473.tar.gz rockbox-5621fd393a4445645b07bb2e89d89d23bb9a6473.zip |
Build pictureflow using overlay on lowmem targets, support JPEG AA in PF on all targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20864 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/albumart.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c index da85f99bbc..24b01f9c52 100644 --- a/apps/recorder/albumart.c +++ b/apps/recorder/albumart.c | |||
@@ -91,7 +91,7 @@ static void fix_path_part(char* path, int offset, int count) | |||
91 | } | 91 | } |
92 | } | 92 | } |
93 | 93 | ||
94 | #if defined(HAVE_JPEG) || (defined(PLUGIN) && PLUGIN_BUFFER_SIZE > 0x10000) | 94 | #if defined(HAVE_JPEG) || defined(PLUGIN) |
95 | const char * extensions[] = { "jpeg", "jpg", "bmp" }; | 95 | const char * extensions[] = { "jpeg", "jpg", "bmp" }; |
96 | int extension_lens[] = { 4, 3, 3 }; | 96 | int extension_lens[] = { 4, 3, 3 }; |
97 | /* Try checking for several file extensions, return true if a file is found and | 97 | /* Try checking for several file extensions, return true if a file is found and |
@@ -134,7 +134,7 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string, | |||
134 | const char *artist; | 134 | const char *artist; |
135 | int dirlen; | 135 | int dirlen; |
136 | int albumlen; | 136 | int albumlen; |
137 | #if defined(HAVE_JPEG) || (defined(PLUGIN) && PLUGIN_BUFFER_SIZE > 0x10000) | 137 | #if defined(HAVE_JPEG) || defined(PLUGIN) |
138 | int pathlen; | 138 | int pathlen; |
139 | #endif | 139 | #endif |
140 | 140 | ||
@@ -153,7 +153,7 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string, | |||
153 | /* the first file we look for is one specific to the track playing */ | 153 | /* the first file we look for is one specific to the track playing */ |
154 | strip_extension(path, sizeof(path) - strlen(size_string) - 4, trackname); | 154 | strip_extension(path, sizeof(path) - strlen(size_string) - 4, trackname); |
155 | strcat(path, size_string); | 155 | strcat(path, size_string); |
156 | #if defined(HAVE_JPEG) || (defined(PLUGIN) && PLUGIN_BUFFER_SIZE > 0x10000) | 156 | #if defined(HAVE_JPEG) || defined(PLUGIN) |
157 | strcat(path, "."); | 157 | strcat(path, "."); |
158 | pathlen = strlen(path); | 158 | pathlen = strlen(path); |
159 | found = try_exts(path, pathlen); | 159 | found = try_exts(path, pathlen); |
@@ -165,7 +165,7 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string, | |||
165 | { | 165 | { |
166 | /* if it doesn't exist, | 166 | /* if it doesn't exist, |
167 | * we look for a file specific to the track's album name */ | 167 | * we look for a file specific to the track's album name */ |
168 | #if defined(HAVE_JPEG) || (defined(PLUGIN) && PLUGIN_BUFFER_SIZE > 0x10000) | 168 | #if defined(HAVE_JPEG) || defined(PLUGIN) |
169 | pathlen = snprintf(path, sizeof(path), | 169 | pathlen = snprintf(path, sizeof(path), |
170 | "%s%s%s.", dir, id3->album, size_string); | 170 | "%s%s%s.", dir, id3->album, size_string); |
171 | fix_path_part(path, dirlen, albumlen); | 171 | fix_path_part(path, dirlen, albumlen); |
@@ -181,7 +181,7 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string, | |||
181 | if (!found) | 181 | if (!found) |
182 | { | 182 | { |
183 | /* if it still doesn't exist, we look for a generic file */ | 183 | /* if it still doesn't exist, we look for a generic file */ |
184 | #if defined(HAVE_JPEG) || (defined(PLUGIN) && PLUGIN_BUFFER_SIZE > 0x10000) | 184 | #if defined(HAVE_JPEG) || defined(PLUGIN) |
185 | pathlen = snprintf(path, sizeof(path), | 185 | pathlen = snprintf(path, sizeof(path), |
186 | "%scover%s.", dir, size_string); | 186 | "%scover%s.", dir, size_string); |
187 | found = try_exts(path, pathlen); | 187 | found = try_exts(path, pathlen); |
@@ -192,7 +192,7 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string, | |||
192 | #endif | 192 | #endif |
193 | } | 193 | } |
194 | 194 | ||
195 | #if defined(HAVE_JPEG) || (defined(PLUGIN) && PLUGIN_BUFFER_SIZE > 0x10000) | 195 | #if defined(HAVE_JPEG) || defined(PLUGIN) |
196 | if (!found) | 196 | if (!found) |
197 | { | 197 | { |
198 | snprintf (path, sizeof(path), "%sfolder.jpg", dir); | 198 | snprintf (path, sizeof(path), "%sfolder.jpg", dir); |
@@ -205,7 +205,7 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string, | |||
205 | if (!found && artist && id3->album) | 205 | if (!found && artist && id3->album) |
206 | { | 206 | { |
207 | /* look in the albumart subdir of .rockbox */ | 207 | /* look in the albumart subdir of .rockbox */ |
208 | #if defined(HAVE_JPEG) || (defined(PLUGIN) && PLUGIN_BUFFER_SIZE > 0x10000) | 208 | #if defined(HAVE_JPEG) || defined(PLUGIN) |
209 | pathlen = snprintf(path, sizeof(path), | 209 | pathlen = snprintf(path, sizeof(path), |
210 | ROCKBOX_DIR "/albumart/%s-%s%s.", | 210 | ROCKBOX_DIR "/albumart/%s-%s%s.", |
211 | artist, | 211 | artist, |
@@ -241,7 +241,7 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string, | |||
241 | { | 241 | { |
242 | /* we look in the parent directory | 242 | /* we look in the parent directory |
243 | * for a file specific to the track's album name */ | 243 | * for a file specific to the track's album name */ |
244 | #if defined(HAVE_JPEG) || (defined(PLUGIN) && PLUGIN_BUFFER_SIZE > 0x10000) | 244 | #if defined(HAVE_JPEG) || defined(PLUGIN) |
245 | pathlen = snprintf(path, sizeof(path), | 245 | pathlen = snprintf(path, sizeof(path), |
246 | "%s%s%s.", dir, id3->album, size_string); | 246 | "%s%s%s.", dir, id3->album, size_string); |
247 | fix_path_part(path, dirlen, albumlen); | 247 | fix_path_part(path, dirlen, albumlen); |
@@ -258,7 +258,7 @@ bool search_albumart_files(const struct mp3entry *id3, const char *size_string, | |||
258 | { | 258 | { |
259 | /* if it still doesn't exist, we look in the parent directory | 259 | /* if it still doesn't exist, we look in the parent directory |
260 | * for a generic file */ | 260 | * for a generic file */ |
261 | #if defined(HAVE_JPEG) || (defined(PLUGIN) && PLUGIN_BUFFER_SIZE > 0x10000) | 261 | #if defined(HAVE_JPEG) || defined(PLUGIN) |
262 | pathlen = snprintf(path, sizeof(path), | 262 | pathlen = snprintf(path, sizeof(path), |
263 | "%scover%s.", dir, size_string); | 263 | "%scover%s.", dir, size_string); |
264 | found = try_exts(path, pathlen); | 264 | found = try_exts(path, pathlen); |