Author: post
Date: 2011-02-26 17:04:18 +0100 (Sat, 26 Feb 2011)
New Revision: 3832
Modified:
trunk/plugins/meta-exiv2/exiv2-metadata.cpp
Log:
Extract lens information in the native type.
Modified: trunk/plugins/meta-exiv2/exiv2-metadata.cpp
===================================================================
--- trunk/plugins/meta-exiv2/exiv2-metadata.cpp 2011-02-26 15:15:08 UTC (rev
3831)
+++ trunk/plugins/meta-exiv2/exiv2-metadata.cpp 2011-02-26 16:04:18 UTC (rev
3832)
@@ -178,7 +178,13 @@
/* Text based Lens Identifier */
i = lensName(exifData);
if (i != exifData.end())
- meta->fixed_lens_identifier =
g_strdup(i->toString().c_str());
+ {
+ TypeId type = i->typeId();
+ if (type == unsignedShort || type ==
unsignedLong || type == signedShort || type == signedLong || type ==
unsignedByte || type == signedByte)
+ meta->lens_id = i->toLong();
+ else if (type == asciiString || type == string)
+ meta->fixed_lens_identifier =
g_strdup(i->toString().c_str());
+ }
#endif
/* TODO: Add min/max focal on supported cameras */
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit