From 62a0b29e90ecc66ca66a027cdf34d37ef79794a1 Mon Sep 17 00:00:00 2001 From: ponchio Date: Wed, 22 Jan 2025 22:11:58 +0100 Subject: [PATCH] Large images allocation limit enlarged. --- relight/main.cpp | 5 ++++- relightlab/main.cpp | 6 ++++++ relightlab/rtitask.cpp | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/relight/main.cpp b/relight/main.cpp index 0b0858ff..76adbc92 100644 --- a/relight/main.cpp +++ b/relight/main.cpp @@ -70,7 +70,10 @@ int main(int argc, char *argv[]) { } QApplication app(argc, argv); - +#if QT_VERSION >= 0x060000 + //large images wont load because of this limit! + QImage::setAllocationLimit(32768*32768*4); +#endif QCoreApplication::setOrganizationName("VCG"); QCoreApplication::setOrganizationDomain("vcg.isti.cnr.it"); QCoreApplication::setApplicationName("RelightLab"); diff --git a/relightlab/main.cpp b/relightlab/main.cpp index f4ec43aa..7d1b2dfc 100644 --- a/relightlab/main.cpp +++ b/relightlab/main.cpp @@ -21,6 +21,12 @@ int main(int argc, char *argv[]) { QApplication::setAttribute(Qt::AA_MacDontSwapCtrlAndMeta); setlocale(LC_ALL, "en_US.UTF8"); //needs to be called AFTER QApplication creation. +#if QT_VERSION >= 0x060000 + //large images wont load because of this limit! + QImage::setAllocationLimit(32768*32768*4); +#endif + + QCoreApplication::setOrganizationName("VCG"); QCoreApplication::setOrganizationDomain("vcg.isti.cnr.it"); QCoreApplication::setApplicationName("RelightLab"); diff --git a/relightlab/rtitask.cpp b/relightlab/rtitask.cpp index 28b5bf70..3ef5ec58 100644 --- a/relightlab/rtitask.cpp +++ b/relightlab/rtitask.cpp @@ -38,7 +38,7 @@ QString RtiParameters::summary() { else s_format = formatLabels[format]; - QString txt = QString("%1 (%2) %3 %4").arg(s_basis).arg(s_colorspace).arg(s_planes).arg(s_format).arg(path); + QString txt = QString("%1 (%2) %3 %4").arg(s_basis).arg(s_colorspace).arg(s_planes).arg(s_format); return txt; }