Logo Search packages:      
Sourcecode: kdenlive version File versions

Timecode Class Reference

#include <timecode.h>

List of all members.

Detailed Description

Handles the conversion of a GenTime into a nicely formatted string, taking into account things such as drop frame if necessary. Handles multiple formats, such as HH:MM:SS:FF, HH:MM:SS:F, All Frames, All Seconds, etc.

Jason Wood

Definition at line 29 of file timecode.h.

Public Types

enum  Formats { HH_MM_SS_FF, HH_MM_SS_HH, Frames, Seconds }

Public Member Functions

Formats format () const
int fps ()
int getFrameCount (const QString duration, double fps) const
QString getTimecode (const GenTime &time, double fps) const
QString getTimecodeFromFrames (int frames)
void setFormat (int framesPerSecond, bool dropFrame=false, Formats format=HH_MM_SS_FF)
 Timecode (Formats format=HH_MM_SS_FF, int framesPerSecond=25, bool dropFrame=false)

Static Public Member Functions

static QString getEasyTimecode (const GenTime &time, const double &fps)

Private Member Functions

QString getTimecodeDropFrame (const GenTime &time, double fps) const
QString getTimecodeFrames (const GenTime &time, double fps) const
QString getTimecodeHH_MM_SS_FF (int frames) const
QString getTimecodeHH_MM_SS_FF (const GenTime &time, double fps) const
QString getTimecodeHH_MM_SS_HH (const GenTime &time) const
QString getTimecodeSeconds (const GenTime &time) const

Private Attributes

int m_displayedFramesPerSecond
bool m_dropFrame
Formats m_format

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index