From e11e257f88726fd04774bf0ca4584d1678bc7f9b Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 3 Sep 2016 21:03:34 +0200 Subject: Add detailed video dialog Show each and everything ffprobe can extract from a video file and display it as a tree. --- helper.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'helper.h') 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 +#include 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 -- cgit v1.2.3-70-g09d2