|
2 | 2 |
|
3 | 3 | #include "error.hpp" |
4 | 4 | #include "makernote_int.hpp" |
| 5 | +#include "sonymn_int.hpp" |
5 | 6 | #include "tiffvisitor_int.hpp" |
6 | 7 | #include "i18n.h" // NLS support. |
7 | 8 |
|
@@ -767,6 +768,24 @@ namespace Exiv2 { |
767 | 768 | false, // Don't concatenate gaps |
768 | 769 | { 0, ttUnsignedShort, 1 } |
769 | 770 | }; |
| 771 | + |
| 772 | + extern const ArrayCfg sony2FpCfg = { |
| 773 | + sony2FpId, // Group for the elements |
| 774 | + bigEndian, // Big endian |
| 775 | + ttUnsignedByte, // Type for array entry and size element |
| 776 | + sonyTagDecipher, // (uint16_t, const byte*, uint32_t, TiffComponent* const); |
| 777 | + false, // No size element |
| 778 | + false, // No fillers |
| 779 | + false, // Don't concatenate gaps |
| 780 | + { 0, ttUnsignedByte, 1 } |
| 781 | + }; |
| 782 | + extern const ArrayDef sony2FpDef[] = { |
| 783 | + { 0x4, ttSignedByte , 1 }, // Exif.Sony2Fp.AmbientTemperature |
| 784 | + { 0x16, ttUnsignedByte, 1 }, // Exif.Sony2Fp.FocusMode |
| 785 | + { 0x17, ttUnsignedByte, 1 }, // Exif.Sony2Fp.AFAreaMode |
| 786 | + { 0x2d, ttUnsignedByte, 1 } // Exif.Sony2Fp.FocusPosition2 |
| 787 | + }; |
| 788 | + |
770 | 789 | //! Sony[12] Camera Settings binary array - definition |
771 | 790 | extern const ArrayDef sonyCsDef[] = { |
772 | 791 | { 12, ttSignedShort, 1 } // Exif.Sony[12]Cs.WhiteBalanceFineTune |
@@ -988,6 +1007,7 @@ namespace Exiv2 { |
988 | 1007 | { Tag::root, sony1MltCs7DId, sonyMltId, 0x0004 }, |
989 | 1008 | { Tag::root, sony1MltCsA100Id, sonyMltId, 0x0114 }, |
990 | 1009 | { Tag::root, sony2Id, exifId, 0x927c }, |
| 1010 | + { Tag::root, sony2FpId, sony2Id, 0x9402 }, |
991 | 1011 | { Tag::root, sony2CsId, sony2Id, 0x0114 }, |
992 | 1012 | { Tag::root, sony2Cs2Id, sony2Id, 0x0114 }, |
993 | 1013 | { Tag::root, minoltaId, exifId, 0x927c }, |
@@ -1418,6 +1438,10 @@ namespace Exiv2 { |
1418 | 1438 | { Tag::all, sony1CsId, newTiffBinaryElement }, |
1419 | 1439 | { Tag::all, sony1Cs2Id, newTiffBinaryElement }, |
1420 | 1440 |
|
| 1441 | + // Tag 0x9402 Sony2Fp Focus Position |
| 1442 | + { Tag::all, sony2FpId, newTiffBinaryElement }, |
| 1443 | + { 0x9402, sony2Id, EXV_BINARY_ARRAY(sony2FpCfg, sony2FpDef) }, |
| 1444 | + |
1421 | 1445 | // Sony2 makernote |
1422 | 1446 | { 0x0114, sony2Id, EXV_COMPLEX_BINARY_ARRAY(sony2CsSet, sonyCsSelector) }, |
1423 | 1447 | { Tag::next, sony2Id, ignoreTiffComponent }, |
|
0 commit comments