Debian Codegraph @

html/data_members.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
3 <html>
4 <head>
5 <title>ExifTool Object Data Members</title>
6 <link rel=stylesheet type='text/css' href='style.css' title='Style'>
7 </head>
8 <body>
9 <h2 class='up'>ExifTool Object Data Members</h2>
10
11 <p>The following table lists the data members of the ExifTool object. (If this
12 was C++, these would be documented next to the definitions in the header file,
13 but this is Perl, so I couldn't do that...)</p>
14
15 <p>Aside from the variables defined below, there may be other temporary
16 variables added by individual modules. Temporary variables are identified by at
17 least one lower case letter in their name, and are deleted automatically before
18 reading or writing each new image. Make, Model and CameraType are temporary
19 variables like this, but these three are special because they are initialized to
20 an empty string instead of being deleted at the start of processing for each
21 image, which allows them to be tested without having to check for an undefined
22 value.</p>
23
24 <blockquote><table class='norm'><tr><th>Name</th><th>Description</th></tr>
25
26 <tr><td>ADD_DIRS</td><td>Hash of parent directories for each directory added during
27 writing (Note: entry may exist but be undefined for top-level
28 directory!) To avoid adding a directory twice, entries may be
29 deleted from this lookup, but only AFTER WriteDirectory() is called.</td></tr>
30
31 <tr><td>BASE</td><td>Absolute position of current image in containing file
32 (for example, when processing JPEG image in FujiFilm RAF file)</td></tr>
33
34 <tr><td>BOTH</td><td>Reference to HASH of ValueConv/PrintConv arrays, saved for
35 tags when GetValue is called for 'Both' values, and used to avoid having to
36 recalculate both values again (which speeds up building the Composite tags
37 because often the same tag is Require'd by multiple Composite tags).</td></tr>
38
39 <tr><td>CameraType</td><td>Camera type used for decoding some Olympus tags</td></tr>
40
41 <tr><td>CHANGED</td><td>Number of tags changed during writing</td></tr>
42
43 <tr><td>CHARSET</td><td>Lookup table for current Charset setting</td></tr>
44
45 <tr><td>CHECK_WARN</td><td>Used to return CHECK_PROC warnings</td></tr>
46
47 <tr><td>Cleanup</td><td>List of subroutines to call before returning from Extract().
48 Call AddCleanup() to add to this list.</td></tr>
49
50 <tr><td>COMP_KEYS</td><td>Lookup for tag keys used in Composite tags</td></tr>
51
52 <tr><td>Compression</td><td>Compression for current EXIF IFD (or '' if no Compression tag).
53 Valid only in EXIF directories for tags after 0x0103.</td></tr>
54
55 <tr><td>CUR_LANG</td><td>Hash reference for localized language lookup corresponding
56 to current 'Lang' options setting.</td></tr>
57
58 <tr><td>CUR_WRITE_GROUP</td><td>Current family 1 group while writing. Currently
59 used only when writing QuickTime tracks.</td></tr>
60
61 <tr><td>DEL_GROUP</td><td>Hash of groups to delete. Value is 1 to delete group
62 completely, or 2 if tags were added back after deleting the group. May
63 have a leading "-" if excluded from a delete.</td></tr>
64
65 <tr><td>DEL_PREVIEW</td><td>Flag to delete preview from after JPEG EOI</td></tr>
66
67 <tr><td>DemoteErrors</td><td>Errors are demoted to warnings and this count is
68 incremented if non-zero to begin with</td></tr>
69
70 <tr><td>DIR_COUNT</td><td>Hash reference for counters of various types of directories (ICC, IPTC,...)</td></tr>
71
72 <tr><td>DIR_NAME</td><td>Name of directory currently being processed</td></tr>
73
74 <tr><td>DOC_COUNT</td><td>Number of top-level embedded sub-documents processed while
75 extracting, or 0 if none were processed</td></tr>
76
77 <tr><td>DOC_NUM</td><td>Current document number while extracting (0, '' or undef for the
78 main document). May contain a hyphen for sub-subdocuments (eg. '2-3-2').</td></tr>
79
80 <tr><td>DoneID3</td><td>Set to 1 if audio file was scanned for ID3,
81 or 2 if there was an ID3v1 trailer found</td></tr>
82
83 <tr><td>DropTags</td><td>Flag to exclude "Drop" tags when writing</td></tr>
84
85 <tr><td>DUPL_TAG</td><td>Hash of last used tag key index numbers for each duplicate tag.</td></tr>
86
87 <tr><td>EDIT_DIRS</td><td>Hash of parent directories for each directory edited during
88 writing (Note: entry may exist but be undefined for top-level
89 directory!)</td></tr>
90
91 <tr><td>End</td><td>Used by application to signal end of processing</td></tr>
92
93 <tr><td>EndDir</td><td>Used by application to signal end of the current directory</td></tr>
94
95 <tr><td>ESCAPE_PROC</td><td>Routine for XML or HTML escaping if Escape option is set</td></tr>
96
97 <tr><td>EXCL_TAG_LOOKUP</td><td>Hash for looking up excluded tags (keys are lower case tag names without group)</td></tr>
98
99 <tr><td>EXCL_XMP_LOOKUP</td><td>Hash for looking up excluded "XMP-xxx:yyy" tags (keys are lower case including group).
100 "XMP-xxx" may be any ExifTool family 1 XMP group name, or "XMP-all" for any XMP group. "yyy" may
101 be any XMP property name (NOT ExifTool tag name), or "all" for all tags in a group</td></tr>
102
103 <tr><td>EXIF_DATA</td><td>EXIF data block (valid while reading from file)</td></tr>
104
105 <tr><td>EXIF_POS</td><td>Position of EXIF data in file</td></tr>
106
107 <tr><td>FILENAME</td><td>Name of input file while extracting (only if we opened it, '' otherwise)</td></tr>
108
109 <tr><td>FILE_ORDER</td><td>Hash of numbers to give the sequence the tags were
110 extracted from file, keyed by tag key</td></tr>
111
112 <tr><td>FILE_EXT</td><td>Upper-case file extension (JPG, PEF, AVI, etc...) May be undefined if
113 file has no extension.</td></tr>
114
115 <tr><td>FILE_SEQUENCE</td><td>File sequence number when extracting information</td></tr>
116
117 <tr><td>FILE_TYPE</td><td>Root file format type (JPEG, TIFF, RIFF, etc...)</td></tr>
118
119 <tr><td>FileType</td><td>Actual identified file type</td></tr>
120
121 <tr><td>FIRST_EXIF_POS</td><td>Position of first EXIF in file</td></tr>
122
123 <tr><td>FMT_EXPR</td><td>The current advanced formatting expression when interpolating tag
124 values in a string. This member allows the formatting expression to be accessed in
125 the ValueConv function of user-defined Composite tags, which provided a mechanism for
126 arguments to be passed to the ValueConv function.</td></tr>
127
128 <tr><td>FORCE_WRITE</td><td>Hash reference for metadata types that are being forced to be
129 rewritten (see Extra ForceWrite tag)</td></tr>
130
131 <tr><td>FOUND_DIR</td><td>Names of directories found in file (used by Validate feature)</td></tr>
132
133 <tr><td>FOUND_TAGS</td><td>Found tags with proper case and order</td></tr>
134
135 <tr><td>GLOBAL_TIME_OFFSET</td><td>Time offset hash for first shifted date/time value of GlobalTimeShift option</td></tr>
136
137 <tr><td>HandlerType</td><td>[QuickTime only] Handler type for most recent Meta or Media object,
138 except for 'alis' and 'url ' typs.</td></tr>
139
140 <tr><td>HAS_DOC</td><td>Lookup for document and sub-document numbers existing in this file</td></tr>
141
142 <tr><td>HTML_DUMP</td><td>Reference to HtmlDump object when using HtmlDump feature</td></tr>
143
144 <tr><td>INDENT</td><td>Indent string for verbose output</td></tr>
145
146 <tr><td>INDENT2</td><td>Indent used in verbose SetNewValue output before writing</td></tr>
147
148 <tr><td>IN_RESOURCE</td><td>Flag indicates we are processing the resource fork of a Mac OS file</td></tr>
149
150 <tr><td>IO_TAG_LIST</td><td>List for output of requested tags in proper case and order</td></tr>
151
152 <tr><td>IsWriting</td><td>Flag set to indicate that metadata is being written to this file</td></tr>
153
154 <tr><td>LIST_TAGS</td><td>Hash of tag keys by tagInfo reference for active list-type
155 tags. This hash is cleared at the start of processing for each directory.
156 Not used when writing.</td></tr>
157
158 <tr><td>LONG_PATH_IN</td><td>Cached input to the WindowsLongPath function</td></tr>
159
160 <tr><td>LONG_PATH_OUT</td><td>Cached return value from the WindowsLongPath function</td></tr>
161
162 <tr><td>LOW_PRIORITY_DIR</td><td>Lookup based on directory name for directories where
163 undefined Priority tags get set to Priority 0 (eg. PreviewIFD in all images,
164 and IFD1 in JPEG images). This is equivalent to setting PRIORITY to 0 for
165 the tag table only for a specific directory name. A '*' entry in the lookup
166 causes the priority of tags in any directory to be lowered.</td></tr>
167
168 <tr><td>Make</td><td>Camera make set during reading and writing</td></tr>
169
170 <tr><td>MAKER_NOTE_BYTE_ORDER</td><td>Byte order of extracted maker notes if extracted
171 as a block.</td></tr>
172
173 <tr><td>MAKER_NOTE_INFO</td><td>Used by Image::ExifTool::CanonRaw as temporary storage for
174 maker note information when synthesizing maker notes from CRW file with the
175 MakerNotes option.</td></tr>
176
177 <tr><td>MAKER_NOTE_FIXUP</td><td>Fixup information for maker notes extracted with the MakerNotes
178 option (unless MakerNotes option is 2). Used by SetNewValuesFromFile() to adjust offsets
179 in maker note IFD</td></tr>
180
181 <tr><td>MediaType</td><td>[QuickTime only] Handler type for most recent Media object.</td></tr>
182
183 <tr><td>Model</td><td>Camera model name set during reading and writing</td></tr>
184
185 <tr><td>MOVED_KEY</td><td>Tag key of last tag replaced by a higher priority tag
186 in a call to FoundTag().</td></tr>
187
188 <tr><td>NEW_VALUE</td><td>Hash of new value information keyed by tag info reference.
189 Elements of new value information hash are:
190 <table class='clear'>
191 <tr valign='top'><td>TagInfo</td><td>-</td><td>tag information reference</td></tr>
192 <tr valign='top'><td>DelValue</td><td>-</td><td>list of specific values to delete</td></tr>
193 <tr valign='top'><td>Value</td><td>-</td><td>list of values to add</td></tr>
194 <tr valign='top'><td>IsCreating</td><td>-</td><td>must be set for the tag to be added, otherwise just
195 changed if it already exists. A value of 2 will create a new tag if its group already
196 exists, but won't add a new group</td></tr>
197 <tr valign='top'><td>EditOnly</td><td>-</td><td>flag set if tag should never be created (regardless
198 of file type). If this is set, then IsCreating must be false</td></tr>
199 <tr valign='top'><td>CreateOnly</td><td>-</td><td>flag set if creating only (never edit existing tag)</td></tr>
200 <tr valign='top'><td>CreateGroups</td><td>-</td><td>hash of all family 0 group names where tag may be created</td></tr>
201 <tr valign='top'><td>WriteGroup</td><td>-</td><td>group name where information is being written (correct case)</td></tr>
202 <tr valign='top'><td>WantGroup</td><td>-</td><td>group name as specified in call to function (case insensitive)</td></tr>
203 <tr valign='top'><td>Next</td><td>-</td><td>reference to next new value hash in linked list
204 if there is more than one new value hash (for writing to different groups) for this
205 tagInfo</td></tr>
206 <tr valign='top'><td>NoReplace</td><td>-</td><td>set if value was created with Replace=0</td></tr>
207 <tr valign='top'><td>AddBefore</td><td>-</td><td>number of list items added by a subsequent Replace=0 call</td></tr>
208 <tr valign='top'><td>IsNVH</td><td>-</td><td>flag indicating this is a new value hash (always 1)</td></tr>
209 <tr valign='top'><td>Order</td><td>-</td><td>counter to indicate the order that new value hashes were created</td></tr>
210 <tr valign='top'><td>Shift</td><td>-</td><td>shift value</td></tr>
211 <tr valign='top'><td>Save</td><td>-</td><td>flag set by call to SaveNewValues() if this value
212 should be saved</td></tr>
213 <tr><td colspan=3>MAKER_NOTE_FIXUP - pointer to fixup if necessary for a maker note value</td></tr>
214 </table></td></tr>
215
216 <tr><td>NewIPTCDigest</td><td>MD5 digest for most recently written IPTC data (undefined if IPTC doesn't
217 exist or if it was deleted). Calculated only if a value of 'new' is being written/deleted
218 to/from the Photoshop:IPTCDigest tag</td></tr>
219
220 <tr><td>NO_LIST</td><td>Set if List tags shouldn't be accumulated into a list. Undefined to
221 accumulate lists as usual, or 0 to accumulate lists in TAG_EXTRA "NoList" element (and
222 set a TAG_EXTRA "NoListDel" flag for tags that wouldn't have been created).</td></tr>
223
224 <tr><td>NO_STRUCT</td><td>Set if structures shouldn't be restored for this metadata. Used
225 to avoid restoring structures for non-XMP (eg. XML) information.</td></tr>
226
227 <tr><td>NO_STRUCT_WARN</td><td>Set if structures warnings should be ignored when rebuilding
228 structures (for questionable XML).</td></tr>
229
230 <tr><td>NO_UNKNOWN</td><td>Don't generate unknown tags automatically even if Unknown option is set</td></tr>
231
232 <tr><td>NUM_FOUND</td><td>Number of tags found</td></tr>
233
234 <tr><td>NV_COUNT</td><td>Counter incremented for each NEW_VALUE hash created</td></tr>
235
236 <tr><td>OldIPTCDigest</td><td>MD5 digest for original IPTC data (undefined if IPTC didn't
237 exist). Calculated only if a value of 'old' is being written/deleted to/from the
238 Photoshop:IPTCDigest tag</td></tr>
239
240 <tr><td>OPTIONS</td><td>ExifTool options</td></tr>
241
242 <tr><td>PATH</td><td>List reference to SubDirectory path. eg)
243 [qw(JPEG APP13 Photoshop IPTC)]. Among other things, used to generate the family 5
244 group names.</td></tr>
245
246 <tr><td>PDF_CAPTURE</td><td>Used by PDF module to store information when writing</td></tr>
247
248 <tr><td>PreferredGroup</td><td>Preferred family 1 group for writing tags to the current file.
249 Not defined to use the default group priorities. Set in call to InitWriteDirs().</td></tr>
250
251 <tr><td>PREVIEW_INFO</td><td>Information about preview image used while writing JPEG
252 images only. This is a reference to a hash with the following entries:
253 <table class='clear'>
254 <tr valign='top'><td>Absolute</td><td>-</td><td>flag set if PreviewImage pointer is relative to the
255 start of file</td></tr>
256 <tr><td>BaseShift</td><td>-</td><td>shift for base of pointer offsets</td></tr>
257 <tr valign='top'><td>Data</td><td>-</td><td>data for PreviewImage to be written (may either be data
258 for the old or new image, or 'LOAD_PREVIEW' to indicate that the data must be loaded from outside
259 the EXIF segment)</td></tr>
260 <tr><td>Fixup</td><td>-</td><td>[mandatory] fixup for PreviewImage pointers when writing JPEG images</td></tr>
261 <tr valign='top'><td>IsShort</td><td>-</td><td>flag indicates PreviewImage pointers
262 are 2-byte (instead of 4-byte) integers</td></tr>
263 <tr valign='top'><td>IsTrailer</td><td>-</td><td>flag indicates image should always be written as a JPEG
264 trailer, even if it fits inside the APP1 EXIF segment (as with Samsung STMN maker notes)</td></tr>
265 <tr><td>Relative</td><td>-</td><td>flag to indicate that pointer offsets are relative</td></tr>
266 </table></td></tr>
267
268 <tr><td>PRIORITY</td><td>Hash of tag Priority values for current tag, keyed by tag name (not tag key!)</td></tr>
269
270 <tr><td>PRIORITY_DIR</td><td>Name of priority directory (ie. the IFD for the full resolution image)</td></tr>
271
272 <tr><td>PROCESSED</td><td>Reference to hash of address/directory names which were processed
273 during reading and/or writing</td></tr>
274
275 <tr><td>RAF</td><td>Random access file object for reading from input file</td></tr>
276
277 <tr><td>Recreated</td><td>Directories recreated when writing (used to prevent recreating
278 multiple directories of the same type)</td></tr>
279
280 <tr><td>REQUESTED_TAGS</td><td>List of requested tags in original case</td></tr>
281
282 <tr><td>REQ_TAG_LOOKUP</td><td>Hash for looking up requested tags (keys are lower case tag names)</td></tr>
283
284 <tr><td>SAVE_COUNT</td><td>Counts number of times SaveNewValues() has been called</td></tr>
285
286 <tr><td>SAVE_DEL_GROUP</td><td>Hash of saved DEL_GROUP entries</td></tr>
287
288 <tr><td>SAVE_NEW_VALUE</td><td>Hash of new value information which was overwritten after
289 a call to SaveNewValues()</td></tr>
290
291 <tr><td>SaveFormat</td><td>Hash reference to check which TIFF format types were used
292 in the file. Valid only if the (undocumented) SaveFormat option is used.
293 Used by config_files/tiff_version.config.</td></tr>
294
295 <tr><td>SET_GROUP0</td><td>Value to use for family 0 group name when new tags
296 are found</td></tr>
297
298 <tr><td>SET_GROUP1</td><td>Value to use for family 1 group name when new tags
299 are found. May start with a '+' sign to add to existing group name</td></tr>
300
301 <tr><td>SubfileType</td><td>SubfileType for current EXIF IFD (or '' if no SubfileType tag).
302 Valid only in EXIF directories for tags after 0x00fe.</td></tr>
303
304 <tr><td>TAG_EXTRA</td><td>Hash of extra tag information keyed by tag key. Current extra
305 information may include:
306 <table class='clear'>
307 <tr valign='top'><td>G0</td><td>-</td><td>override for family 0 group name</td></tr>
308 <tr valign='top'><td>G1</td><td>-</td><td>dynamic family 1 group name (eg. IFD name or XMP
309 namespace), with a leading '+' to add value to the existing group 1 name</td></tr>
310 <tr valign='top'><td>G3</td><td>-</td><td>number for embedded documents (eg. 1, 2, etc)</td></tr>
311 <tr valign='top'><td>G#</td><td>-</td><td>family # group name</td></tr>
312 <tr valign='top'><td>Units</td><td>-</td><td>used internally to store units for GoPro values</td></tr>
313 <tr valign='top'><td>Struct</td><td>-</td><td>used internally to store structure properties</td></tr>
314 <tr valign='top'><td>NoList</td><td>-</td><td>used internally to store values for List-type tags</td></tr>
315 <tr valign='top'><td>NoListDel</td><td>-</td><td>flag used internally to delete value if included in another list</td></tr>
316 <tr valign='top'><td>Fixup</td><td>-</td><td>fixup information for maker notes block</td></tr>
317 <tr valign='top'><td>BinVal</td><td>-</td><td>raw binary value of tag if SaveBin option is set</td></tr>
318 <tr valign='top'><td>Rational</td><td>-</td><td>rational tag value as a string fraction</td></tr>
319 </table></td></tr>
320
321 <tr><td>TAG_INFO</td><td>Hash of tagInfo hash references, keyed by tag key</td></tr>
322
323 <tr><td>TAGS_FROM_FILE</td><td>Flag used during extraction when called from SetNewValuesFromFile().
324 Test this flag when extracting tags that are not normally extracted.</td></tr>
325
326 <tr><td>TIFF_END</td><td>Location of end of regular TIFF file set by WriteExif()</td></tr>
327
328 <tr><td>TIFF_TYPE</td><td>Type of TIFF data, only set if FILE_TYPE is TIFF. Valid values
329 are APP1, APP3, TIFF, CR2, MRW, JP2, JPX, NEF, PEF, ORF, DNG, etc.</td></tr>
330
331 <tr><td>Validate</td><td>Flag to do extra validation checks</td></tr>
332
333 <tr><td>VALUE</td><td>Hash of raw tag values keyed by tag key</td></tr>
334
335 <tr><td>WAS_WARNED</td><td>Hash of warning messages that have been issued once already</td></tr>
336
337 <tr><td>WRITE_GROUPS</td><td>List of write groups in order of priority</td></tr>
338
339 <tr><td>WRITE_PRIORITY</td><td>Hash of write priority values keyed by group name</td></tr>
340
341 <tr><td>WRITTEN</td><td>Hash of tags written (currently used only for filesystem date/time tags)</td></tr>
342
343 <tr><td>XMP_CAPTURE</td><td>Hash of tag information (value, attribute hash) keyed by XMP
344 property path, used by XMP module during writing</td></tr>
345
346 <tr><td>XMP_ERROR</td><td>Error string used by XMP module during writing</td></tr>
347
348 <tr><td>XMP_NS</td><td>Hash of URI's keyed by namespace prefix, used by XMP module
349 during writing to remember all used namespaces</td></tr>
350
351 </table></blockquote>
352 <hr>
353 <p class='lf'><a href="index.html">&lt;-- Back to ExifTool home page</a></p>
354 </body>
355 </html>