Changeset View
Changeset View
Standalone View
Standalone View
src/timecode.cpp
Context not available. | |||||
72 | 72 | | |||
---|---|---|---|---|---|
73 | int hourFrames = timeBase*60*60; //Number of frames per hour (non-drop) | 73 | int hourFrames = timeBase*60*60; //Number of frames per hour (non-drop) | ||
74 | int minuteFrames = timeBase*60; //Number of frames per minute (non-drop) | 74 | int minuteFrames = timeBase*60; //Number of frames per minute (non-drop) | ||
75 | int totalMinutes = (60*hours) + minutes; //Total number of minuts | 75 | int totalMinutes = (60*hours) + minutes; //Total number of minutes | ||
76 | int frameNumber = ((hourFrames * hours) + (minuteFrames * minutes) + (timeBase * seconds) + frames) - (dropFrames * (totalMinutes - (totalMinutes \ 10))); | 76 | int frameNumber = ((hourFrames * hours) + (minuteFrames * minutes) + (timeBase * seconds) + frames) - (dropFrames * (totalMinutes - (totalMinutes \ 10))); | ||
77 | return frameNumber; | 77 | return frameNumber; | ||
78 | 78 | | |||
Context not available. |