summaryrefslogtreecommitdiff
path: root/apps/plugins/pictureflow.c
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-05-04 15:46:41 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-05-04 15:46:41 +0000
commit20f76d61ae58bd47b647d79e40beebbbe747e480 (patch)
treed37569a127b02fdd051c6a3da77c70ac2d72e8ab /apps/plugins/pictureflow.c
parentdfb24d6ceee703361b8120d689d8d77cfc15830d (diff)
downloadrockbox-20f76d61ae58bd47b647d79e40beebbbe747e480.zip
rockbox-20f76d61ae58bd47b647d79e40beebbbe747e480.tar.gz
rockbox-20f76d61ae58bd47b647d79e40beebbbe747e480.tar.bz2
rockbox-20f76d61ae58bd47b647d79e40beebbbe747e480.tar.xz
Make JPEG and BMP scaler optional with HAVE_JPEG and HAVE_BMP_SCALING, both defined for all targets that have HAVE_ALBUMART. Disable JPEG in PictureFlow and pluginlib album art search with 32KiB plugin buffer until PictureFlow
gets overlay support. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20851 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pictureflow.c')
-rw-r--r--apps/plugins/pictureflow.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/pictureflow.c b/apps/plugins/pictureflow.c
index f093182..b78b953 100644
--- a/apps/plugins/pictureflow.c
+++ b/apps/plugins/pictureflow.c
@@ -927,8 +927,13 @@ bool create_albumart_cache(void)
input_bmp.data = buf;
input_bmp.width = DISPLAY_WIDTH;
input_bmp.height = DISPLAY_HEIGHT;
+#if PLUGIN_BUFFER_SIZE > 0x10000
ret = read_image_file(albumart_file, &input_bmp,
buf_size, format, &format_transposed);
+#else
+ ret = scaled_read_bmp_file(albumart_file, &input_bmp,
+ buf_size, format, &format_transposed);
+#endif
if (ret <= 0) {
rb->splash(HZ, "Could not read bmp");
continue; /* skip missing/broken files */