Commit Graph

16 Commits

Author SHA1 Message Date
Robin Mills
e032586d74 Code/comment tidy. 2020-11-26 20:29:38 +00:00
Robin Mills
a8b549f7df Remove debugging code. 2020-11-26 13:28:03 +00:00
Robin Mills
45119e3260 WIP: working to understand how to support tiffIfd in tiffvisitor_int.cpp 2020-11-25 16:41:03 +00:00
Robin Mills
05538ebea2 fix1001_rename_AFPrimaryPoint 2019-10-06 21:44:04 +02:00
clanmills
90f9f0bc19
Add support for Exif.Canon.AF tags to be read from images
This PR (and fix981_canonAutoFocus2) use a decoder listed in TiffMappingInfo to
decode Exif.Canon.AFInfo. The decoding function "manufactures" Exif tags such as
Exif.Canon.AFNumPoints from the data in Exif.Canon.AFInfo. These tags must never
be written to file and are removed from the metadata in
exif.cpp/ExifParser::encode().

Three of the tags created (AFPointsInFocus,AFPointsSelected, AFPrimaryPoint) are
bitmasks. As the camera can have up to 64 focus points, the tags are a 64 bit
mask to say which points are active. The function printBitmask() reports data
such as 1,2,3 or (none).

This decoding function decodeCanonAFInfo() added to TiffMappingInfo manufactures
the new tags. Normally, tags are processed by the binary tag decoder and that
approach was taken in branch fix981_canonAf. However, the binary tag decoder
cannot deal with AFInfo because the size of some metadata arrays cannot be
determined at compile time.
2019-09-14 11:28:18 +02:00
Luis Díaz Más
113136e134 Replace DEBUG with EXIV2_DEBUG_MESSAGES
Fixes #926
2019-07-12 11:14:35 +02:00
Robin Mills
ab375fb074 Add support for FocusPosition in Sony RAW files (#906)
* Fix 582 Add support for FocusPosition in Sony RAW files
* Thanks to @boardhead sonyFpCrypt() works correctly. Removed debug code. Fixed typos.
* Update doc/templates/Makefile to process Sony2Fp
* Following review by @boardhead. Renamed sonyFpCrypt() as sonyTagDecipher().
* Fixed writing the tag thanks to @boardhead explaining encipher/decipher.
  Sadly, ArrayCfg/crpyt does not know if he's encrypting/decrypting.
  I've added a sniff in TiffEncoder::visitBinaryArrayEnd to avoid changing the API.
* Added URL to discussion concerning sonyTagCipher()
* make sonyTagCipher() a static function with no external visibility.
2019-06-26 21:36:59 +02:00
Robin Mills
bd1e7522c2 Simplification of TiffDecoder::decodeTiffEntry(). 2019-06-18 21:29:55 +02:00
Robin Mills
b02c80f7e4 fix646_NikonAF22 2019-06-18 21:29:55 +02:00
Robin Mills
88ec8b88ea Fix #562 for 32 bit builds (don't throw arithmetic exception). 2018-12-09 18:54:40 +01:00
Luis Díaz Más
1bdbb86b0c Fix warning about implicit conversion to bool 2018-09-12 19:22:31 +02:00
Luis Díaz Más
603692a1d8 Copyright to Exiv2 authors 2018-09-12 19:22:31 +02:00
tbeu
eca251865f Fix check (on comparing unsigned minus signed greater zero)
V555 The expression 'object->sizeDataArea_ - buf.size_ > 0' will work as 'object->sizeDataArea_ != buf.size_'. tiffvisitor.cpp 911
2018-06-02 09:43:20 +02:00
Dan Čermák
4c4d568036 Enforce a valid Value (instead of assert) 2018-05-16 10:15:53 +02:00
Dan Čermák
efe2ccdcb6 Replaced all hardcoded error codes with ker... constants 2018-02-18 09:28:57 +01:00
Luis Díaz Más
d3748152a7 add _int suffix to all the internal files 2017-11-28 17:36:08 +01:00