From: Carl Hetherington Date: Wed, 16 Jul 2014 14:30:32 +0000 (+0100) Subject: Merge master. X-Git-Tag: v2.0.48~717 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=fc56dc97103d00437843a31e1ef0c4915900ad1a Merge master. --- fc56dc97103d00437843a31e1ef0c4915900ad1a diff --cc ChangeLog index 561bbce1c,40797c7b3..5265423fc --- a/ChangeLog +++ b/ChangeLog @@@ -1,19 -1,11 +1,25 @@@ +2014-07-15 Carl Hetherington + + * A variety of changes were made on the 2.0 branch + but not documented in the ChangeLog. Most sigificantly: + + - DCP import + - Creation of DCPs with proper XML subtitles + - Import of .srt and .xml subtitles + - Audio processing framework (with some basic processors). + +2014-03-07 Carl Hetherington + + * Add subtitle view. + 2014-07-16 Carl Hetherington + * Version 1.72.3 released. + + 2014-07-16 Carl Hetherington + + * Improve approximate time reports a bit. + * Make KDM email subject configurable. * Updates to de_DE from Carsten Kurz. diff --cc test/util_test.cc index 39cc0e6bf,40a2835f1..f5bf94c01 --- a/test/util_test.cc +++ b/test/util_test.cc @@@ -89,8 -67,15 +89,21 @@@ BOOST_AUTO_TEST_CASE (divide_with_round BOOST_CHECK_EQUAL (divide_with_round (1000, 500), 2); } +BOOST_AUTO_TEST_CASE (timecode_test) +{ + DCPTime t = DCPTime::from_seconds (2 * 60 * 60 + 4 * 60 + 31) + DCPTime::from_frames (19, 24); + BOOST_CHECK_EQUAL (t.timecode (24), "02:04:31:19"); +} ++ + BOOST_AUTO_TEST_CASE (seconds_to_approximate_hms_test) + { + BOOST_CHECK_EQUAL (seconds_to_approximate_hms (1), "1 second"); + BOOST_CHECK_EQUAL (seconds_to_approximate_hms (2), "2 seconds"); + BOOST_CHECK_EQUAL (seconds_to_approximate_hms (60), "1 minute"); + BOOST_CHECK_EQUAL (seconds_to_approximate_hms (1.5 * 60), "1 minute 30 seconds"); + BOOST_CHECK_EQUAL (seconds_to_approximate_hms (2 * 60), "2 minutes"); + BOOST_CHECK_EQUAL (seconds_to_approximate_hms (17 * 60 + 20), "17 minutes"); + BOOST_CHECK_EQUAL (seconds_to_approximate_hms (1 * 3600), "1 hour"); + BOOST_CHECK_EQUAL (seconds_to_approximate_hms (3600 + 40 * 60), "1 hour 40 minutes"); + BOOST_CHECK_EQUAL (seconds_to_approximate_hms (13 * 3600 + 40 * 60), "14 hours"); + }