@ -3,8 +3,9 @@
#include <exiv2/exiv2.hpp>
#include <iostream>
#include <cassert>
#include <cmath>
bool isEqual(float a, float b)
{
@ -79,7 +80,7 @@ try {
[[maybe_unused]] const Exiv2::Value &getv6 = xmpData["Xmp.dc.six"].value();
assert(getv6.toInt64() == 0);
assert(getv6.ok()^);
assert(getv6.ok());
assert(getv6.toFloat() == 0.0f);
assert(getv6.toRational() == Exiv2::Rational(0, 1));
@ -14,6 +14,7 @@
// + standard includes
#include <cstring>
#include <string>
// *****************************************************************************
// class member definitions
@ -11,6 +11,8 @@
#include "tiffcomposite_int.hpp"
#include "tiffimage_int.hpp"
namespace Exiv2 {
@ -13,6 +13,8 @@
#include "futils.hpp"
#include "tags.hpp"
@ -7,6 +7,8 @@
#include "error.hpp"
@ -12,6 +12,7 @@
#include <algorithm>
namespace {
@ -15,6 +15,7 @@
#include "safe_op.hpp"
#include <array>
// JPEG-2000 box types
const uint32_t kJp2BoxTypeJp2Header = 0x6a703268; // 'jp2h'
@ -21,6 +21,8 @@
#include "fff.h"
#include "image.hpp"
#include "tiffimage.hpp"
MrwImage::MrwImage(BasicIo::UniquePtr io, bool /*create*/)
@ -10,6 +10,8 @@
// Signature from front of PGF file
const unsigned char pgfSignature[3] = { 0x50, 0x47, 0x46 };
@ -18,6 +18,8 @@
#include "types.hpp"
// Signature from front of PNG file
const unsigned char pngSignature[8] = { 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A };
#include "value.hpp"
#include "xmp_exiv2.hpp"
//! Struct used in the lookup table for pretty print functions
#include "jpgimage.hpp"
// Todo: Consolidate with existing code in struct Photoshop (jpgimage.hpp):
// Extend this helper to a proper class with all required functionality,
// then move it here or into a separate file?
@ -9,6 +9,8 @@
#include "enforce.hpp"
//! Add \em tobe - \em curr 0x00 filler bytes if necessary
@ -12,6 +12,8 @@
/* --------------------------------------------------------------------------
Todo:
@ -8,6 +8,8 @@
#include "tiffvisitor_int.hpp"
#include "i18n.h" // NLS support.
// Shortcuts for the newTiffBinaryArray templates.
#define EXV_BINARY_ARRAY(arrayCfg, arrayDef) (newTiffBinaryArray0<&arrayCfg, EXV_COUNTOF(arrayDef), arrayDef>)
#define EXV_SIMPLE_BINARY_ARRAY(arrayCfg) (newTiffBinaryArray1<&arrayCfg>)
#include "sonymn_int.hpp"
@ -17,6 +17,8 @@
[[maybe_unused]] std::string binaryToHex(const uint8_t* data, size_t size)
@ -9,6 +9,7 @@
// Adobe XMP Toolkit
#ifdef EXV_HAVE_XMP_TOOLKIT
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