Added limit to maximum number of channels

This commit is contained in:
Mirco Miranda
2026-06-05 14:56:08 +02:00
committed by Mirco Miranda
parent 8bfdef2e48
commit 52045ff84d
5 changed files with 13 additions and 14 deletions

View File

@@ -16,6 +16,11 @@
#include <QIODevice>
#include <QPixelFormat>
// Default maximum number of channels (do not exceed 256).
#ifndef KIF_MAX_IMAGE_CHANNELS
#define KIF_MAX_IMAGE_CHANNELS 60
#endif
// Default maximum width and height for the large image plugins.
#ifndef KIF_LARGE_IMAGE_PIXEL_LIMIT
#define KIF_LARGE_IMAGE_PIXEL_LIMIT 300000