Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

zirephoto(3pm) [debian man page]

ZirePhoto(3pm)						User Contributed Perl Documentation					    ZirePhoto(3pm)

NAME
Palm::ZirePhoto - Handler for Palm Zire71 Photo thumbnail databases. SYNOPSIS
use Palm::ZirePhoto; DESCRIPTION
The Zire71 PDB handler is a helper class for the Palm::PDB package. It parses Zire71 Photo thumbnail databases (and, hopefully, Tungsten Photo databases). Actual photos are separate databases and must be processed separately. This database is currently only capable of reading. AppInfo block The AppInfo block begins with standard category support. See Palm::StdAppInfo for details. Records Records may contain no data fields. This occurs when the record has been marked deleted on the Palm, presumably in order to save space (Photo has no provision for archiving when deleting and the separate database storage for the actual images would make it pointless anyways). $record = $pdb->{records}[N] $record->{'width'} $record->{'height'} $record->{'size'} The actual JPEG images dimensions and (compressed) file size. $record->{'thumb'} The thumbnail is a very small (max size approx 84x84) JPEG format image. $record->{'name'} Image name. Appending ".jpg" to this will give the database name of the actual image data. $record->{'time1'} $record->{'time2'} Unix epoch time of when the image was last modified ("time1") and when it was created ("time2"). Photo Databases Actual photos are stored in separate databases. Each record is preceded by an 8 byte header that describes it a) as a data block (DBLK) and b) the size of the block. Records are generally 4k, except for the last. To convert a Photo database to a JPEG image, one would do something like: use Palm::Raw; my $pdb = new Palm::PDB; $pdb->Load( "image.jpg.pdb" ); open F, ">image.jpg"; for( @{$pdb->{records}} ) { print F substr($_->{'data'}, 8); } close F; Notes are stored at the end of the JPEG image. Use "ParseNote" to get it. METHODS
Handling Palm photos can be a bit complicated. Some helper methods are exported to make some special cases a bit easier. ParseNote my $photo = read_jpeg_file( "image.jpg" ); my $note = Palm::ZirePhoto::ParseNote($photo); print "Note: $note" if defined $note; The Palm photo application stores user notes at the end of the JPEG file itself. This method will extract that note and return it. "undef" is returned if the note is unavailable. ParseAlbum my $album = slurp("/DCIM/Unfiled/Album.db"); my @records = Palm::ZirePhoto::ParseAlbum( $album ); print $_->{name}," " for( @records ); Photos on memory cards are stored in subdirectories of "/DCIM". The meta-data for these images are stored in "Album.db" files under each category directory. This method will parse out the meta-data into an array of records similar to those returned by "ParseRecord". Thumbnail information, however, is not available. SOURCE CONTROL
The source is in Github: http://github.com/briandfoy/p5-Palm/tree/master AUTHOR
Alessandro Zummo, "<a.zummo@towertech.it>" Currently maintained by brian d foy, "<bdfoy@cpan.org>" SEE ALSO
Palm::PDB(3) Palm::StdAppInfo(3) perl v5.10.1 2010-03-07 ZirePhoto(3pm)

Check Out this Related Man Page

Mail(3pm)						User Contributed Perl Documentation						 Mail(3pm)

NAME
Palm::Mail - Handler for Palm Mail databases. SYNOPSIS
use Palm::Mail; DESCRIPTION
The Mail PDB handler is a helper class for the Palm::PDB package. It parses Mail databases. AppInfo block The AppInfo block begins with standard category support. See Palm::StdAppInfo for details. Other fields include: $pdb->{appinfo}{sortOrder} $pdb->{appinfo}{unsent} $pdb->{appinfo}{sigOffset} I don't know what these are. Sort block $pdb->{sort} This is a scalar, the raw data of the sort block. Records $record = $pdb->{records}[N] $record->{year} $record->{month} $record->{day} $record->{hour} $record->{minute} The message's timestamp. $record->{is_read} This is defined and true iff the message has been read. $record->{has_signature} For outgoing messages, this is defined and true iff the message should have a signature attached. The signature itself is stored in the "Saved Preferences.prc" database, and is of type "mail" with ID 2. $record->{confirm_read} If this is defined and true, then the sender requests notification when the message has been read. $record->{confirm_delivery} If this is defined and true, then the sender requests notification when the message has been delivered. $record->{priority} An integer in the range 0-2, for high, normal, or low priority, respectively. $record->{addressing} An integer in the range 0-2, indicating the addressing type: To, Cc, or Bcc respectively. I don't know what this means. $record->{subject} $record->{from} $record->{to} $record->{cc} $record->{bcc} $record->{replyTo} $record->{sentTo} Strings, the various header fields. $record->{body} A string, the body of the message. METHODS
new $pdb = new Palm::Mail; Create a new PDB, initialized with the various Palm::Mail fields and an empty record list. Use this method if you're creating a Mail PDB from scratch. new_Record $record = $pdb->new_Record; Creates a new Mail record, with blank values for all of the fields. "new_Record" does not add the new record to $pdb. For that, you want "$pdb->append_Record". Note: the time given by the "year", "month", "day", "hour", and "minute" fields in the new record are initialized to the time when the record was created. They should be reset to the time when the message was sent. SOURCE CONTROL
The source is in Github: http://github.com/briandfoy/p5-Palm/tree/master AUTHOR
Alessandro Zummo, "<a.zummo@towertech.it>" Currently maintained by brian d foy, "<bdfoy@cpan.org>" SEE ALSO
Palm::PDB(3) Palm::StdAppInfo(3) perl v5.10.1 2010-02-23 Mail(3pm)
Man Page