aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZackaryWelch <welch.zackary@gmail.com>2017-09-11 18:35:41 -0400
committerZackaryWelch <welch.zackary@gmail.com>2017-09-11 18:35:41 -0400
commitb113026d69ca6c5a240981ab4e6835eb5298ffe3 (patch)
tree2343ac6d6f9ced92b93ba511cd161de219427413
parentAdded a framework for an experimental screen recorder (diff)
downloadlumina-b113026d69ca6c5a240981ab4e6835eb5298ffe3.tar.gz
lumina-b113026d69ca6c5a240981ab4e6835eb5298ffe3.tar.bz2
lumina-b113026d69ca6c5a240981ab4e6835eb5298ffe3.zip
Added video extension detection support with hardcoded input
-rw-r--r--src-qt5/core/libLumina/LUtils.cpp6
-rw-r--r--src-qt5/core/libLumina/LUtils.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/LUtils.cpp b/src-qt5/core/libLumina/LUtils.cpp
index e4f1c517..491778ca 100644
--- a/src-qt5/core/libLumina/LUtils.cpp
+++ b/src-qt5/core/libLumina/LUtils.cpp
@@ -252,6 +252,12 @@ QString LUtils::AppToAbsolute(QString path){
return path;
}
+QStringList LUtils::videoExtensions() {
+ static QStringList vidExtensions;
+ vidExtensions << "avi" << "mkv" << "mp4" << "mov" << "webm" << "wmv";
+ return vidExtensions;
+}
+
QStringList LUtils::imageExtensions(bool wildcards){
//Note that all the image extensions are lowercase!!
static QStringList imgExtensions;
diff --git a/src-qt5/core/libLumina/LUtils.h b/src-qt5/core/libLumina/LUtils.h
index 4ad05ca1..bfa900b1 100644
--- a/src-qt5/core/libLumina/LUtils.h
+++ b/src-qt5/core/libLumina/LUtils.h
@@ -65,6 +65,7 @@ public:
//Get the list of all file extensions which Qt can read (lowercase)
static QStringList imageExtensions(bool wildcards = false);
+ static QStringList videoExtensions();
//Load a translation file for a Lumina Project
static QTranslator* LoadTranslation(QApplication *app, QString appname, QString locale = "", QTranslator *cTrans = 0);
bgstack15