~ubuntu-branches/ubuntu/karmic/libimage-exiftool-perl/karmic

« back to all changes in this revision

Viewing changes to lib/Image/ExifTool/JPEG.pm

  • Committer: Bazaar Package Importer
  • Author(s): Mari Wang
  • Date: 2008-02-04 20:32:53 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080204203253-mpbal8trlfe1fz5d
Tags: 7.00-1
* Upload of new production release (Closes: #456430)
* Added Recommends: libcompress-zlib-perl (Closes: #435589)
* Package now includes iptc2xmp.args and xmp2iptc.args, they are put
  into /usr/share/libimage-exiftool/ (Closes: #436100)
* Updated standards-version (3.7.2 -> 3.7.3). No changes needed.
* Lots of updates and bugfixes compared to last debian version
  (6.90).  See the Changes file for details
* Upload sponsored by Petter Reinholdtsen

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
use strict;
11
11
use vars qw($VERSION);
12
12
 
13
 
$VERSION = '1.05';
 
13
$VERSION = '1.07';
14
14
 
15
15
# (this main JPEG table is for documentation purposes only)
16
16
%Image::ExifTool::JPEG::Main = (
59
59
    APP6 => {
60
60
        Name => 'EPPIM',
61
61
        Condition => '$$valPt =~ /^EPPIM\0/',
62
 
        SubDirectory => { TagTable => 'Image::ExifTool::JPEG::APP6' },
 
62
        SubDirectory => { TagTable => 'Image::ExifTool::JPEG::EPPIM' },
63
63
    },
64
64
    APP8 => {
65
65
        Name => 'SPIFF',
66
66
        Condition => '$$valPt =~ /^SPIFF\0/',
67
 
        SubDirectory => { TagTable => 'Image::ExifTool::JPEG::APP8' },
 
67
        SubDirectory => { TagTable => 'Image::ExifTool::JPEG::SPIFF' },
68
68
    },
69
69
    APP10 => {
70
70
        Name => 'Comment',
74
74
    APP12 => [{
75
75
        Name => 'PictureInfo',
76
76
        Condition => '$$valPt =~ /(\[picture info\]|Type=)/',
77
 
        SubDirectory => { TagTable => 'Image::ExifTool::APP12::Main' },
 
77
        SubDirectory => { TagTable => 'Image::ExifTool::APP12::PictureInfo' },
78
78
      }, {
79
79
        Name => 'Ducky',
80
 
        Condition => '$$valPt =~ /^Ducky\0/',
 
80
        Condition => '$$valPt =~ /^Ducky/',
81
81
        SubDirectory => { TagTable => 'Image::ExifTool::APP12::Ducky' },
82
82
    }],
83
 
    APP13 => {
 
83
    APP13 => [{
84
84
        Name => 'Photoshop',
85
85
        Condition => '$$valPt =~ /^(Photoshop 3.0\0|Adobe_Photoshop2.5)/',
86
86
        SubDirectory => { TagTable => 'Image::ExifTool::Photoshop::Main' },
87
 
    },
 
87
    }, {
 
88
        Name => 'Adobe_CM',
 
89
        Condition => '$$valPt =~ /^Adobe_CM/',
 
90
        SubDirectory => { TagTable => 'Image::ExifTool::JPEG::AdobeCM' },
 
91
    }],
88
92
    APP14 => {
89
93
        Name => 'Adobe',
90
94
        Condition => '$$valPt =~ /^Adobe/',
91
 
        SubDirectory => { TagTable => 'Image::ExifTool::JPEG::APP14' },
 
95
        SubDirectory => { TagTable => 'Image::ExifTool::JPEG::Adobe' },
92
96
    },
93
97
    APP15 => {
94
98
        Name => 'GraphicConverter',
95
99
        Condition => '$$valPt =~ /^Q\s*(\d+)/',
96
 
        SubDirectory => { TagTable => 'Image::ExifTool::JPEG::APP15' },
 
100
        SubDirectory => { TagTable => 'Image::ExifTool::JPEG::GraphConv' },
97
101
    },
98
102
    COM => {
99
103
        Name => 'Comment',
101
105
        # in the TagLookup as writable because there is no WRITE_PROC
102
106
        Writable => '1',
103
107
    },
 
108
    SOF => {
 
109
        Name => 'StartOfFrame',
 
110
        SubDirectory => { TagTable => 'Image::ExifTool::JPEG::SOF' },
 
111
    },
104
112
    Trailer => [{
105
113
        Name => 'AFCP',
106
114
        Condition => '$$valPt =~ /AXS(!|\*).{8}$/s',
131
139
    }],
132
140
);
133
141
 
134
 
# APP6 EPPIM (Toshiba PrintIM) segment (ref PH, from PDR-M700 samples)
135
 
%Image::ExifTool::JPEG::APP6 = (
 
142
# EPPIM APP6 (Toshiba PrintIM) segment (ref PH, from PDR-M700 samples)
 
143
%Image::ExifTool::JPEG::EPPIM = (
136
144
    GROUPS => { 0 => 'APP6', 1 => 'EPPIM', 2 => 'Image' },
137
145
    NOTES => q{
138
146
        APP6 is used in by the Toshiba PDR-M700 to store a TIFF structure containing
149
157
    },
150
158
);
151
159
 
152
 
# APP8 SPIFF segment.  Refs:
 
160
# SPIFF APP8 segment.  Refs:
153
161
# 1) http://www.fileformat.info/format/spiff/
154
162
# 2) http://www.jpeg.org/public/spiff.pdf
155
 
%Image::ExifTool::JPEG::APP8 = (
 
163
%Image::ExifTool::JPEG::SPIFF = (
156
164
    PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData,
157
165
    GROUPS => { 0 => 'APP8', 1 => 'SPIFF', 2 => 'Image' },
158
166
    NOTES => q{
235
243
    },
236
244
);
237
245
 
238
 
# APP14 refs:
 
246
# AdobeCM APP13 (no references)
 
247
%Image::ExifTool::JPEG::AdobeCM = (
 
248
    PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData,
 
249
    GROUPS => { 0 => 'APP13', 1 => 'AdobeCM', 2 => 'Image' },
 
250
    NOTES => q{
 
251
        The "Adobe_CM" APP13 segment presumably contains color management
 
252
        information, but the meaning of the data is currently unknown.  If anyone
 
253
        has an idea about what this means, please let me know.
 
254
    },
 
255
    FORMAT => 'int16u',
 
256
    0 => 'AdobeCMType',
 
257
);
 
258
 
 
259
# Adobe APP14 refs:
239
260
# http://partners.adobe.com/public/developer/en/ps/sdk/5116.DCT_Filter.pdf
240
261
# http://java.sun.com/j2se/1.5.0/docs/api/javax/imageio/metadata/doc-files/jpeg_metadata.html#color
241
 
%Image::ExifTool::JPEG::APP14 = (
 
262
%Image::ExifTool::JPEG::Adobe = (
242
263
    PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData,
243
264
    GROUPS => { 0 => 'APP14', 1 => 'Adobe', 2 => 'Image' },
244
265
    NOTES => 'The "Adobe" APP14 segment stores image encoding information for DCT filters.',
266
287
);
267
288
 
268
289
# GraphicConverter APP15 (ref PH)
269
 
%Image::ExifTool::JPEG::APP15 = (
 
290
%Image::ExifTool::JPEG::GraphConv = (
270
291
    GROUPS => { 0 => 'APP15', 1 => 'GraphConv', 2 => 'Image' },
271
292
    NOTES => 'APP15 is used by GraphicConverter to store JPEG quality.',
272
293
    'Q' => 'Quality',
273
294
);
274
295
 
275
 
 
276
296
1;  # end
277
297
 
278
298
__END__