summaryrefslogtreecommitdiff
path: root/test/dcp_time_test.cc
AgeCommit message (Collapse)Author
2021-01-21Use enum class for the things in types.hCarl Hetherington
2020-04-14s/DCPReadError/ReadError/gCarl Hetherington
2019-03-16Fix some GPL boilerplate.Carl Hetherington
2018-05-02rebase() would round up and so it was possible for ticks to go out of range.Carl Hetherington
Now it still rounds up but then copes with overflow.
2018-02-07db8af2f changed rebase() to round down when rebasing times, butCarl Hetherington
did not say why. This rounding down produces some unexpected results, e.g. taking 41 at a TCR of 1000 to a TCR of 24 gives 0, which upsets those who use DCP-o-matic and put in a SRT subtitle ending at ,041 --- the sub time is rounded down to 0 for a SMPTE DCP. This commit restores round-to-nearest behaviour.
2016-08-22Fix ridiculous thinko in Time::operator{<,>}Carl Hetherington
Before this x < x and x > x were true.
2016-08-11Add test for SMPTE DCP time to string.Carl Hetherington
2016-06-14Tighten up time parsing, and also allow the previouslyCarl Hetherington
unsupported Interop HH:MM:SS.sss format for times.
2016-06-01Still more licence fixups.Carl Hetherington
2015-10-15Force specification of timecode rate when creating a Time from seconds.Carl Hetherington
2015-09-28Round down when rebasing times.Carl Hetherington
2015-09-12A number of SMPTE subtitle syntax fixes.Carl Hetherington
2015-06-04to_* to as_* in a few method names.Carl Hetherington
2015-05-06Pad times with zeros; add Time::rebase().Carl Hetherington
2015-01-10Fix handling of timing in SMPTE subtitles.Carl Hetherington
2014-11-02Forward-port time rounding fix from 0.x.Carl Hetherington
2014-01-17namespace libdcp -> dcp.Carl Hetherington
2013-10-30Update and fix tests.Carl Hetherington
2013-10-24Add Time constructor from ticks; fix Time::to_ticks().Carl Hetherington
2013-09-25Split tests up.Carl Hetherington
2013-07-02Split test file up a bit.Carl Hetherington