---------------------------------------------------------------------------
| 844 | |
| 845 | //--------------------------------------------------------------------------- |
| 846 | int64_t TimeCode::ToMilliseconds() const |
| 847 | { |
| 848 | if (!IsSet()) |
| 849 | return 0; |
| 850 | |
| 851 | int64_t Den = (uint64_t)GetFramesMax() + 1; |
| 852 | int64_t MS = (ToFrames() * 1000 * (GetFramesMax() && (IsDropFrame() || Is1001fps()) ? 1.001 : 1.000) + Den / 2) / Den; |
| 853 | if (IsNegative()) |
| 854 | MS = -MS; |
| 855 | |
| 856 | return MS; |
| 857 | } |
| 858 | |
| 859 | //--------------------------------------------------------------------------- |
| 860 | double TimeCode::ToSeconds(bool TimeIsDropFrame) const |
no outgoing calls
no test coverage detected