head 1.3; access; symbols pkgsrc-2026Q2:1.3.0.24 pkgsrc-2026Q2-base:1.3 pkgsrc-2026Q1:1.3.0.22 pkgsrc-2026Q1-base:1.3 pkgsrc-2025Q4:1.3.0.20 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.3.0.18 pkgsrc-2025Q3-base:1.3 pkgsrc-2025Q2:1.3.0.16 pkgsrc-2025Q2-base:1.3 pkgsrc-2025Q1:1.3.0.14 pkgsrc-2025Q1-base:1.3 pkgsrc-2024Q4:1.3.0.12 pkgsrc-2024Q4-base:1.3 pkgsrc-2024Q3:1.3.0.10 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.8 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.3.0.6 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.4 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.2 pkgsrc-2023Q3-base:1.3 pkgsrc-2020Q4:1.1.0.10 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.8 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.6 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.2 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.4 pkgsrc-2019Q4-base:1.1; locks; strict; comment @// @; 1.3 date 2023.07.19.08.05.51; author wiz; state Exp; branches; next 1.2; commitid FTmOhlpL7D6w3oxE; 1.2 date 2021.01.03.18.52.31; author adam; state dead; branches; next 1.1; commitid 3qrC4VrZ2RSIqjCC; 1.1 date 2019.12.22.22.26.32; author joerg; state Exp; branches; next ; commitid zdvjnfQTlQdvLKPB; desc @@ 1.3 log @luminance-hdr: fix build with exiv2 0.28 @ text @$NetBSD$ Fix build with exiv2 0.28. https://github.com/LuminanceHDR/LuminanceHDR/pull/273 --- src/Exif/ExifOperations.cpp.orig 2019-06-09 19:18:38.000000000 +0000 +++ src/Exif/ExifOperations.cpp @@@@ -108,7 +108,7 @@@@ void copyExifData(const std::string &fro #endif try { - Exiv2::Image::AutoPtr sourceImage; + Exiv2::Image::UniquePtr sourceImage; Exiv2::ExifData srcExifData; if (!from.empty()) { @@@@ -128,7 +128,7 @@@@ void copyExifData(const std::string &fro } // get destination exif data - Exiv2::Image::AutoPtr destinationImage = Exiv2::ImageFactory::open(to); + Exiv2::Image::UniquePtr destinationImage = Exiv2::ImageFactory::open(to); if (dontOverwrite) { // doesn't throw anything if it is empty @@@@ -212,7 +212,7 @@@@ void copyExifData(const std::string &fro destinationImage->setExifData(srcExifData); } destinationImage->writeMetadata(); - } catch (Exiv2::AnyError &e) { + } catch (Exiv2::Error &e) { #ifndef NDEBUG qDebug() << e.what(); #endif @@@@ -250,7 +250,7 @@@@ float obtain_avg_lum(const std::string& { try { - Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(filename); + Exiv2::Image::UniquePtr image = Exiv2::ImageFactory::open(filename); image->readMetadata(); Exiv2::ExifData &exifData = image->exifData(); if (exifData.empty()) @@@@ -329,7 +329,7 @@@@ allowed for ev computation purposes. return -1; } } - catch (Exiv2::AnyError& e) + catch (Exiv2::Error& e) { return -1; } @@@@ -338,7 +338,7 @@@@ allowed for ev computation purposes. float getExposureTime(const std::string &filename) { try { - Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(filename); + Exiv2::Image::UniquePtr image = Exiv2::ImageFactory::open(filename); image->readMetadata(); Exiv2::ExifData &exifData = image->exifData(); if (exifData.empty()) return -1; @@@@ -374,14 +374,14 @@@@ float getExposureTime(const std::string } else { return -1; } - } catch (Exiv2::AnyError &e) { + } catch (Exiv2::Error &e) { return -1; } } float getAverageLuminance(const std::string &filename) { try { - Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(filename); + Exiv2::Image::UniquePtr image = Exiv2::ImageFactory::open(filename); image->readMetadata(); Exiv2::ExifData &exifData = image->exifData(); @@@@ -403,7 +403,7 @@@@ float getAverageLuminance(const std::str << std::endl; return -1.0; - } catch (Exiv2::AnyError &e) { + } catch (Exiv2::Error &e) { return -1.0; } } @ 1.2 log @luminance-hdr: updated to 2.6.0 Changes in 2.6.0 NEW: New tonemapping operator kimkautz08 NEW: New tonemapping operator lischinski06 NEW: New tonemapping operator vanhateren06 NEW: New tonemapping operator ferwerda96 NEW: Preview of created HDR in HDR Wizard NEW: Post processing gamma and saturation great speedup and better memory usage for all tonemapping operators speedup for hdr creation usual bug fixing @ text @d1 1 a1 1 $NetBSD: patch-src_Exif_ExifOperations.cpp,v 1.1 2019/12/22 22:26:32 joerg Exp $ d3 4 a6 1 --- src/Exif/ExifOperations.cpp.orig 2019-12-22 21:18:32.752281082 +0000 d8 70 a77 2 @@@@ -35,6 +35,7 @@@@ #include d79 2 a80 3 #include +#include #include d82 6 a87 1 #include "ExifOperations.h" @ 1.1 log @Fix compat with newer exiv2. @ text @d1 1 a1 1 $NetBSD$ @