|
|
@ -17,15 +17,7 @@
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
|
|
|
|
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
/*
|
|
|
|
|
|
|
|
Abstract: Command line program to display and manipulate image metadata.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
File: exiv2.cpp
|
|
|
|
|
|
|
|
Author(s): Andreas Huggel (ahu) <ahuggel@gmx.net>
|
|
|
|
|
|
|
|
History: 10-Dec-03, ahu: created
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
// *****************************************************************************
|
|
|
|
|
|
|
|
// included header files
|
|
|
|
|
|
|
|
#include <exiv2/exiv2.hpp>
|
|
|
|
#include <exiv2/exiv2.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
// include local header files which are not part of libexiv2
|
|
|
|
// include local header files which are not part of libexiv2
|
|
|
@ -128,6 +120,9 @@ int main(int argc, char* const argv[])
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Exiv2::XmpParser::initialize();
|
|
|
|
Exiv2::XmpParser::initialize();
|
|
|
|
::atexit(Exiv2::XmpParser::terminate);
|
|
|
|
::atexit(Exiv2::XmpParser::terminate);
|
|
|
|
|
|
|
|
#ifdef EXV_ENABLE_BMFF
|
|
|
|
|
|
|
|
Exiv2::enableBMFF();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef EXV_ENABLE_NLS
|
|
|
|
#ifdef EXV_ENABLE_NLS
|
|
|
|
setlocale(LC_ALL, "");
|
|
|
|
setlocale(LC_ALL, "");
|
|
|
@ -136,10 +131,6 @@ int main(int argc, char* const argv[])
|
|
|
|
textdomain(EXV_PACKAGE_NAME);
|
|
|
|
textdomain(EXV_PACKAGE_NAME);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef EXV_ENABLE_BMFF
|
|
|
|
|
|
|
|
Exiv2::enableBMFF();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Handle command line arguments
|
|
|
|
// Handle command line arguments
|
|
|
|
Params& params = Params::instance();
|
|
|
|
Params& params = Params::instance();
|
|
|
|
if (params.getopt(argc, argv)) {
|
|
|
|
if (params.getopt(argc, argv)) {
|
|
|
|