aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/exiv2wrapper.cpp26
-rw-r--r--src/exiv2wrapper.hpp11
-rw-r--r--src/exiv2wrapper_python.cpp6
3 files changed, 6 insertions, 37 deletions
diff --git a/src/exiv2wrapper.cpp b/src/exiv2wrapper.cpp
index 156a706..2aecf8d 100644
--- a/src/exiv2wrapper.cpp
+++ b/src/exiv2wrapper.cpp
@@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
*/
/*
- File: exiv2wrapper.cpp
- Author(s): Olivier Tilloy <olivier@tilloy.net>
+ Author: Olivier Tilloy <olivier@tilloy.net>
*/
// *****************************************************************************
@@ -381,25 +380,7 @@ boost::python::tuple Image::getXmpTag(std::string key)
}
}
-/*boost::python::tuple Image::tagDetails(std::string key)
-{
- std::string keyFamily = key.substr(0, 4);
- if (keyFamily == "Exif")
- {
- Exiv2::ExifKey exifKey = Exiv2::ExifKey(key);
- std::string tagLabel = exifKey.tagLabel();
- std::string tagDesc = std::string(Exiv2::ExifTags::tagDesc(exifKey.tag(), exifKey.ifdId()));
- return boost::python::make_tuple(tagLabel, tagDesc);
- }
- else if (keyFamily == "Iptc")
- {
- Exiv2::IptcKey iptcKey = Exiv2::IptcKey(key);
- std::string tagLabel = iptcKey.tagLabel();
- std::string tagDesc = std::string(Exiv2::IptcDataSets::dataSetDesc(iptcKey.tag(), iptcKey.record()));
- return boost::python::make_tuple(tagLabel, tagDesc);
- }
-}
-
+/*
boost::python::tuple Image::getThumbnailData()
{
if(_dataRead)
@@ -472,7 +453,8 @@ void Image::setThumbnailFromJpegFile(const std::string path)
}
else
throw Exiv2::Error(METADATA_NOT_READ);
-}*/
+}
+*/
void translateExiv2Error(Exiv2::Error const& error)
{
diff --git a/src/exiv2wrapper.hpp b/src/exiv2wrapper.hpp
index f26f9be..df098aa 100644
--- a/src/exiv2wrapper.hpp
+++ b/src/exiv2wrapper.hpp
@@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
*/
/*
- File: exiv2wrapper.hpp
- Author(s): Olivier Tilloy <olivier@tilloy.net>
+ Author: Olivier Tilloy <olivier@tilloy.net>
*/
// *****************************************************************************
@@ -68,11 +67,6 @@ public:
// tagvalue (human-readable)
boost::python::tuple getExifTag(std::string key);
- // Return a human-readable string containing the value of the
- // required EXIF tag.
- // Throw an exception if the tag is not set.
- //std::string getExifTagToString(std::string key);
-
// Set the EXIF tag's value and return a tuple containing the
// type and previous value of the tag (empty strings if not previously
// set). If the tag was not previously set, it is created.
@@ -131,9 +125,6 @@ public:
// tagvalue (list)
boost::python::tuple getXmpTag(std::string key);
- // Return a tuple containing the name of the tag and its description.
- //boost::python::tuple tagDetails(std::string key);
-
// Read and write access to the thumbnail embedded in the image.
// Return a tuple containing the format of the thumbnail ("TIFF" or
diff --git a/src/exiv2wrapper_python.cpp b/src/exiv2wrapper_python.cpp
index 7d6867b..cd22f38 100644
--- a/src/exiv2wrapper_python.cpp
+++ b/src/exiv2wrapper_python.cpp
@@ -19,8 +19,7 @@
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
*/
/*
- File: exiv2wrapper_python.cpp
- Author(s): Olivier Tilloy <olivier@tilloy.net>
+ Author: Olivier Tilloy <olivier@tilloy.net>
*/
// *****************************************************************************
@@ -55,7 +54,6 @@ BOOST_PYTHON_MODULE(libexiv2python)
.def("exifKeys", &Image::exifKeys)
.def("getExifTag", &Image::getExifTag)
-// .def("_Image__getExifTagToString", &Image::getExifTagToString)
// .def("_Image__setExifTag", &Image::setExifTag)
// .def("_Image__deleteExifTag", &Image::deleteExifTag)
@@ -67,8 +65,6 @@ BOOST_PYTHON_MODULE(libexiv2python)
.def("xmpKeys", &Image::xmpKeys)
.def("getXmpTag", &Image::getXmpTag)
-// .def("tagDetails", &Image::tagDetails)
-
// .def("getThumbnailData", &Image::getThumbnailData)
// .def("setThumbnailData", &Image::setThumbnailData)
// .def("deleteThumbnail", &Image::deleteThumbnail)