ExifTool Forum

General => Metadata => Topic started by: qdwang on July 19, 2021, 09:45:31 AM

Title: an ExifOffset calculation question
Post by: qdwang on July 19, 2021, 09:45:31 AM

......
  | 9)  ExifOffset (SubDirectory) -->
  |     - Tag 0x8769 (4 bytes, int32u[1]):
  |         008a: ae 02 00 00                                     [....]
  | + [ExifIFD directory with 42 entries]
  | | 0)  ExposureTime = 0.002 (10/5000)
  | |     - Tag 0x829a (8 bytes, rational64u[1]):
  | |         04c4: 0a 00 00 00 88 13 00 00                         [........]
......


I tried to use exiftool -v3 to parse an Panasonic RW2, but don't know how the Offset calculation works.

Since 0x008a + 4 + 0x02ae does not equal to 0x04c4, how the 0x04c4 offset is calculated?

Thanks.
Title: Re: an ExifOffset calculation question
Post by: Phil Harvey on July 20, 2021, 06:18:07 AM
The ExifIFD directory itself should be at 0x2ae plus the offset of the start of the TIFF information.  The value of the ExposureTime tag is stored outside the ExifIFD at a location referenced by its entry in the ExifIFD.  Maybe this will make more sense if you look at the -htmldump output.

- Phil
Title: Re: an ExifOffset calculation question
Post by: qdwang on July 21, 2021, 02:08:04 AM
Thanks for the reply.

Now I can get the correct result.