Add thumbnailer

This commit is contained in:
2025-02-16 23:36:25 +01:00
parent c36068aaf4
commit 58c182adc0
5 changed files with 99 additions and 7 deletions
+6
View File
@@ -7,7 +7,9 @@
#include <stdint.h>
#include <math.h>
#include <memory.h>
#ifndef NO_QT
#include <QImage>
#endif
extern int THUMB_SIZE;
extern int THUMB_SIZE_BORDER;
@@ -83,7 +85,9 @@ public:
RawImage(uint32_t w, uint32_t h, uint32_t ch, DataType type);
RawImage(const RawImage &d);
RawImage(RawImage &&d);
#ifndef NO_QT
RawImage(const QImage &img);
#endif
const RawImage::Stats& imageStats() const;
void calcStats();
uint32_t width() const;
@@ -116,7 +120,9 @@ public:
static size_t typeSize(DataType type);
std::vector<RawImage> split() const;
bool valid() const;
#ifndef NO_QT
void setICCProfile(const QByteArray &icc);
#endif
void setICCProfile(const LibXISF::ByteArray &icc);
void convertTosRGB();
void generateLUT();