summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * src/itdb_photoalbum.c: fix bug in itdb_photodb_photoalbum_remove,Christophe Fergeau2007-11-132-1/+18
| | | | | | | | | when removing all the photos from the photodatabase, we were erasing elements and iterating over the list at the same time, which resulted in the function not working properly git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1778 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Mark release 0.6.0 in the ChangeLogChristophe Fergeau2007-11-101-0/+2
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1773 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: use the same photo thumbnail definitions forJorg Schuler2007-11-102-12/+7
| | | | | | | | | the iPhone as well as the iPod Touch until further input is received. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1772 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * Makefile.am: add README.SysInfo to EXTRADISTChristophe Fergeau2007-11-102-0/+5
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1771 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * NEWS: update for 0.6.0 releaseChristophe Fergeau2007-11-103-4/+72
| | | | | | | * README.SysInfo: explain how to get the firewire id from an iPod Touch git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1770 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: added photo thumbnail definitions for iPodJorg Schuler2007-11-102-1/+19
| | | | | | | | | Touch. I'm not sure how reasonable the "PHOTO_LARGE, _FULL_SCREEN, _TV_SCREEN" classification is, however... git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1769 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-parser.c (parse_mhba): fix double g_free on mhbaJorg Schuler2007-11-102-16/+37
| | | | | | | | | | chunks with multiple mhods. Currently only mhods of type 1 are handled, the rest (type 2: image transition style) are being discarded. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1768 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-parse-context.c (db_parse_context_get_m_header_internal):Jorg Schuler2007-11-092-0/+7
| | | | | | | | fixed memory leak. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1767 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: (itdb_device_requires_checksum): the iPod TouchChristophe Fergeau2007-11-082-1/+6
| | | | | | | needs a firewire id as well git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1764 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * tools/hal-callout.c: (mount_ipod): use g_get_tmp_dir instead ofChristophe Fergeau2007-11-082-2/+6
| | | | | | | hardcoding /tmp git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1763 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * tools/hal-callout.c (mount_ipod): fix bug that preventedJorg Schuler2007-11-073-2/+44
| | | | | | | | | | | | | creation of the SysInfoExtended file if it hadn't already existed. Add copyright header. * tools/ipod-scsi-inquiry.c: added project name to the copyright header. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1762 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * configure.ac: raise version number and soname in preparation for aChristophe Fergeau2007-11-062-4/+9
| | | | | | | 0.6.0 release git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1761 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * configure.ac:Christophe Fergeau2007-11-067-75/+291
| | | | | | | | | | | | | * tools/20-libgpod-sysinfo-extended.fdi: * tools/Makefile.am: * tools/hal-callout.c: * tools/ipod-scsi-inquiry.c: * tools/read-sysinfoextended-sgutils.c: add hal callout which automatically write SysinfoExtended to iPods when they are plugged if it's properly installed git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1760 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * itdb_itunesdb.c (itdb_create_directories): Add support forJorg Schuler2007-11-062-0/+10
| | | | | | | | iPod Touch (wrong directories were created). git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1759 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * itdb_itunesdb.c (itdb_create_directories): Add support forJorg Schuler2007-11-042-0/+9
| | | | | | | | | iPhones (wrong directories were created). Thanks to Jesse Bouwman for the patch. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1754 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Added support for video output of photos for iPod Nano Videos andJorg Schuler2007-11-047-90/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | iPod Classics. * src/ithumb-writer.c (pack_I420): added packer for iPod Nano Video and iPod Classic TV output photo format. (itdb_write_ithumb_files): make sure only valid thumbnail types are written. * src/db-image-parser.h: added declaration for itdb_thumb_type_is_valid_for_db() * src/itdb_photoalbum.c (itdb_photodb_add_photo_internal): make sure only photo thumbnails are added. * src/db-artwork-writer.c (write_mhii): correctly skip unneeded thumbnails (thumbnails not relevant for the current iPod type). (should_write): renamed to itdb_thumb_type_is_valid_for_db() src/itdb.h src/itdb_artwork.c: minor formatting. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1753 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Additional clean-ups after the glib requirement bumping pointed out byChristophe Fergeau2007-10-3010-70/+21
| | | | | | | | | | | | | | | | | tmz on IRC * libgpod-1.0.pc.in: bump glib requirement there as well * src/Makefile.am: * src/db-parse-context.c: * src/glib-compat.h: * src/itdb_artwork.c: * src/itdb_itunesdb.c: * src/itdb_photoalbum.c: * src/itdb_private.h: * src/ithumb-writer.c: get rid of glib-compat.h since we raised the minimum version to 2.8 git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1749 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Patch from Filippo Giunchedi <filippo@esaurito.net>Christophe Fergeau2007-10-292-2/+8
| | | | | | | * src/db-artwork-debug.c: (dump_mhni): another endianness fix git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1748 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_artwork.c:Christophe Fergeau2007-10-293-3/+9
| | | | | | | | * src/ithumb-writer.c: replace // comments with /* */ pairs, fixes compilation on my machine git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1747 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Patch from Filippo Giunchedi <filippo@esaurito.net>Christophe Fergeau2007-10-295-5/+77
| | | | | | | | | | * src/itdb_artwork.c: add I420 unpacker * src/itdb_device.c: iPod classic full screen photo format is I420 * src/itdb_device.h: add I420 format * src/ithumb-writer.c: add stub for an I420 packer git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1746 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: the iPod Touch probably uses the same image formatChristophe Fergeau2007-10-292-1/+6
| | | | | | | as the iPhone git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1745 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * configure.ac: raise glib requirement to 2.8 (because ofChristophe Fergeau2007-10-292-1/+6
| | | | | | | g_file_set_contents) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1744 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * configure.ac: remove mremap checkChristophe Fergeau2007-10-293-169/+74
| | | | | | | * src/db-artwork-writer.c: get rid mmap/mremap use git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1743 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-writer.c: reread the pointer for memory mappedChristophe Fergeau2007-10-292-2/+26
| | | | | | | | | | | buffers when it may have changed Artwork writing works by mapping structs to memory and by directly accessing/modifying it. This works until we need to move the mmap base address. This patch makes sure we reset the struct mapping every time the mmap base pointer may have changed git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1742 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c (ipod_classic_1_artwork_info)Jorg Schuler2007-10-276-58/+197
| | | | | | | | | | | | | | | | | | | | src/ithumb-writer.c (pack_RGB_888, pack_RGB_565, pack_RGB_555, pack_rec_RGB_555, ithumb_writer_write_thumbnail) src/db-image-parser.h (_888 definitions) src/itdb_device.h (RGB888 thumb format enum definitions) src/itdb_artwork.c (unpack_RGB_888, unpack_experimental, itdb_thumb_get_rgb_data) Partial support for photos on new iPod Nano 3G and iPod Classics. Photos should be displayed correctly on the iPod but the video output will show garbage (couldn't try video output per se, but from the data iTunes produces this is clear). git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1741 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-writer.c: (write_mhif), (should_write),Christophe Fergeau2007-10-242-77/+65
| | | | | | | | | (write_mhlf): don't hardcode the number of mhif entries we write, but write as many entries as the number of thumbnail formats supported by the device git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1736 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-writer.c: (write_mhla): yet another missing endiannessChristophe Fergeau2007-10-242-2/+9
| | | | | | | conversion git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1735 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Patch from Filippo Giunchedi <filippo@esaurito.net>Christophe Fergeau2007-10-242-1/+8
| | | | | | | | * src/db-artwork-parser.c: (parse_mhba): another missing endianness conversion git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1734 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Patch from Filippo Giunchedi <filippo@esaurito.net>Christophe Fergeau2007-10-212-1/+8
| | | | | | | | * src/db-artwork-debug.c: (dump_mhod_type_3): add missing byte-swap which resulted in over huge allocation git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1730 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Patch from Filippo Giunchedi <filippo@esaurito.net>Christophe Fergeau2007-10-213-12/+26
| | | | | | | | | * src/db-artwork-debug.c: (dump_mhba): fix dumping function in debug mode * src/db-itunes-parser.h: indentation fixes git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1729 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_photoalbum.c: (itdb_get_photos_dir):Christophe Fergeau2007-10-213-2/+8
| | | | | | | * src/ithumb-writer.c: (ipod_image_get_ithmb_filename): git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1728 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Add --enable-gtk-doc to the gnome-autogen.sh call. This allows make ↵Todd Zullinger2007-10-172-1/+8
| | | | | | distcheck to work correctly and to use an unmodified copy of gnome-autogen.sh from the upstream gnome-common package. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1727 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * gnome-autogen.sh: switch to newer version of that file Christophe Fergeau2007-10-162-30/+67
| | | | | | | (with automake 1.10 support) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1726 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: (itdb_device_requires_checksum): add missing Christophe Fergeau2007-10-092-0/+7
| | | | | | | (unreachable) return git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1725 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Explicitly enumerate the ipod models to get a warning if new models are ↵Christophe Fergeau2007-10-091-5/+23
| | | | | | added without updating that function git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1724 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: (itdb_device_requires_checksum):Christophe Fergeau2007-10-074-2/+34
| | | | | | | | | | | * src/itdb_itunesdb.c: (write_db_checksum): * src/itdb_private.h: add an itdb_device_requires_checksum function so that we only error out because of checksum writing issues on ipods which require a checksum. Ideally, we should restore the old file when there is a fatal checksum writing error, but libgpod isn't currently doing that git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1722 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_sha1.c: (generate_key): move cryptic calculations Christophe Fergeau2007-10-052-108/+73
| | | | | | | into the precomputed tables. Patch by Simon Schulz. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1720 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c:Christophe Fergeau2007-10-052-2/+14
| | | | | | | | | | | | | | Remove duplicate reference to ithmb file The iPod classic artwork formats contained two references to an ithmb file using 1060 as its filename. This confuses the ithumb writing code which can't handle that properly. Fixes that for now by removing the entry. We could probably be more clever in itdb_write_ithumb_files and generate two lists of iThumbWriters, one for artwork and another one for photos. This would fix that bug as well git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1719 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/db-artwork-writer.c: (itdb_track_filter_thumbnails),Christophe Fergeau2007-10-053-74/+139
| | | | | | | | | | | | | | | | | (itdb_filter_thumbnails), (ipod_write_artwork_db): * src/itdb_track.c: (itdb_track_set_thumbnails_internal): Set thumbnails for all known cover types in itdb_track_set_thumbnails itdb_track_set_thumbnails can be called when the track isn't attached to any device (eg it's natural to create a track, fill its metadata including the cover art, and then add it to an iTunesDB and its associated device). This means we can't know which artwork types the iPod corresponding to the iTunesDB will be able to handle. i Consequently, we create Itdb_Thumb objects for all known cover types, and we filter that list when we don't have a choice (ie when we're about to write the ArtworkDB and the thumbnails) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1718 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: (itdb_write_file): set Itdb_Track::idChristophe Fergeau2007-10-052-9/+18
| | | | | | | before writing the artwork since artwork writing uses them git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1717 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * README.SysInfo: add explanations about how the iPod needs to be Christophe Fergeau2007-10-012-0/+39
| | | | | | | set up so that libgpod can read the firewire id git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1714 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: get rid of unused headersChristophe Fergeau2007-10-012-2/+4
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1713 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: integrate checksum writing into theJorg Schuler2007-10-013-123/+58
| | | | | | | | | | | | creation of the iTunesDB instead of modifying the iTunesDB file in place (Christophe) * src/itdb_device.c: re-use artwork definition for iPod classic also for iPod Nanos 3G. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1712 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c (mk_mhit): write extended mhit header forJorg Schuler2007-10-014-9/+34
| | | | | | | | | | | | | | new iPod Nanos and Classics so they display artwork (Christophe) * src/db-artwork-writer (ipod_artwork_set_ids): modify the assignment of IDs for artwork (Christophe) * src/itdb_device.c: added artwork definition file (cover only) for iPod Nano Videos (3G). Thanks to Simon Schulz. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1711 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_itunesdb.c: (itdb_write_checksum): remove debugging g_printChristophe Fergeau2007-09-302-9/+4
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1708 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * src/itdb_device.c: fix typo and don't mark iPod Classic as read-onlyChristophe Fergeau2007-09-302-3/+7
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1707 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* * tools/read-sysinfoextended-sgutils.c: (main): use g_build_filenameChristophe Fergeau2007-09-282-2/+7
| | | | | | | | instead of itdb_resolve_filename since the latter will fail if SysInfoExtended does not already exist git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1706 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Remove trailing whitespaceChristophe Fergeau2007-09-271-1/+1
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1705 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* Fix make distcheckChristophe Fergeau2007-09-273-32/+33
| | | | git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1704 f01d2545-417e-4e96-918e-98f8d0dbbcb6
* 2007-09-27 Christophe Fergeau <teuf@gnome.org>Christophe Fergeau2007-09-275-2/+184
| | | | | | | | | | | | | * configure.ac: build tool to generate the iPod SysInfoExtended file if sgutils is detected * Makefile.am: * tools/ * tools/Makefile.am: changes to optionally build the sgutils-based tool * tools/read-sysinfoextended-sgutils.c: (do_sg_inquiry), (read_sysinfo_extended), (main): new file, reads the SysInfoExtended file from the iPod using SCSI queries git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1703 f01d2545-417e-4e96-918e-98f8d0dbbcb6