From 2ccd3a8662c46e1be9cfb21a8d60751c98e78065 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 24 Sep 2025 01:37:53 +1000 Subject: plugin: add image analyser --- plugin/src/Caelestia/cutils.hpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'plugin/src/Caelestia/cutils.hpp') diff --git a/plugin/src/Caelestia/cutils.hpp b/plugin/src/Caelestia/cutils.hpp index 57ece14..027226d 100644 --- a/plugin/src/Caelestia/cutils.hpp +++ b/plugin/src/Caelestia/cutils.hpp @@ -23,22 +23,7 @@ public: Q_INVOKABLE bool copyFile(const QUrl& source, const QUrl& target, bool overwrite = true) const; Q_INVOKABLE bool deleteFile(const QUrl& path) const; - - Q_INVOKABLE void getDominantColour(QQuickItem* item, QJSValue callback); - Q_INVOKABLE void getDominantColour(QQuickItem* item, int rescaleSize, QJSValue callback); - Q_INVOKABLE void getDominantColour(const QString& path, QJSValue callback); - Q_INVOKABLE void getDominantColour(const QString& path, int rescaleSize, QJSValue callback); - - Q_INVOKABLE void getAverageLuminance(QQuickItem* item, QJSValue callback); - Q_INVOKABLE void getAverageLuminance(QQuickItem* item, int rescaleSize, QJSValue callback); - Q_INVOKABLE void getAverageLuminance(const QString& path, QJSValue callback); - Q_INVOKABLE void getAverageLuminance(const QString& path, int rescaleSize, QJSValue callback); - Q_INVOKABLE QString toLocalFile(const QUrl& url) const; - -private: - QColor findDominantColour(const QImage& image, int rescaleSize) const; - qreal findAverageLuminance(const QImage& image, int rescaleSize) const; }; } // namespace caelestia -- cgit v1.2.3-freya