forked from len0rd/rockbox
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
This commit is contained in:
parent
a72ffe7bb5
commit
e9c10189e9
13 changed files with 199 additions and 104 deletions
|
|
@ -29,9 +29,11 @@
|
|||
#include "skin_engine/skin_engine.h"
|
||||
|
||||
/* Look for albumart bitmap in the same dir as the track and in its parent dir.
|
||||
* Calls size_func to get the dimensions to look for
|
||||
* Stores the found filename in the buf parameter.
|
||||
* Returns true if a bitmap was found, false otherwise */
|
||||
bool find_albumart(const struct mp3entry *id3, char *buf, int buflen);
|
||||
bool find_albumart(const struct mp3entry *id3, char *buf, int buflen,
|
||||
struct dim *dim);
|
||||
|
||||
/* Draw the album art bitmap from the given handle ID onto the given WPS.
|
||||
Call with clear = true to clear the bitmap instead of drawing it. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue