]> git.sesse.net Git - kdenlive/blobdiff - src/timecode.h
Fix regression introduced by document validation changes (document profile was not...
[kdenlive] / src / timecode.h
index 7a2fb91be3870b85eb476e72f2ea6d7d67359670..e4b32548e275886573e9d7025000df5e70e20fe3 100644 (file)
@@ -26,12 +26,13 @@ Handles the conversion of a GenTime into a nicely formatted string, taking into
 
 @author Jason Wood
 */
-class Timecode {
+class Timecode
+{
 public:
     enum Formats { HH_MM_SS_FF, HH_MM_SS_HH, Frames, Seconds };
 
-    Timecode(Formats format = HH_MM_SS_FF, int framesPerSecond =
-                 25, bool dropFrame = false);
+    explicit Timecode(Formats format = HH_MM_SS_FF, int framesPerSecond =
+                          25, bool dropFrame = false);
 
     /** Set the current timecode format; this is the output format for this timecode. */
     void setFormat(int framesPerSecond, bool dropFrame = false, Formats format = HH_MM_SS_FF) {
@@ -50,7 +51,9 @@ public:
     QString getTimecode(const GenTime & time, double fps) const;
     int getFrameCount(const QString duration, double fps) const;
     static QString getEasyTimecode(const GenTime & time, const double &fps);
-    QString getTimecodeFromFrames(int frames);
+    static QString getStringTimecode(int frames, const double &fps);
+    QString getTimecodeFromFrames(int frames) const;
+    int fps() const;
 
 private:
     Formats m_format;