m_format(format),
m_dropFrame(dropFrame),
m_displayedFramesPerSecond(framesPerSecond + 0.5),
- m_realFps(framesPerSecond)
+ m_realFps(framesPerSecond)
{
}
QString Timecode::getTimecodeHH_MM_SS_FF(int frames) const
{
if (m_dropFrame) {
- return getTimecodeDropFrame(frames);
+ return getTimecodeDropFrame(frames);
}
int seconds = frames / m_displayedFramesPerSecond;
frames = frames % m_displayedFramesPerSecond;
// calculate how many frames need to be dropped every minute.
int toDrop = (int) floor(600.0 * (m_displayedFramesPerSecond - m_realFps) + 0.5);
-
+
int perMinute = toDrop / 9;
int tenthMinute = toDrop % 9;