Commit Graph

6 Commits

Author SHA1 Message Date
KAMADA Ken'ichi 5cb98a8f1b Allow Exif and other IFDs in the thumbnail image.
The Exif specfication allows Exif/GPS/Interoperability IFDs in the
thumbnail image (1st IFD) as well as in the primary one (0th IFD).

Do not define separate sets of tag constants for primary and thumbnail
images because it doubles the number of constants.  Instead, add a
flag in struct Field to distinguish them.
2016-12-12 21:27:35 +09:00
KAMADA Ken'ichi 05e5852918 Add constants for tags defined in the Exif specification. 2016-12-06 22:08:47 +09:00
KAMADA Ken'ichi 66c92e0441 Avoid repeating contexts in tag constants definition. 2016-12-06 22:05:43 +09:00
KAMADA Ken'ichi d180bfbae8 Add Tag::description() and implement fmt::Display for Tag. 2016-11-24 22:23:05 +09:00
KAMADA Ken'ichi 6651b7d159 Parse IFD structures and record the context in Tag.
In the Exif specification, IFDs may be nested and chained.
The interpretation of a tag value depends on the IFD in which it
appears, so the context is added into Tag.
2016-11-23 19:06:38 +09:00
KAMADA Ken'ichi 0e9512472c Parse TIFF IFD structure. 2016-10-26 22:46:20 +09:00