Logo Search packages:      
Sourcecode: kdenlive version File versions

QString Timecode::getTimecode ( const GenTime time,
double  fps 
) const

Returns the timecode for a given time

Definition at line 64 of file timecode.cpp.

Referenced by Gui::KMMEditPanel::rulerValueChanged().

{
    switch (m_format) {
    case HH_MM_SS_FF:
      return getTimecodeHH_MM_SS_FF(time, fps);
      break;
    case HH_MM_SS_HH:
      return getTimecodeHH_MM_SS_HH(time);
      break;
    case Frames:
      return getTimecodeFrames(time, fps);
      break;
    case Seconds:
      return getTimecodeSeconds(time);
      break;
    default:
      kdWarning() <<
          "Unknown timecode format specified, defaulting to HH_MM_SS_FF"
          << endl;
      return getTimecodeHH_MM_SS_FF(time, fps);
    }
}


Generated by  Doxygen 1.6.0   Back to index