| 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
26 namespace Exiv2 {
27// *****************************************************************************
28// class declarations
29 class ExifData;
30 class IptcData;
31 class 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_
Exiv2::ExifData
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds Exifda...
Definition exif.hpp:379
Exiv2::IptcData
A container for IPTC data. This is a top-level class of the Exiv2 library.
Definition iptc.hpp:153
Exiv2::XmpData
A container for XMP data. This is a top-level class of the Exiv2 library.
Definition xmp_exiv2.hpp:138
Exiv2
Class CrwImage to access Canon CRW images. References: The Canon RAW (CRW) File Format by Phil Harv...
Definition asfvideo.hpp:15
Exiv2::moveXmpToIptc
EXIV2API void moveXmpToIptc(XmpData &xmpData, IptcData &iptcData)
Convert (move) XMP properties to IPTC tags, remove converted XMP properties.
Definition convert.cpp:1383
Exiv2::copyXmpToIptc
EXIV2API void copyXmpToIptc(const XmpData &xmpData, IptcData &iptcData)
Convert (copy) XMP properties to IPTC datasets.
Definition convert.cpp:1377
Exiv2::convertStringCharset
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
Exiv2::moveIptcToXmp
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
Exiv2::syncExifWithXmp
EXIV2API void syncExifWithXmp(ExifData &exifData, XmpData &xmpData)
Detect which metadata are newer and perform a copy in appropriate direction.
Definition convert.cpp:1351
Exiv2::copyXmpToExif
EXIV2API void copyXmpToExif(const XmpData &xmpData, ExifData &exifData)
Convert (copy) XMP properties to Exif tags.
Definition convert.cpp:1339
Exiv2::moveExifToXmp
EXIV2API void moveExifToXmp(ExifData &exifData, XmpData &xmpData)
Convert (move) Exif tags to XMP properties, remove converted Exif tags.
Definition convert.cpp:1333
Exiv2::copyExifToXmp
EXIV2API void copyExifToXmp(const ExifData &exifData, XmpData &xmpData)
Convert (copy) Exif tags to XMP properties.
Definition convert.cpp:1325
Exiv2::moveXmpToExif
EXIV2API void moveXmpToExif(XmpData &xmpData, ExifData &exifData)
Convert (move) XMP properties to Exif tags, remove converted XMP properties.
Definition convert.cpp:1345
Exiv2::copyIptcToXmp
EXIV2API void copyIptcToXmp(const IptcData &iptcData, XmpData &xmpData, const char *iptcCharset=nullptr)
Convert (copy) IPTC datasets to XMP properties.
Definition convert.cpp:1356