Commit Graph

12 Commits

Author SHA1 Message Date
KAMADA Ken'ichi 79cc94f615 More readable Debug::fmt for Value::{Ascii, Undefined}. 2020-02-05 23:05:48 +09:00
KAMADA Ken'ichi 1568e3151f Separate struct Exif from Reader. 2020-01-20 22:05:06 +09:00
KAMADA Ken'ichi 5219996fa4 Add Reader::read_from_container. 2020-01-19 20:58:01 +09:00
KAMADA Ken'ichi 1bd083cbae Do not reference the raw buffer from Value and Field.
Previously, they borrowed the buffer, so users had some difficulty to
manage the lifetime of the buffer and Value/Field.  For example,
a user structure was unable to contain both the buffer and a Field.
2019-12-14 21:57:35 +09:00
KAMADA Ken'ichi 766822c791 Use ..= for inclusive range pattern. 2019-10-21 23:25:32 +09:00
KAMADA Ken'ichi b9575efd0b Add struct In (IFD number) to indicate primary/thumbnail images. 2019-04-20 23:16:01 +09:00
KAMADA Ken'ichi 2ffa449d9d Support displaying a value with its unit.
- Field::display_value and DisplayValue::with_unit were introduced.
- The string "centimeter" was changed to "cm" for consistency
  with "m", "mm", and "km".
- F-number was changed to be prefixed by "f/" only when with_unit() is
  called, though it is actually not a unit.
2019-04-07 21:11:14 +09:00
Kornel 9c45d1903a Replace try!() with ? 2018-04-17 23:21:40 +09:00
KAMADA Ken'ichi 26a64361b3 Add `Tag::TagName`s and deprecate `tag::TagName`s. 2017-10-12 22:55:56 +09:00
KAMADA Ken'ichi 98cb8b914c Remove ImageWidth/Length from tests/exif.jpg for conformance to Exif. 2017-08-21 21:13:36 +09:00
KAMADA Ken'ichi fab83f512f Add examples/dumpexif.rs. 2017-07-23 21:41:10 +09:00
KAMADA Ken'ichi 8ffc5ced3f Add an example to read various fields. 2017-07-16 15:16:56 +09:00