summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/cutils.hpp
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-24 01:37:53 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-24 01:37:53 +1000
commit2ccd3a8662c46e1be9cfb21a8d60751c98e78065 (patch)
treeda9c846b547c32b5bd6a8a0df46fc6eb6a862d91 /plugin/src/Caelestia/cutils.hpp
parentplayers: persist active player across reloads (diff)
downloadcaelestia-shell-2ccd3a8662c46e1be9cfb21a8d60751c98e78065.tar.gz
caelestia-shell-2ccd3a8662c46e1be9cfb21a8d60751c98e78065.tar.bz2
caelestia-shell-2ccd3a8662c46e1be9cfb21a8d60751c98e78065.zip
plugin: add image analyser
Diffstat (limited to 'plugin/src/Caelestia/cutils.hpp')
-rw-r--r--plugin/src/Caelestia/cutils.hpp15
1 files changed, 0 insertions, 15 deletions
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