Exiv2
Loading...
Searching...
No Matches
convert.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2
13#ifndef CONVERT_HPP_
14#define CONVERT_HPP_
15
16#include "exiv2lib_export.h"
17
18// included header files
19#include "config.h"
20
21// + standard includes
22#include <string>
23
24// *****************************************************************************
25// namespace extensions
26namespace Exiv2 {
27// *****************************************************************************
28// class declarations
29class ExifData;
30class IptcData;
31class XmpData;
32
33// *****************************************************************************
34// free functions, template and inline definitions
35
37EXIV2API void copyExifToXmp(const ExifData& exifData, XmpData& xmpData);
39EXIV2API void moveExifToXmp(ExifData& exifData, XmpData& xmpData);
40
42EXIV2API void copyXmpToExif(const XmpData& xmpData, ExifData& exifData);
44EXIV2API void moveXmpToExif(XmpData& xmpData, ExifData& exifData);
45
47EXIV2API void syncExifWithXmp(ExifData& exifData, XmpData& xmpData);
48
50EXIV2API void copyIptcToXmp(const IptcData& iptcData, XmpData& xmpData, const char* iptcCharset = nullptr);
52EXIV2API void moveIptcToXmp(IptcData& iptcData, XmpData& xmpData, const char* iptcCharset = nullptr);
53
55EXIV2API void copyXmpToIptc(const XmpData& xmpData, IptcData& iptcData);
57EXIV2API void moveXmpToIptc(XmpData& xmpData, IptcData& iptcData);
58
93EXIV2API bool convertStringCharset(std::string& str, const char* from, const char* to);
94
95} // namespace Exiv2
96
97#endif // #ifndef CONVERT_HPP_
Class CrwImage to access Canon CRW images. References: The Canon RAW (CRW) File Format by Phil Harv...
Definition asfvideo.hpp:15
EXIV2API void moveXmpToIptc(XmpData &xmpData, IptcData &iptcData)
Convert (move) XMP properties to IPTC tags, remove converted XMP properties.
Definition convert.cpp:1383
EXIV2API void copyXmpToIptc(const XmpData &xmpData, IptcData &iptcData)
Convert (copy) XMP properties to IPTC datasets.
Definition convert.cpp:1377
EXIV2API bool convertStringCharset(std::string &str, const char *from, const char *to)
Convert character encoding of str from from to to. If the function succeeds, str contains the result ...
Definition convert.cpp:1389
EXIV2API void moveIptcToXmp(IptcData &iptcData, XmpData &xmpData, const char *iptcCharset=nullptr)
Convert (move) IPTC datasets to XMP properties, remove converted IPTC datasets.
Definition convert.cpp:1367
EXIV2API void syncExifWithXmp(ExifData &exifData, XmpData &xmpData)
Detect which metadata are newer and perform a copy in appropriate direction.
Definition convert.cpp:1351
EXIV2API void copyXmpToExif(const XmpData &xmpData, ExifData &exifData)
Convert (copy) XMP properties to Exif tags.
Definition convert.cpp:1339
EXIV2API void moveExifToXmp(ExifData &exifData, XmpData &xmpData)
Convert (move) Exif tags to XMP properties, remove converted Exif tags.
Definition convert.cpp:1333
EXIV2API void copyExifToXmp(const ExifData &exifData, XmpData &xmpData)
Convert (copy) Exif tags to XMP properties.
Definition convert.cpp:1325
EXIV2API void moveXmpToExif(XmpData &xmpData, ExifData &exifData)
Convert (move) XMP properties to Exif tags, remove converted XMP properties.
Definition convert.cpp:1345
EXIV2API void copyIptcToXmp(const IptcData &iptcData, XmpData &xmpData, const char *iptcCharset=nullptr)
Convert (copy) IPTC datasets to XMP properties.
Definition convert.cpp:1356