Removing unused headers thanks to IWYU

main
Luis Díaz Más 3 years ago
parent 22064c957d
commit b3a216310a

@ -1,49 +1,39 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
// included header files // included header files
#include "config.h"
#include "app_utils.hpp"
#include "actions.hpp" #include "actions.hpp"
#include "exiv2app.hpp"
#include "image.hpp" #include "app_utils.hpp"
#include "jpgimage.hpp" #include "config.h"
#include "xmpsidecar.hpp"
#include "types.hpp"
#include "exif.hpp"
#include "easyaccess.hpp" #include "easyaccess.hpp"
#include "exif.hpp"
#include "futils.hpp"
#include "i18n.h" // NLS support.
#include "image.hpp"
#include "iptc.hpp" #include "iptc.hpp"
#include "xmp_exiv2.hpp"
#include "preview.hpp" #include "preview.hpp"
#include "futils.hpp" #include "types.hpp"
#include "i18n.h" // NLS support. #include "xmp_exiv2.hpp"
// + standard includes // + standard includes
#include <sys/stat.h> // for stat()
#include <sys/types.h> // for stat()
#include <filesystem> #include <filesystem>
#include <string>
#include <iostream>
#include <iomanip>
#include <fstream> #include <fstream>
#include <sstream> #include <iomanip>
#include <cstring> #include <iostream>
#include <cstdio>
#include <ctime>
#include <cmath>
#include <cassert>
#include <mutex> #include <mutex>
#include <stdexcept> #include <sstream>
#include <sys/types.h> // for stat()
#include <sys/stat.h> // for stat()
#ifdef EXV_HAVE_UNISTD_H #ifdef EXV_HAVE_UNISTD_H
# include <unistd.h> // for stat() #include <unistd.h> // for stat()
#endif #endif
#if defined(_WIN32) || defined(__CYGWIN__) #if defined(_WIN32) || defined(__CYGWIN__)
# include <sys/utime.h>
#include <Windows.h> #include <Windows.h>
#include <fcntl.h> #include <fcntl.h>
#include <io.h> #include <io.h>
#include <sys/utime.h>
#else #else
#include <utime.h> #include <utime.h>
#endif #endif

@ -12,7 +12,6 @@
#define ACTIONS_HPP_ #define ACTIONS_HPP_
// ***************************************************************************** // *****************************************************************************
// included header files
#include "exiv2app.hpp" #include "exiv2app.hpp"
#include <unordered_map> #include <unordered_map>

@ -8,7 +8,6 @@
#include "exiv2app.hpp" #include "exiv2app.hpp"
#include "convert.hpp" #include "convert.hpp"
#include "futils.hpp"
#include "getopt.hpp" #include "getopt.hpp"
#include "i18n.h" // NLS support. #include "i18n.h" // NLS support.
#include "xmp_exiv2.hpp" #include "xmp_exiv2.hpp"

@ -1,17 +1,12 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
// included header files // included header files
#include <assert.h>
#include <errno.h>
#include <filesystem>
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include "getopt.hpp" #include "getopt.hpp"
#include <cstdio>
#include <cstring>
#include <filesystem>
namespace fs = std::filesystem; namespace fs = std::filesystem;
namespace Util { namespace Util {

@ -21,8 +21,6 @@
#ifndef GETOPT_H #ifndef GETOPT_H
#define GETOPT_H #define GETOPT_H
#include <ctype.h>
#include <stdio.h>
#include <string> #include <string>
namespace Util { namespace Util {

@ -11,10 +11,7 @@
// + standard includes // + standard includes
#include <algorithm> #include <algorithm>
#include <limits>
#include <sstream> #include <sstream>
#include <string>
#include <vector>
/*! /*!
@brief Macro to make calls to member functions through a pointer more readable. @brief Macro to make calls to member functions through a pointer more readable.
@ -26,8 +23,6 @@
#define EXV_CALL_MEMBER_FN(object, ptrToMember) ((object).*(ptrToMember)) #define EXV_CALL_MEMBER_FN(object, ptrToMember) ((object).*(ptrToMember))
// ***************************************************************************** // *****************************************************************************
// forward declarations
struct tm;
// ***************************************************************************** // *****************************************************************************
// namespace extensions // namespace extensions

@ -21,8 +21,8 @@
// Sample program showing how to add, modify and delete Exif metadata. // Sample program showing how to add, modify and delete Exif metadata.
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <iostream> #include <iostream>
#include <iomanip>
#include <cassert> #include <cassert>
int main(int argc, char* const argv[]) int main(int argc, char* const argv[])

@ -21,8 +21,8 @@
// Conversion test driver - make sure you have a copy of the input file around! // Conversion test driver - make sure you have a copy of the input file around!
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <iostream> #include <iostream>
#include <iomanip>
#include <cassert> #include <cassert>
int main(int argc, char* const argv[]) int main(int argc, char* const argv[])

@ -21,8 +21,8 @@
// Sample program to format exif data in various external formats // Sample program to format exif data in various external formats
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <iostream> #include <iostream>
#include <iomanip>
#include <cassert> #include <cassert>
#include <string> #include <string>

@ -21,10 +21,9 @@
// Sample program to print value of an exif key in an image // Sample program to print value of an exif key in an image
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <iostream> #include <iostream>
#include <iomanip>
#include <cassert> #include <cassert>
#include <string>
int main(int argc, char* const argv[]) int main(int argc, char* const argv[])
{ {

@ -21,25 +21,20 @@
// Sample program to print metadata in JSON format // Sample program to print metadata in JSON format
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include "Jzon.h"
#include <filesystem> #include <sys/stat.h>
#include <iostream>
#include <iomanip>
#include <cassert> #include <cassert>
#include <string>
#include <map>
#include <vector>
#include <set>
#include <cstdlib> #include <cstdlib>
#include <limits.h> #include <filesystem>
#include <sys/types.h> #include <iostream>
#include <sys/stat.h>
#include "Jzon.h"
#if defined(__MINGW32__) || defined(__MINGW64__) #if defined(__MINGW32__) || defined(__MINGW64__)
# ifndef __MINGW__ #ifndef __MINGW__
# define __MINGW__ #define __MINGW__
# endif #endif
#endif #endif
struct Token { struct Token {

@ -22,24 +22,17 @@
// g++ geotag.cpp -o geotag -lexiv2 -lexpat // g++ geotag.cpp -o geotag -lexiv2 -lexpat
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <expat.h>
#include <filesystem>
#include <iostream>
#include <iomanip>
#include <cassert>
#include <algorithm>
#include <stdio.h> #include <stdio.h>
#include <cstdlib>
#include <time.h>
#include <string.h> #include <string.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <time.h>
#include <expat.h> #include <algorithm>
#include <filesystem>
#include <vector> #include <iostream>
#include <string>
#if defined(__MINGW32__) || defined(__MINGW64__) #if defined(__MINGW32__) || defined(__MINGW64__)
# ifndef __MINGW__ # ifndef __MINGW__

@ -48,8 +48,6 @@
#include <unistd.h> #include <unistd.h>
#endif #endif
#include <iostream> #include <iostream>
#include <iomanip>
#include <cassert>
#define Safe(x) (x?x:"unknown") #define Safe(x) (x?x:"unknown")
const char* optstring = ":hVvqfbuktTFa:Y:O:D:r:p:P:d:e:i:c:m:M:l:S:g:K:n:Q:"; const char* optstring = ":hVvqfbuktTFa:Y:O:D:r:p:P:d:e:i:c:m:M:l:S:g:K:n:Q:";

@ -20,10 +20,8 @@
// ***************************************************************************** // *****************************************************************************
// included header files // included header files
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <cstdio> // for EOF
#include <cstring>
#include <iostream> #include <iostream>
#include <stdio.h>
using Exiv2::byte; using Exiv2::byte;
using Exiv2::BasicIo; using Exiv2::BasicIo;

@ -21,9 +21,8 @@
*/ */
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <iostream> #include <iostream>
#include <iomanip>
#include <cassert>
int main(int argc, char* const argv[]) int main(int argc, char* const argv[])
try { try {

@ -21,9 +21,8 @@
// Sample program to print the IPTC metadata of an image // Sample program to print the IPTC metadata of an image
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <iostream> #include <iostream>
#include <iomanip>
#include <cassert>
int main(int argc, char* const argv[]) int main(int argc, char* const argv[])
try { try {

@ -19,9 +19,8 @@
*/ */
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <iostream> #include <iostream>
#include <iomanip>
#include <cassert>
using namespace Exiv2; using namespace Exiv2;

@ -19,9 +19,8 @@
*/ */
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <iostream> #include <iostream>
#include <string>
#include <cstring>
using namespace Exiv2; using namespace Exiv2;

@ -19,7 +19,6 @@
*/ */
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <iostream> #include <iostream>
#include <fstream>
#include <cassert> #include <cassert>
// include local header files which are not part of libexiv2 // include local header files which are not part of libexiv2

@ -21,8 +21,8 @@
*/ */
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <iostream> #include <iostream>
#include <cstring>
using namespace Exiv2; using namespace Exiv2;

@ -20,11 +20,10 @@
*/ */
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <filesystem> #include <filesystem>
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>
#include <sstream>
#include <string>
namespace fs = std::filesystem; namespace fs = std::filesystem;

@ -21,9 +21,8 @@
*/ */
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <string>
#include <iostream> #include <iostream>
#include <cassert>
int main(int argc, char* const argv[]) int main(int argc, char* const argv[])
try { try {

@ -21,8 +21,8 @@
*/ */
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <iostream> #include <iostream>
#include <iomanip>
static constexpr const char* testcases[] = { static constexpr const char* testcases[] = {
// bool // bool

@ -19,9 +19,8 @@
*/ */
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <iostream> #include <iostream>
#include <string>
#include <sstream>
using namespace Exiv2; using namespace Exiv2;

@ -19,12 +19,8 @@
*/ */
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <iostream> #include <iostream>
#include <sstream>
#include <iomanip>
#include <string>
#include <utility>
#include <cassert>
// ***************************************************************************** // *****************************************************************************
// local declarations // local declarations

@ -22,10 +22,7 @@
#include <exiv2/exiv2.hpp> #include <exiv2/exiv2.hpp>
#include <string>
#include <iostream> #include <iostream>
#include <iomanip>
#include <cassert>
#include <cmath> #include <cmath>
bool isEqual(float a, float b) bool isEqual(float a, float b)

@ -1,23 +1,17 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
// included header files // included header files
#include "config.h"
#include "orfimage.hpp" #include "orfimage.hpp"
#include "orfimage_int.hpp"
#include "tiffimage.hpp"
#include "tiffcomposite_int.hpp"
#include "tiffimage_int.hpp"
#include "image.hpp"
#include "basicio.hpp" #include "basicio.hpp"
#include "config.h"
#include "error.hpp" #include "error.hpp"
#include "futils.hpp" #include "futils.hpp"
#include "image.hpp"
// + standard includes #include "orfimage_int.hpp"
#include <string> #include "tiffcomposite_int.hpp"
#include <cstring> #include "tiffimage.hpp"
#include <iostream> #include "tiffimage_int.hpp"
#include <cassert>
// ***************************************************************************** // *****************************************************************************
// class member definitions // class member definitions

@ -3,28 +3,21 @@
// included header files // included header files
#include "config.h" #include "config.h"
#ifdef EXV_HAVE_LIBZ #ifdef EXV_HAVE_LIBZ
#include "pngchunk_int.hpp" #include <zlib.h> // To uncompress IccProfiles
#include "pngimage.hpp"
#include "jpgimage.hpp"
#include "tiffimage.hpp"
#include "image.hpp"
#include "image_int.hpp"
#include "basicio.hpp" #include "basicio.hpp"
#include "error.hpp"
#include "enforce.hpp" #include "enforce.hpp"
#include "error.hpp"
#include "futils.hpp" #include "futils.hpp"
#include "image.hpp"
#include "image_int.hpp"
#include "jpgimage.hpp"
#include "pngchunk_int.hpp"
#include "pngimage.hpp"
#include "tiffimage.hpp"
#include "types.hpp" #include "types.hpp"
// + standard includes
#include <algorithm>
#include <array>
#include <string>
#include <cstring>
#include <iostream>
#include <cassert>
#include <zlib.h> // To uncompress IccProfiles
// Signature from front of PNG file // Signature from front of PNG file
const unsigned char pngSignature[8] = { 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A }; const unsigned char pngSignature[8] = { 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A };

@ -1,25 +1,19 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
// included header files // included header files
#include "config.h"
#include <algorithm>
#include <array>
#include <climits>
#include <string>
#include "preview.hpp" #include "preview.hpp"
#include "futils.hpp"
#include "enforce.hpp"
#include "safe_op.hpp"
#include "config.h"
#include "enforce.hpp"
#include "futils.hpp"
#include "image.hpp" #include "image.hpp"
#include "cr2image.hpp"
#include "jpgimage.hpp" #include "jpgimage.hpp"
#include "safe_op.hpp"
#include "tiffimage.hpp" #include "tiffimage.hpp"
#include "tiffimage_int.hpp" #include "tiffimage_int.hpp"
// ***************************************************************************** #include <climits>
namespace { namespace {
using namespace Exiv2; using namespace Exiv2;

@ -2,22 +2,15 @@
// included header files // included header files
#include "properties.hpp" #include "properties.hpp"
#include "tags_int.hpp"
#include "error.hpp" #include "error.hpp"
#include "i18n.h" // NLS support.
#include "metadatum.hpp"
#include "tags_int.hpp"
#include "types.hpp" #include "types.hpp"
#include "value.hpp" #include "value.hpp"
#include "metadatum.hpp"
#include "i18n.h" // NLS support.
#include "xmp_exiv2.hpp" #include "xmp_exiv2.hpp"
#include <iostream>
#include <iomanip>
#include <sstream>
#include <cstring>
#include <cstdlib>
#include <cctype>
// *****************************************************************************
namespace { namespace {
//! Struct used in the lookup table for pretty print functions //! Struct used in the lookup table for pretty print functions

@ -1,25 +1,15 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
// included header files // included header files
#include "config.h"
#include "psdimage.hpp" #include "psdimage.hpp"
#include "jpgimage.hpp"
#include "image.hpp"
#include "basicio.hpp" #include "basicio.hpp"
#include "config.h"
#include "enforce.hpp"
#include "error.hpp" #include "error.hpp"
#include "futils.hpp" #include "futils.hpp"
#include "image.hpp"
#include "safe_op.hpp" #include "jpgimage.hpp"
#include "enforce.hpp"
// + standard includes
#include <string>
#include <cstring>
#include <iostream>
#include <iomanip>
#include <cassert>
#include <memory>
// Todo: Consolidate with existing code in struct Photoshop (jpgimage.hpp): // Todo: Consolidate with existing code in struct Photoshop (jpgimage.hpp):
// Extend this helper to a proper class with all required functionality, // Extend this helper to a proper class with all required functionality,

@ -1,23 +1,17 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
// included header files // included header files
#include "config.h"
#include "rafimage.hpp" #include "rafimage.hpp"
#include "tiffimage.hpp"
#include "image_int.hpp"
#include "image.hpp"
#include "basicio.hpp" #include "basicio.hpp"
#include "config.h"
#include "enforce.hpp"
#include "error.hpp" #include "error.hpp"
#include "futils.hpp" #include "futils.hpp"
#include "enforce.hpp" #include "image.hpp"
#include "image_int.hpp"
#include "safe_op.hpp" #include "safe_op.hpp"
#include "tiffimage.hpp"
// +standard includes
#include <string>
#include <cstring>
#include <iostream>
#include <cassert>
// ***************************************************************************** // *****************************************************************************
// class member definitions // class member definitions

@ -1,20 +1,20 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
// included header files // included header files
#include "config.h"
#include "rw2image.hpp" #include "rw2image.hpp"
#include "config.h"
#include "error.hpp"
#include "futils.hpp"
#include "image.hpp"
#include "preview.hpp"
#include "rw2image_int.hpp" #include "rw2image_int.hpp"
#include "tiffcomposite_int.hpp" #include "tiffcomposite_int.hpp"
#include "tiffimage_int.hpp" #include "tiffimage_int.hpp"
#include "image.hpp"
#include "preview.hpp"
#include "error.hpp"
#include "futils.hpp"
// + standard includes // + standard includes
#ifdef EXIV2_DEBUG_MESSAGES #ifdef EXIV2_DEBUG_MESSAGES
# include <iostream> #include <iostream>
#endif #endif
// ***************************************************************************** // *****************************************************************************

@ -1,35 +1,15 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
// included header files // included header files
#include "types.hpp"
#include "tags.hpp" #include "tags.hpp"
#include "tags_int.hpp"
#include "error.hpp"
#include "futils.hpp"
#include "value.hpp"
#include "convert.hpp"
#include "i18n.h" // NLS support.
#include "canonmn_int.hpp" #include "canonmn_int.hpp"
#include "casiomn_int.hpp" #include "casiomn_int.hpp"
#include "fujimn_int.hpp" #include "convert.hpp"
#include "minoltamn_int.hpp" #include "error.hpp"
#include "nikonmn_int.hpp" #include "i18n.h" // NLS support.
#include "olympusmn_int.hpp" #include "tags_int.hpp"
#include "panasonicmn_int.hpp" #include "types.hpp"
#include "pentaxmn_int.hpp"
#include "samsungmn_int.hpp"
#include "sigmamn_int.hpp"
#include "sonymn_int.hpp"
#include <iostream>
#include <iomanip>
#include <sstream>
#include <utility>
#include <cstdlib>
#include <cassert>
#include <cmath>
#include <cstring>
// ***************************************************************************** // *****************************************************************************
// class member definitions // class member definitions

@ -1,18 +1,13 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
// included header files // included header files
#include "config.h"
#include "tgaimage.hpp" #include "tgaimage.hpp"
#include "image.hpp"
#include "basicio.hpp" #include "basicio.hpp"
#include "config.h"
#include "error.hpp" #include "error.hpp"
#include "futils.hpp" #include "futils.hpp"
#include "image.hpp"
// + standard includes
#include <string>
#include <cstring>
#include <iostream>
// ***************************************************************************** // *****************************************************************************
// class member definitions // class member definitions
@ -21,7 +16,7 @@ namespace Exiv2 {
TgaImage::TgaImage(BasicIo::UniquePtr io) TgaImage::TgaImage(BasicIo::UniquePtr io)
: Image(ImageType::tga, mdNone, std::move(io)) : Image(ImageType::tga, mdNone, std::move(io))
{ {
} // TgaImage::TgaImage }
std::string TgaImage::mimeType() const std::string TgaImage::mimeType() const
{ {

@ -1,29 +1,16 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
// included header files // included header files
#include "config.h"
#include "tiffimage.hpp" #include "tiffimage.hpp"
#include "tiffimage_int.hpp"
#include "tiffcomposite_int.hpp" #include "basicio.hpp"
#include "tiffvisitor_int.hpp" #include "config.h"
#include "orfimage.hpp"
#include "makernote_int.hpp"
#include "nikonmn_int.hpp"
#include "image.hpp"
#include "image_int.hpp"
#include "error.hpp" #include "error.hpp"
#include "futils.hpp" #include "futils.hpp"
#include "image.hpp"
#include "tiffcomposite_int.hpp"
#include "tiffimage_int.hpp"
#include "types.hpp" #include "types.hpp"
#include "basicio.hpp"
#include "i18n.h" // NLS support.
// + standard includes
#include <string>
#include <iostream>
#include <iomanip>
#include <cassert>
#include <cstdarg>
/* -------------------------------------------------------------------------- /* --------------------------------------------------------------------------

@ -2,26 +2,21 @@
// included header files // included header files
#include "types.hpp" #include "types.hpp"
#include "enforce.hpp" #include "enforce.hpp"
#include "futils.hpp" #include "futils.hpp"
#include "i18n.h" // for _exvGettext #include "i18n.h" // for _exvGettext
#include "safe_op.hpp" #include "safe_op.hpp"
// + standard includes // + standard includes
#include <string> #include <cassert>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <utility>
#include <cctype> #include <cctype>
#include <climits> #include <climits>
#include <ctime>
#include <cstdio>
#include <cstdlib>
#include <cassert>
#include <cstring>
#include <cmath> #include <cmath>
#include <math.h> #include <cstring>
#include <iomanip>
#include <sstream>
#include <utility>
// ***************************************************************************** // *****************************************************************************
namespace { namespace {

@ -2,21 +2,14 @@
// included header files // included header files
#include "value.hpp" #include "value.hpp"
#include "types.hpp"
#include "convert.hpp"
#include "enforce.hpp" #include "enforce.hpp"
#include "error.hpp" #include "error.hpp"
#include "convert.hpp" #include "types.hpp"
// + standard includes // + standard includes
#include <ctype.h>
#include <cassert>
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <regex> #include <regex>
#include <sstream> #include <sstream>

@ -6,7 +6,6 @@
#include <curl/curl.h> #include <curl/curl.h>
#endif #endif
#include "http.hpp"
#include "version.hpp" #include "version.hpp"
#include "makernote_int.hpp" #include "makernote_int.hpp"
#include "futils.hpp" #include "futils.hpp"
@ -20,7 +19,6 @@
#include <fstream> #include <fstream>
#include <regex> #include <regex>
#include <set> #include <set>
#include <sstream>
// #1147 // #1147
#ifndef WIN32 #ifndef WIN32

@ -6,31 +6,16 @@
*/ */
// included header files // included header files
#include "config.h"
#include "webpimage.hpp" #include "webpimage.hpp"
#include "image_int.hpp"
#include "enforce.hpp"
#include "futils.hpp"
#include "basicio.hpp" #include "basicio.hpp"
#include "tags.hpp" #include "config.h"
#include "tags_int.hpp"
#include "types.hpp"
#include "tiffimage.hpp"
#include "tiffimage_int.hpp"
#include "convert.hpp" #include "convert.hpp"
#include "enforce.hpp"
#include "futils.hpp"
#include "image_int.hpp"
#include "safe_op.hpp" #include "safe_op.hpp"
#include "types.hpp"
#include <cmath>
#include <iomanip>
#include <string>
#include <cstring>
#include <iostream>
#include <sstream>
#include <cassert>
#include <cstdio>
#define CHECK_BIT(var,pos) ((var) & (1<<(pos)))
namespace { namespace {
[[maybe_unused]] std::string binaryToHex(const uint8_t* data, size_t size) [[maybe_unused]] std::string binaryToHex(const uint8_t* data, size_t size)

@ -8,10 +8,7 @@
#include "properties.hpp" #include "properties.hpp"
// + standard includes // + standard includes
#include <iostream>
#include <algorithm> #include <algorithm>
#include <cassert>
#include <string>
// Adobe XMP Toolkit // Adobe XMP Toolkit
#ifdef EXV_HAVE_XMP_TOOLKIT #ifdef EXV_HAVE_XMP_TOOLKIT

@ -1,21 +1,14 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
#include "config.h"
#include "xmpsidecar.hpp" #include "xmpsidecar.hpp"
#include "image.hpp"
#include "basicio.hpp" #include "basicio.hpp"
#include "config.h"
#include "convert.hpp"
#include "error.hpp" #include "error.hpp"
#include "xmp_exiv2.hpp"
#include "futils.hpp" #include "futils.hpp"
#include "convert.hpp" #include "image.hpp"
#include "xmp_exiv2.hpp"
// + standard includes
#include <algorithm>
#include <string>
#include <iostream>
#include <cassert>
// *****************************************************************************
namespace { namespace {
constexpr auto xmlHeader = "<?xpacket begin=\"\xef\xbb\xbf\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n"; constexpr auto xmlHeader = "<?xpacket begin=\"\xef\xbb\xbf\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n";
const auto xmlHdrCnt = static_cast<long>(std::strlen(xmlHeader)); // without the trailing 0-character const auto xmlHdrCnt = static_cast<long>(std::strlen(xmlHeader)); // without the trailing 0-character

Loading…
Cancel
Save