]> git.sesse.net Git - kdenlive/blobdiff - src/profilesdialog.h
Complete rewrite of the video4linux capture to use MLT, in progress.
[kdenlive] / src / profilesdialog.h
index ef4ea0865972f7eeca04b44d05ea0791a8915220..ada0736a6fc0642d92ca16085f7b91a1b961bae1 100644 (file)
@@ -38,7 +38,7 @@ public:
     static QString getPathFromDescription(const QString profileDesc);
     static MltVideoProfile getVideoProfile(QString name);
     static QMap <QString, QString> getProfilesInfo();
-    static void saveProfile(MltVideoProfile &profile);
+    static void saveProfile(MltVideoProfile &profile, QString profilePath = QString());
     static QString existingProfile(MltVideoProfile profile);
     static bool existingProfileDescription(const QString &desc);
 
@@ -52,7 +52,7 @@ public:
      *  @return true if properties match profile */
     static bool matchProfile(int width, int height, double fps, double par, bool isImage, MltVideoProfile profile);
 
-    /** @brief Find a profile to match parameter properties:
+    /** @brief Find profiles that match parameter properties:
      *  @param width The profile frame width
      *  @param height The profile frame height
      *  @param fps The profile fps
@@ -72,6 +72,11 @@ public:
      *  @return The string description */
     static QString getColorspaceDescription(int colorspace);
 
+    /** @brief Get the colorspace code (defined by MLT) from a descriptive text
+     *  @param desctiption A string description as defined in getColorspaceDescription(int colorspace)
+     *  @return The int code */
+    static int getColorspaceFromDescription(const QString &description);
+
 protected:
     virtual void closeEvent(QCloseEvent *event);