Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re[2]: ID3 database browsing

Re[2]: ID3 database browsing

From: Eric Linenberg <elinenbe_at_umich.edu>
Date: Wed, 13 Oct 2004 09:23:54 -0400

The apple ipod database format is very well documented. Why not use
that? Then people who use itunes can also benefit from this...

-eric

DH> Just realised the logical way of representing the crossreferencing indices
DH> correctly would actually be:

DH> index.db
DH> "SONGS", count, songs-offset
DH> "ALBUMS", count, albums-offset
DH> "ARTISTS", count, artists-offset
DH> ...
>>songs-offset:
DH> ""
DH> "song title",filename
DH> "song title",filename
DH> ... (alphabetically sorted by song title)
>>albums-offset:
DH> "SONGS",
DH> "album name", song-index 1, song-index2, ...
DH> "album name", song-index 1, song-index 2, ...
DH> ... (alphabetically sorted by album name)
>>artists-offset:
DH> "ALBUMS","SONGS"
DH> "artist name", album-count, album-index 1, album-index 2, ... song-index1,
DH> song-index2, ...
DH> "artist name", album-count, album-index 1, album-index 2, ... song-index1,
DH> song-index2, ...

DH> i.e. each section in the db file starts with a list of all the
DH> cross-reference index entries. If the list is empty, then each entry
DH> contains the filename. Otherwise, each entry contains an index into the
DH> corresponding named tags section. If there's more than one entry in the
DH> list of cross-referenced indices (i.e. "ALBUMS", "SONGS") then each entry
DH> contains the count of cross-references for all but the last index (i.e.
DH> artist name is followed by the count of album-index offsets, followed by the
DH> album-index offsets themselves, followed by the song-index offsets until the
DH> end of the line)

DH> d

DH> _______________________________________________
DH> http://cool.haxx.se/mailman/listinfo/rockbox


_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on 2004-10-13

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy