@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) {
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;