summaryrefslogtreecommitdiff
path: root/apps/buffering.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-10-16 19:14:41 +0000
committerThomas Martitz <kugel@rockbox.org>2009-10-16 19:14:41 +0000
commite9c10189e93fe53cff74ae8fa15d19b1c522d5e4 (patch)
treee3c39a41ff160194dfd9ce617893e0367a6fdcc8 /apps/buffering.h
parenta72ffe7bb533302dbf4e6c7c4f1e4bd4078d3ed6 (diff)
downloadrockbox-e9c10189e93fe53cff74ae8fa15d19b1c522d5e4.tar.gz
rockbox-e9c10189e93fe53cff74ae8fa15d19b1c522d5e4.zip
Rework albumart buffering internally to allow for mutliple albumart sizes.
Playback now has a few albumart slots. Anything (most importantly: skins) can obtain such a slot. The slot has fields for the size which is passed to bufopen then to image_load to buffer the albumart with the proper size. Currently there's 1 slot. We can increase it for remotes if we want. Custom statusbar will increase it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23209 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/buffering.h')
-rw-r--r--apps/buffering.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/buffering.h b/apps/buffering.h
index d0e2dd797f..6e17b65d8c 100644
--- a/apps/buffering.h
+++ b/apps/buffering.h
@@ -74,7 +74,8 @@ bool buffering_reset(char *buf, size_t buflen);
74 74
75#define BUF_MAX_HANDLES 256 75#define BUF_MAX_HANDLES 256
76 76
77int bufopen(const char *file, size_t offset, enum data_type type); 77int bufopen(const char *file, size_t offset, enum data_type type,
78 void *user_data);
78int bufalloc(const void *src, size_t size, enum data_type type); 79int bufalloc(const void *src, size_t size, enum data_type type);
79bool bufclose(int handle_id); 80bool bufclose(int handle_id);
80int bufseek(int handle_id, size_t newpos); 81int bufseek(int handle_id, size_t newpos);