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

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:46:07 UTC 2017


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

The following commit has been merged in the master branch:
commit e07eecd689347c300b13ff13181d2382a9183a24
Author: Robin Mills <robin at clanmills.com>
Date:   Sun Dec 20 21:31:41 2015 +0000

    #816.  Fix for Pentax K-3 Camera.
---
 src/pentaxmn.cpp            |  12 +++++++++---
 test/bugfixes-test.sh       |   2 +-
 test/data/bugfixes-test.out | Bin 1844671 -> 1845112 bytes
 test/data/exiv2-bug816e.exv | Bin 0 -> 19049 bytes
 4 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/pentaxmn.cpp b/src/pentaxmn.cpp
index 097330d..dd3f1d4 100644
--- a/src/pentaxmn.cpp
+++ b/src/pentaxmn.cpp
@@ -1181,10 +1181,16 @@ namespace Exiv2 {
             } else if ( value.count() == 3 ) {
                 // http://dev.exiv2.org/attachments/download/858/_IGP9032.DNG
                 // $ exiv2 -pv --grep Lens ~/Downloads/_IGP9032.DNG
-                // 0x003f PentaxDng    LensType  Byte        3    3 255 0
-                // 0x0207 PentaxDng    LensInfo  Undefined  69  131   0 0 255 0 40 148 68 244 ...
-                //                                                0   1 2   3 4  5   6
+                // 0x003f PentaxDng    LensType  Byte        3    3 255   0
+                // 0x0207 PentaxDng    LensInfo  Undefined  69  131   0   0 255 0  40 148  68 244 ...
+                //                                                0   1   2   3 4   5   6
                 if ( lensInfo->toLong(4) == 0 && lensInfo->toLong(5) == 40 && lensInfo->toLong(6) == 148 ) index = 8;
+
+            } else if ( value.count() == 4 ) {
+				// http://dev.exiv2.org/attachments/download/868/IMGP2221.JPG
+                // 0x0207 PentaxDng    LensInfo  Undefined 128    0 131 128   0 0 255   1 184   0 0 0 0 0
+                //                                                    0   1   2   3 4   5   6
+                if ( lensInfo->count() == 128 && lensInfo->toLong(1) == 131 && lensInfo->toLong(2) == 128 ) index = 8;
             }
 
             if ( index > 0 )  {
diff --git a/test/bugfixes-test.sh b/test/bugfixes-test.sh
index b110e96..4becf91 100755
--- a/test/bugfixes-test.sh
+++ b/test/bugfixes-test.sh
@@ -222,7 +222,7 @@ source ./functions.source
 	num=816 # test Camera: Pentax + Lens:Sigma 55-200mm F4-5.6 DC is correctly reported
 	printf "$num " >&3
 	echo '------>' Bug $num '<-------' >&2
-	for X in a b c d; do
+	for X in a b c d e; do
 		filename=exiv2-bug${num}${X}.exv
 		copyTestFile $filename
 		runTest exiv2 -pa --grep Lens $filename
diff --git a/test/data/bugfixes-test.out b/test/data/bugfixes-test.out
index d689033..62add72 100644
Binary files a/test/data/bugfixes-test.out and b/test/data/bugfixes-test.out differ
diff --git a/test/data/exiv2-bug816e.exv b/test/data/exiv2-bug816e.exv
new file mode 100644
index 0000000..1f7a1af
Binary files /dev/null and b/test/data/exiv2-bug816e.exv differ

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list