Add box resize algorithm

This commit is contained in:
2024-01-14 14:28:28 +01:00
parent 0e0d29320e
commit 6539c78c57
3 changed files with 94 additions and 10 deletions
+2 -1
View File
@@ -97,13 +97,14 @@ public:
void convertToGLFormat();
float thumbAspect() const;
bool pixel(int x, int y, double &r, double &g, double &b) const;
void downscaleTo(uint32_t size);
void resize(uint32_t w, uint32_t h);
std::pair<float, float> unitScale() const;
static std::shared_ptr<RawImage> fromPlanar(const RawImage &img);
static std::shared_ptr<RawImage> fromPlanar(const void *pixels, uint32_t w, uint32_t h, uint32_t ch, DataType type);
static size_t typeSize(DataType type);
std::vector<RawImage> split() const;
bool valid() const;
};
//Q_DECLARE_SMART_POINTER_METATYPE(std::shared_ptr);