[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:42:48 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=64511c2

The following commit has been merged in the master branch:
commit 64511c266e9440a7f9d422518885618d0fc4bf5c
Author: Andreas Huggel <ahuggel at gmx.net>
Date:   Thu Oct 6 01:48:29 2011 +0000

    Added support for Nikon3 AF Fine Tune array. (Frans van den Bergh)
---
 src/nikonmn.cpp     | 22 ++++++++++++++++++++++
 src/nikonmn_int.hpp |  4 ++++
 src/tags.cpp        |  1 +
 src/tags_int.hpp    |  1 +
 src/tiffimage.cpp   | 23 +++++++++++++++++++++++
 5 files changed, 51 insertions(+)

diff --git a/src/nikonmn.cpp b/src/nikonmn.cpp
index afdb208..772b6a7 100644
--- a/src/nikonmn.cpp
+++ b/src/nikonmn.cpp
@@ -603,6 +603,7 @@ namespace Exiv2 {
         TagInfo(0x00b3, "ToningEffect", "Toning Effect", N_("Toning effect"), nikon3Id, makerTags, asciiString, -1, printValue),
         TagInfo(0x00b7, "AFInfo2", "AF Info 2", N_("AF info 2"), nikon3Id, makerTags, undefined, -1, printValue),
         TagInfo(0x00b8, "FileInfo", "File Info", N_("File info"), nikon3Id, makerTags, undefined, -1, printValue),
+        TagInfo(0x00b9, "AFTune", "AF Tune", N_("AF tune"), nikon3Id, makerTags, undefined, -1, printValue),
         TagInfo(0x0e00, "PrintIM", N_("Print IM"), N_("PrintIM information"), nikon3Id, makerTags, undefined, -1, printValue),
         // TODO: Add Capture Data decoding implementation.
         TagInfo(0x0e01, "CaptureData", N_("Capture Data"), N_("Capture data"), nikon3Id, makerTags, undefined, -1, printValue),
@@ -708,6 +709,27 @@ namespace Exiv2 {
     {
         return tagInfoPc_;
     }
+    
+    //! OnOff
+    extern const TagDetails aftOnOff[] = {
+        {  0, N_("Off")  },
+        {  1, N_("On") },
+        {  2, N_("On") }
+    };
+    
+    // Nikon3 AF Fine Tune
+    const TagInfo Nikon3MakerNote::tagInfoAFT_[] = {
+        TagInfo(0, "AFFineTune", N_("AF Fine Tune"), N_("AF fine tune"), nikonAFTId, makerTags, unsignedByte, 1, EXV_PRINT_TAG(aftOnOff)),
+        TagInfo(1, "AFFineTuneIndex", N_("AF Fine Tune Index"), N_("AF fine tune index"), nikonAFTId, makerTags, unsignedByte, 1, printValue),
+        TagInfo(2, "AFFineTuneAdj", N_("AF Fine Tune Adjustment"), N_("AF fine tune adjustment"), nikonAFTId, makerTags, signedByte, 1, printValue),
+        // End of list marker
+        TagInfo(0xffff, "(UnknownNikonAFTTag)", "(UnknownNikonAFTTag)", N_("Unknown Nikon AF Fine Tune Tag"), nikonAFTId, makerTags, unsignedByte, 1, printValue)
+    };
+    
+    const TagInfo* Nikon3MakerNote::tagListAFT()
+    {
+        return tagInfoAFT_;
+    }
 
     // Nikon3 World Time Tag Info
     const TagInfo Nikon3MakerNote::tagInfoWt_[] = {
diff --git a/src/nikonmn_int.hpp b/src/nikonmn_int.hpp
index d1101bb..87aaae5 100644
--- a/src/nikonmn_int.hpp
+++ b/src/nikonmn_int.hpp
@@ -125,6 +125,8 @@ namespace Exiv2 {
         static const TagInfo* tagListAf();
         //! Return read-only list of built-in Auto Focus 2 tags
         static const TagInfo* tagListAf2();
+        //! Return read-only list of built-in AF Fine Tune tags
+        static const TagInfo* tagListAFT();
         //! Return read-only list of built-in File Info tags
         static const TagInfo* tagListFi();
         //! Return read-only list of built-in Multi Exposure tags
@@ -234,6 +236,8 @@ namespace Exiv2 {
         static const TagInfo tagInfoAf_[];
         //! Auto Focus tag 2 information
         static const TagInfo tagInfoAf2_[];
+        //! AF Fine Tune tag information
+        static const TagInfo tagInfoAFT_[];
         //! File Info tag information
         static const TagInfo tagInfoFi_[];
         //! Multi Exposure tag information
diff --git a/src/tags.cpp b/src/tags.cpp
index 1207fa4..b5df667 100644
--- a/src/tags.cpp
+++ b/src/tags.cpp
@@ -120,6 +120,7 @@ namespace Exiv2 {
         { nikonIiId,       "Makernote", "NikonIi",      Nikon3MakerNote::tagListIi     },
         { nikonAfId,       "Makernote", "NikonAf",      Nikon3MakerNote::tagListAf     },
         { nikonAf2Id,      "Makernote", "NikonAf2",     Nikon3MakerNote::tagListAf2    },
+        { nikonAFTId,      "Makernote", "NikonAFT",     Nikon3MakerNote::tagListAFT    },
         { nikonFiId,       "Makernote", "NikonFi",      Nikon3MakerNote::tagListFi     },
         { nikonMeId,       "Makernote", "NikonMe",      Nikon3MakerNote::tagListMe     },
         { nikonFl1Id,      "Makernote", "NikonFl1",     Nikon3MakerNote::tagListFl1    },
diff --git a/src/tags_int.hpp b/src/tags_int.hpp
index 718e829..a3ffc2e 100644
--- a/src/tags_int.hpp
+++ b/src/tags_int.hpp
@@ -98,6 +98,7 @@ namespace Exiv2 {
         nikonIiId,
         nikonAfId,
         nikonAf2Id,
+        nikonAFTId,
         nikonFiId,
         nikonMeId,
         nikonFl1Id,
diff --git a/src/tiffimage.cpp b/src/tiffimage.cpp
index 594b017..7e94aea 100644
--- a/src/tiffimage.cpp
+++ b/src/tiffimage.cpp
@@ -536,6 +536,24 @@ namespace Exiv2 {
         { 26, ttUnsignedShort, 1 }, // AFAreaHeight
         { 28, ttUnsignedShort, 1 }, // ContrastDetectAFInFocus
     };
+    
+    //! Nikon AF Fine Tune binary array - configuration
+    extern const ArrayCfg nikonAFTCfg = {
+        nikonAFTId,       // Group for the elements
+        littleEndian,     // Byte order
+        ttUndefined,      // Type for array entry
+        notEncrypted,     // Not encrypted
+        false,            // No size element
+        true,             // Write all tags
+        true,             // Concatenate gaps
+        { 0, ttUnsignedByte,  1 }
+    };
+    //! Nikon AF Fine Tune binary array - definition
+    extern const ArrayDef nikonAFTDef[] = {
+        {  0, ttUnsignedByte,  1 }, // AF Fine Tune on/off
+        {  1, ttUnsignedByte,  1 }, // AF Fine Tune index
+        {  2, ttUnsignedByte,  1 }  // AF Fine Tune value
+    };
 
     //! Nikon File Info binary array - configuration
     extern const ArrayCfg nikonFiCfg = {
@@ -1183,6 +1201,7 @@ namespace Exiv2 {
         { Tag::root, nikonMeId,        nikon3Id,         0x00b0    },
         { Tag::root, nikonAf2Id,       nikon3Id,         0x00b7    },
         { Tag::root, nikonFiId,        nikon3Id,         0x00b8    },
+        { Tag::root, nikonAFTId,       nikon3Id,         0x00b9    },
         { Tag::root, nikonFl1Id,       nikon3Id,         0x00a8    },
         { Tag::root, nikonFl2Id,       nikon3Id,         0x00a8    },
         { Tag::root, nikonFl3Id,       nikon3Id,         0x00a8    },
@@ -1516,6 +1535,7 @@ namespace Exiv2 {
         {    0x00b0, nikon3Id,         EXV_BINARY_ARRAY(nikonMeCfg, nikonMeDef)  },
         {    0x00b7, nikon3Id,         EXV_BINARY_ARRAY(nikonAf2Cfg, nikonAf2Def)},
         {    0x00b8, nikon3Id,         EXV_BINARY_ARRAY(nikonFiCfg, nikonFiDef)  },
+        {    0x00b9, nikon3Id,         EXV_BINARY_ARRAY(nikonAFTCfg, nikonAFTDef)  },
         {  Tag::all, nikon3Id,         newTiffEntry                              },
 
         // Nikon3 makernote preview subdir
@@ -1542,6 +1562,9 @@ namespace Exiv2 {
         // Nikon3 auto focus 2
         {  Tag::all, nikonAf2Id,       newTiffBinaryElement                      },
         
+        // Nikon3 AF Fine Tune
+        {  Tag::all, nikonAFTId,       newTiffBinaryElement                      },
+        
         // Nikon3 file info
         {  Tag::all, nikonFiId,        newTiffBinaryElement                      },
 

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list