Exiv2
|
Fix the character encoding of Exif UNICODE user comments. Decodes the comment using the auto-detected or specified character encoding and writes it back in UCS-2. More...
#include <actions.hpp>
Public Types | |
typedef std::auto_ptr< FixCom > | AutoPtr |
Shortcut for an auto pointer. | |
Public Member Functions | |
virtual int | run (const std::string &path) |
Application interface to perform a task. | |
AutoPtr | clone () const |
Virtual copy construction. |
Fix the character encoding of Exif UNICODE user comments. Decodes the comment using the auto-detected or specified character encoding and writes it back in UCS-2.
int Action::FixCom::run | ( | const std::string & | path | ) | [virtual] |
Application interface to perform a task.
path | Path of the file to process. |
Implements Action::Task.
References Exiv2::CommentValue::charsetId(), Exiv2::comment, Exiv2::CommentValue::comment(), Exiv2::ExifData::empty(), Exiv2::ExifData::end(), Exiv2::fileExists(), Exiv2::ExifData::findKey(), Params::instance(), Exiv2::CommentValue::CharsetInfo::name(), Exiv2::ImageFactory::open(), Exiv2::string, and Params::verbose_.