summaryrefslogtreecommitdiff
path: root/src/lib/dcpomatic_time.cc
AgeCommit message (Collapse)Author
2025-09-02Untested conversion to num/den DCPTime.arbitrary-hzCarl Hetherington
Summary of required changes: Replace ::from_frames with a constructor that takes num/den. Provide and use member to_debug_string() instead of to_string(). Provide and use member to_serializable_string() and string constructor instead of fmt::to_string on .get() and number constructor. Provide and use content_time() member instead of ContentTime constructor from DCPTime. Use frames_round(96000) instead of get() when comparing times to see if they are "close enough". Provide and use DCPTime(x, FrameRateChange) constructor when converting from ContentTime. Use .seconds() when calculating proportions or sometimes when dividing by HZ. Provide and use operator bool(). Pass explicit 96000 denominator in a lot of places. Add member max() and use it instead of static max() Change BOOST_CHECK_EQUAL to BOOST_CHECK Provide operator/ and use it instead of .get() / 2.
2024-03-12Add operator<= for HMSF.Carl Hetherington
2021-04-29C++11 tidying.Carl Hetherington
2019-05-10Put Time types in dcpomatic namespace.Carl Hetherington
2016-08-12More Windows hacks.Carl Hetherington
2016-08-12Remove all use of stringstream in an attempt to fixCarl Hetherington
the suspected thread-unsafe crash bugs on OS X.
2016-05-25No-op; fix GPL address and use the explicit-program-name version.Carl Hetherington
2015-10-12Rename split-by-video content slightly; fix referencing to multi-reel DCPs.Carl Hetherington
2015-10-12Templatise TimePeriod and add DCPTimePeriod.Carl Hetherington
2015-08-31Fix overlaps; before you'd get a different answerCarl Hetherington
if you did a.overlaps(b) cf b.overlaps(a) if they were just-not overlapping.
2015-08-25Purge rint() and use llrint and friends.Carl Hetherington
2015-07-14Express trims using ContentTime so that they do not changeCarl Hetherington
when DCP frame rate is changed (#637).
2015-05-26Improve implementation of ContentTime/DCPTime.Carl Hetherington
2014-07-04Make XML subtitle work at the very minimal level.Carl Hetherington
2014-07-04Add 'starting' option to subtitles_during().Carl Hetherington
2014-07-02Hopefully improve subtitle decoder seeking etc.Carl Hetherington
2014-06-12Fix subrip subtitles a little.Carl Hetherington
2014-03-07operator bool on Time is a really bad idea; removed it and fixed lots of bugs.Carl Hetherington
2014-03-04New DCPTime/ContentTime types.Carl Hetherington