diff options
author | Arno <arno@disconnect.de> | 2016-11-27 20:25:49 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-11-27 20:25:49 +0100 |
commit | c7e3315b663566f71f83dcc9d2259aac262081c1 (patch) | |
tree | d228aa2a385f6097efe319160a01f1d890d78b5b /helper.h | |
parent | f5b9109987cd19bbc69e7a20f7a73ac3d86be96a (diff) | |
download | ShemovCleaner-c7e3315b663566f71f83dcc9d2259aac262081c1.tar.gz ShemovCleaner-c7e3315b663566f71f83dcc9d2259aac262081c1.tar.bz2 ShemovCleaner-c7e3315b663566f71f83dcc9d2259aac262081c1.zip |
Add preview for videos
Grab 4 frames from a video and display them in the Viewer. First frame
is @00:01:00, last at length - 1 minute, and the other two are in
between: length / 4 * 2 and 3 (hardcoded).
Diffstat (limited to 'helper.h')
-rw-r--r-- | helper.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3,10 +3,13 @@ #include <QString> #include <QJsonDocument> +#include <QPixmap> namespace Helper { const QString md5Sum(const QString &path); const QJsonDocument ffpmegData(const QString &path); + const QPixmap preview(const QString &file); + const QImage snapshot(const QString &file, int offset); class Duration { public: Duration(); |