summaryrefslogtreecommitdiffstats
path: root/helper.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2016-09-03 21:03:34 +0200
committerArno <arno@disconnect.de>2016-09-03 21:03:34 +0200
commite11e257f88726fd04774bf0ca4584d1678bc7f9b (patch)
tree848c1f16d09f1a06afd7d638f40b6e39e4cd6ead /helper.h
parentb49c6828a92590311712d766d54c15596f13addf (diff)
downloadShemovCleaner-e11e257f88726fd04774bf0ca4584d1678bc7f9b.tar.gz
ShemovCleaner-e11e257f88726fd04774bf0ca4584d1678bc7f9b.tar.bz2
ShemovCleaner-e11e257f88726fd04774bf0ca4584d1678bc7f9b.zip
Add detailed video dialog
Show each and everything ffprobe can extract from a video file and display it as a tree.
Diffstat (limited to 'helper.h')
-rw-r--r--helper.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/helper.h b/helper.h
index e005423..90bef11 100644
--- a/helper.h
+++ b/helper.h
@@ -2,9 +2,26 @@
#define HELPER_H
#include <QString>
+#include <QJsonDocument>
namespace Helper {
const QString md5Sum(const QString &path);
+ const QJsonDocument ffpmegData(const QString &path);
+ class Duration {
+ public:
+ Duration();
+ Duration(qint64 seconds);
+ Duration(const QString &dur);
+ Duration operator+(const Duration &dur) const;
+ const QString toString() const;
+ bool isNull() const;
+ qint64 toSeconds() const;
+
+ private:
+ int mHours;
+ int mMinutes;
+ int mSeconds;
+ };
}
#endif // HELPER_H