reimplement string timecode to frame number conversion

This commit is contained in:
itsmattkc
2019-12-08 00:10:43 +11:00
parent 94be06e33e
commit 2fe03debec
2 changed files with 164 additions and 25 deletions
+3
View File
@@ -42,7 +42,10 @@ TimecodeDisplay CurrentTimecodeDisplay();
*/
QString timestamp_to_timecode(const int64_t &timestamp, const rational& timebase, const TimecodeDisplay& display, bool show_plus_if_positive = false);
int64_t timecode_to_timestamp(const QString& timecode, const rational& timebase, const TimecodeDisplay& display, bool *ok = nullptr);
int64_t time_to_timestamp(const rational& time, const rational& timebase);
int64_t time_to_timestamp(const double& time, const rational& timebase);
rational timestamp_to_time(const int64_t& timestamp, const rational& timebase);