place timecode conversion functions into a Timecode class rather than an olive namespace

Code cleanup and improvement.
This commit is contained in:
itsmattkc
2019-12-26 17:20:58 +11:00
parent 3b2fcf4aae
commit 520b8b46fa
19 changed files with 110 additions and 92 deletions
+2 -2
View File
@@ -95,9 +95,9 @@ QString Sequence::duration()
rational timeline_length = timeline_output_->length();
int64_t timestamp = olive::time_to_timestamp(timeline_length, video_params_.time_base());
int64_t timestamp = Timecode::time_to_timestamp(timeline_length, video_params_.time_base());
return olive::timestamp_to_timecode(timestamp, video_params_.time_base(), olive::CurrentTimecodeDisplay());
return Timecode::timestamp_to_timecode(timestamp, video_params_.time_base(), Timecode::CurrentDisplay());
}
QString Sequence::rate()