Skip to content

Commit

Permalink
Large images allocation limit enlarged.
Browse files Browse the repository at this point in the history
  • Loading branch information
ponchio committed Jan 22, 2025
1 parent 564cdb5 commit 62a0b29
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion relight/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
6 changes: 6 additions & 0 deletions relightlab/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion relightlab/rtitask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 62a0b29

Please sign in to comment.