Logo Search packages:      
Sourcecode: kdenlive version File versions  Download package

GenTime KdenliveDoc::getTimecodePosition ( const QString &  pos,
int  limit = 0 
)

Return A time in GenTime format from a timecode string like 00:01:23:04

Definition at line 98 of file kdenlivedoc.cpp.

References framesPerSecond(), and Timecode::getFrameNumber().

Referenced by Gui::KdenliveApp::slotProjectAddColorClip(), and Gui::KMMEditPanel::slotSeekToPos().

{
    int frames = m_timecode.getFrameNumber(pos, framesPerSecond());
    if (limit >0 && frames > limit) frames = limit;
    return GenTime(frames , framesPerSecond());
}


Generated by  Doxygen 1.6.0   Back to index