summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 2008-08-09 Paul Richardson <phantom_sf at users.sourceforge.net>phantom_sf2008-08-093-0/+4
| | | | | | | | | | | | | | * Added eclipse project related files to svn:ignore * src/db-artwork-parser.c src/itdb.h src/itdb_photoalbum.c: Added to Itdb_PhotoAlbum, a reference to its parent Photo DB. When albums are constructed upon loading of the Photo DB, the reference is added as part of initialisation. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2096 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Remove uses of deprecated itdb_time_* functionstmzullinger2008-08-091-7/+4
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2095 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2008-08-03 Jorg Schuler <jcsjcs at users.sourceforge.net>jcsjcs2008-08-031-15/+3
| | | | | | | | | | | * src/ithumb-writer (ithumb_writer_handle_pixbuf_transform): handle rotation correctly: don't interchange width and height for the thumbnail on the iPod. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2083 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix typo in itdb_track_get_thumbnail() doc commenttmzullinger2008-08-021-1/+1
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2077 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Move ITDB_DEVICE_ERROR from itdb_plist.h to itdb_device.hteuf2008-08-013-6/+8
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2074 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Rename unk146 to explicit_flag in Itdb_Track now that it's purpose is knownTodd Zullinger2008-07-302-4/+5
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2073 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix a few issues in the API doc after the API changes that went onChristophe Fergeau2008-07-291-4/+2
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2072 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* itdb_thumb_to_pixbufs API docChristophe Fergeau2008-07-291-0/+17
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2071 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Some public API work, hide ItdbThumbType as well as ItdbThumbIpodChristophe Fergeau2008-07-293-20/+41
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2070 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Mask symbols from the SysInfoExtended parserChristophe Fergeau2008-07-291-3/+8
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2069 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add gtk-doc documentationChristophe Fergeau2008-07-292-0/+104
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2068 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Use GError in SysInfoExtended parsingChristophe Fergeau2008-07-293-4/+7
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2067 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add error handling to the plist XML parserChristophe Fergeau2008-07-294-33/+86
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2066 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/ithumb-writer.c (pack_RGB_565), (pack_RGB_555)Jorg Schuler2008-07-202-3/+9
| | | | | | | | | | | (pack_RGB_888): handle horizontal padding correctly (affected pictures in portrait format). * src/itdb_device.c: added some comments. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2060 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c (itdb_device_set_timezone_info): avoid g_statJorg Schuler2008-07-191-0/+5
| | | | | | | | on NULL filename. Thanks to Andrea. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2055 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: assume the following generations do notJorg Schuler2008-07-191-3/+3
| | | | | | | | | | | | support sparse artwork: ITDB_IPOD_GENERATION_NANO_1: ITDB_IPOD_GENERATION_NANO_2: ITDB_IPOD_GENERATION_VIDEO_1: ITDB_IPOD_GENERATION_VIDEO_2: git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2054 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Remove references to itdb_thumb_get_gdk_pixbuf()Todd Zullinger2008-07-171-9/+6
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2050 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Don't try to write ArtworkDB/PhotoDB when we fail to write ithmb filesChristophe Fergeau2008-07-101-2/+10
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2047 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix up information from podsleuthChristophe Fergeau2008-07-061-6/+6
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2044 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add a way to get an Itdb_ModelInfo from a serial numberChristophe Fergeau2008-07-061-18/+228
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2043 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add missing 2GB ipod shuffle models and ipod shuffle redChristophe Fergeau2008-07-062-0/+7
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2042 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Pick itdb_device_get_storage_info from songbirdChristophe Fergeau2008-07-063-10/+61
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2041 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Use GMappedFile instead of directly using mmapChristophe Fergeau2008-07-063-45/+31
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2040 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Remove inner functions to make MSVC8 compat easierChristophe Fergeau2008-07-062-23/+20
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2039 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Remove non-useful argument to db_parse_context_destroy (patch from songbird)Christophe Fergeau2008-07-063-6/+6
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2038 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix bug in thumbnail resizing when not cropping which caused duplicated ↵Christophe Fergeau2008-07-061-20/+21
| | | | | | lines at the bottom of thumbnails git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2036 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix memleakChristophe Fergeau2008-07-051-0/+1
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2035 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix bug in thumbnail rearranging codeChristophe Fergeau2008-07-051-2/+2
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2034 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Properly set padding to 0 in mhod type 3Christophe Fergeau2008-07-051-0/+2
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2033 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix a memory leakChristophe Fergeau2008-07-051-0/+1
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2032 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* fix typos: s/ipod/iPod/ s/availale/available/ s/of non-existent/if non-existent/Daniele Forsi2008-06-294-10/+10
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2026 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/ithumb-writer.c (itdb_write_ithumb_files): fix bug whenJorg Schuler2008-06-292-66/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | writing photos (loop variable "it" re-used inside loop). Rename loop variable to "itw" also in case of writing artwork. * src/itdb_thumb.c (itdb_thumb_to_pixbuf_at_size): If requesting a thumb from the iPod smaller than available, none would be returned. Fixed. Thumbs from the iPod would not be scaled even if requested. Fixed. If requesting a thumb from a file or existing pixbuf, scaling was done even if none was requested (width/height = 0/-1). Fixed. Introduced selection of smallest available thumbnail (width/height = 0) besides largest available thumbnail (width/height = -1). TODO: consider aspect ratio of requested picture (currently it is very likely that some of the square thumbs are returned...) src/itdb_artwork.c (itdb_artwork_get_thumbnail): Introduced selection of smallest available thumbnail (width/height = 0) besides largest available thumbnail (width/height = -1). (Only necessary documentation.) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2025 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/ithumb-writer.c (itdb_write_ithumb_files): fix bug whenJorg Schuler2008-06-291-5/+6
| | | | | | | | | writing photos (loop variable "it" re-used inside loop). Rename loop variable to "itw" also in case of writing artwork. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2023 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* patch by: Mike Heffner <mikeh@fesnel.com>Christophe Fergeau2008-06-282-0/+5
| | | | | | | | | * src/Makefile.am: * src/db-artwork-writer.c: fix compilation with older glib (without GChecksum) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2021 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: rework timezone handling: handle timezones asChristophe Fergeau2008-06-241-32/+131
| | | | | | | | | | stored on 5g ipods (hopefully) and fallback to using the computer timezone if we can't figure out the ipod timezone * tests/get-timezone.c: use functions from libgpod to get the timezone instead of duplicating some itdb_device code git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2018 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: oops, forgot a ','Christophe Fergeau2008-06-141-1/+1
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2017 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix some ipod_model_table entriesChristophe Fergeau2008-06-141-3/+11
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2016 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Remove buggy function to test if an ipod supports videoChristophe Fergeau2008-06-141-19/+1
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2015 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.h:Christophe Fergeau2008-06-093-96/+235
| | | | | | | | | * src/itdb_sysinfo_extended_parser.c: * src/ithumb-writer.c: use background color and alignement information from SysInfoExtended if available git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2014 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-writer.c:Christophe Fergeau2008-06-095-11/+57
| | | | | | | | | | | | | * src/itdb_device.c: * src/itdb_device.h: * src/itdb_sysinfo_extended_parser.c: * src/itdb_sysinfo_extended_parser.h: implements itdb_device_supports_sparse_artwork (instead of the old stub always returning TRUE). Use data from SysInfoExtended if it's available, use hardcoded table from libgpod if not. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2012 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c:Christophe Fergeau2008-06-094-100/+199
| | | | | | | | | | | * src/itdb_device.h: * src/itdb_sysinfo_extended_parser.c: * src/itdb_sysinfo_extended_parser.h: merge Itdb_ArtworkFormat and SysInfoImageFormat, use artwork formats from SysInfoExtended when it's available instead of using the hardcoded tables from libgpod git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2011 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-writer.c:Christophe Fergeau2008-06-096-142/+68
| | | | | | | | | | | | | * src/db-image-parser.h: * src/itdb.h: * src/itdb_device.c: * src/itdb_device.h: * src/ithumb-writer.c: get rid of ItdbThumbType, it's replaced by pointers to the appropriate Itdb_ArtworkFormat for the thumbnail type when it's needed git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2010 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-parser.c: remove duplicated artwork/photo supportChristophe Fergeau2008-06-0910-213/+248
| | | | | | | | | | | | | | | | | | | | | | | testing functions * src/db-artwork-parser.h: ditto * src/itdb_itunesdb.c: s/ipod_supports_XXX/itdb_device_supports_XXX * src/itdb_photoalbum.c: ditto * src/itdb.h: use a const Itdb_Device argument for itdb_device_supports_*, add ITDB_IPOD_GENERATION_IPHONE_1 to Itdb_IpodGeneration, get rid of ITDB_IPOD_GENERATION_FIFTH and ITDB_IPOD_GENERATION_SIXTH * src/itdb_device.c: split functions to get artwork format from the ipod in 2 separate functions: instead of itdb_device_get_artwork_formats we now have itdb_device_get_photo_formats and itdb_device_get_cover_art_formats * src/itdb_device.h: * src/db-image-parser.c: use the separate get_cover_art_formats/get_photos_formats functions * src/db-artwork-writer.c: ditto * src/ithumb-writer.c: ditto git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2009 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/gchecksum.c: fix compilation (it's only compiled on system withChristophe Fergeau2008-06-091-7/+1
| | | | | | | older glib versions) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2008 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-writer.c:Christophe Fergeau2008-06-094-7/+24
| | | | | | | | | * src/itdb_artwork.c: * src/itdb_thumb.c: * src/itdb_thumb.h: fix compilation when gdk-pixbuf isn't present git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2007 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_track.c (itdb_track_remove_thumbnails): set mhii_linkJorg Schuler2008-06-052-0/+5
| | | | | | | | | | | to 0. * src/db-artwork-parser.c (mhfd_associate_itunesdb_artwork): remove thumbnails if mhii_link is invalid. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2006 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/gchecksum.cJorg Schuler2008-06-026-21/+1738
| | | | | | | | | | | | | | | | | | | | | | | | src/gchecksum.h src/Makefile.am configure.ac: copied gchecksum from glib 2.16.3. It's used if we compile on a system that does not have glib 2.16 or higher. Testing is needed whether it's really pulled in in those cases -- I'm using 2.16.3 myself. * src/itdb_itunesdb.c (mk_mhit): write mhii_link. * src/db-artwork-writer.c: code to handle sparse artwork correctly. (ipod_supports_sparse_artwork): currently hard-coded to TRUE. Will be changed in the future to reflect the information given in the SysInfoExtended. Change yourself if your iPod does not support Sparse Artwork (sharing of thumbnails between several tracks). git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2005 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_thumb.cJorg Schuler2008-06-011-7/+3
| | | | | | | | | | remove some unnecessary checks for NULL pointer (itdb_thumb_duplicate): move g_list_reverse() outside the loop modifying the list. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2004 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_thumb.cJorg Schuler2008-05-304-8/+11
| | | | | | | | | | src/itdb_thumb.h src/ithumb-writer.c src/itdb_photoalbum.c: fixed a number of compile-time warnings. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1994 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* forgot to add these new filesChristophe Fergeau2008-05-302-0/+576
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1993 f01d2545-417e-4e96-918e-98f8d0dbbcb6