-base=$HOME/dcpomatic
+base=$HOME/test
env=$HOME/osx-environment
sdk=$HOME/SDK
}
}
- BOOST_REQUIRE_EQUAL (b.sample_peak().size(), 3);
+ BOOST_REQUIRE_EQUAL (b.sample_peak().size(), 3U);
for (int i = 0; i < channels; ++i) {
BOOST_CHECK_CLOSE (b.sample_peak()[i].peak, peak[i].peak, 1);
BOOST_CHECK_EQUAL (b.sample_peak()[i].time.get(), peak[i].time.get());
}
list<int> mapped = four.mapped_output_channels ();
- BOOST_CHECK_EQUAL (mapped.size(), 1);
+ BOOST_CHECK_EQUAL (mapped.size(), 1U);
BOOST_CHECK_EQUAL (mapped.front(), 1);
four.make_zero ();
push (merger, 0, 64, 22);
list<pair<shared_ptr<AudioBuffers>, DCPTime> > tb = merger.pull (DCPTime::from_frames (22, sampling_rate));
- BOOST_REQUIRE (tb.size() == 1);
+ BOOST_REQUIRE (tb.size() == 1U);
BOOST_CHECK (tb.front().first != shared_ptr<const AudioBuffers> ());
BOOST_CHECK_EQUAL (tb.front().first->frames(), 22);
BOOST_CHECK_EQUAL (tb.front().second.get(), 0);
}
tb = merger.pull (DCPTime::from_frames (22 + 64, sampling_rate));
- BOOST_REQUIRE (tb.size() == 1);
+ BOOST_REQUIRE (tb.size() == 1U);
BOOST_CHECK_EQUAL (tb.front().first->frames(), 64);
BOOST_CHECK_EQUAL (tb.front().second.get(), DCPTime::from_frames(22, sampling_rate).get());
/* There's nothing from 0 to 9 */
list<pair<shared_ptr<AudioBuffers>, DCPTime> > tb = merger.pull (DCPTime::from_frames (9, sampling_rate));
- BOOST_CHECK_EQUAL (tb.size(), 0);
+ BOOST_CHECK_EQUAL (tb.size(), 0U);
/* Then there's our data at 9 */
tb = merger.pull (DCPTime::from_frames (9 + 64, sampling_rate));
/* Get them back */
list<pair<shared_ptr<AudioBuffers>, DCPTime> > tb = merger.pull (DCPTime::from_frames (100, sampling_rate));
- BOOST_REQUIRE (tb.size() == 1);
+ BOOST_REQUIRE (tb.size() == 1U);
BOOST_CHECK_EQUAL (tb.front().first->frames(), 64);
BOOST_CHECK_EQUAL (tb.front().second.get(), DCPTime::from_frames(17, sampling_rate).get());
for (int i = 0; i < 64; ++i) {
}
tb = merger.pull (DCPTime::from_frames (200, sampling_rate));
- BOOST_REQUIRE (tb.size() == 1);
+ BOOST_REQUIRE (tb.size() == 1U);
BOOST_CHECK_EQUAL (tb.front().first->frames(), 64);
BOOST_CHECK_EQUAL (tb.front().second.get(), DCPTime::from_frames(114, sampling_rate).get());
for (int i = 0; i < 64; ++i) {
dcp::DCP check (film->dir(film->dcp_name()));
check.read ();
- BOOST_REQUIRE_EQUAL (check.cpls().size(), 1);
- BOOST_REQUIRE_EQUAL (check.cpls().front()->reels().size(), 1);
+ BOOST_REQUIRE_EQUAL (check.cpls().size(), 1U);
+ BOOST_REQUIRE_EQUAL (check.cpls().front()->reels().size(), 1U);
BOOST_REQUIRE (!check.cpls().front()->reels().front()->closed_captions().empty());
}
dcp::DCP check (film->dir(film->dcp_name()));
check.read ();
- BOOST_REQUIRE_EQUAL (check.cpls().size(), 1);
- BOOST_REQUIRE_EQUAL (check.cpls().front()->reels().size(), 1);
+ BOOST_REQUIRE_EQUAL (check.cpls().size(), 1U);
+ BOOST_REQUIRE_EQUAL (check.cpls().front()->reels().size(), 1U);
list<shared_ptr<dcp::ReelClosedCaptionAsset> > ccaps = check.cpls().front()->reels().front()->closed_captions();
- BOOST_REQUIRE_EQUAL (ccaps.size(), 3);
+ BOOST_REQUIRE_EQUAL (ccaps.size(), 3U);
list<shared_ptr<dcp::ReelClosedCaptionAsset> >::const_iterator i = ccaps.begin ();
BOOST_CHECK_EQUAL ((*i)->annotation_text(), "First track");
BOOST_CHECK_EQUAL (cc.still_length, 42);
BOOST_REQUIRE (cc.output_dir);
BOOST_CHECK_EQUAL (*cc.output_dir, "flaps");
- BOOST_REQUIRE_EQUAL (cc.content.size(), 3);
+ BOOST_REQUIRE_EQUAL (cc.content.size(), 3U);
BOOST_CHECK_EQUAL (cc.content[0].path, "fred");
BOOST_CHECK_EQUAL (cc.content[0].frame_type, VIDEO_FRAME_TYPE_2D);
BOOST_CHECK_EQUAL (cc.content[1].path, "jim");
BOOST_CHECK_EQUAL (cc.content[2].frame_type, VIDEO_FRAME_TYPE_2D);
cc = run ("dcpomatic2_create --left-eye left.mp4 --right-eye right.mp4");
- BOOST_REQUIRE_EQUAL (cc.content.size(), 2);
+ BOOST_REQUIRE_EQUAL (cc.content.size(), 2U);
BOOST_CHECK_EQUAL (cc.content[0].path, "left.mp4");
BOOST_CHECK_EQUAL (cc.content[0].frame_type, VIDEO_FRAME_TYPE_3D_LEFT);
BOOST_CHECK_EQUAL (cc.content[1].path, "right.mp4");
BOOST_CHECK_EQUAL (cc.fourk, false);
cc = run ("dcpomatic2_create --fourk foo.mp4");
- BOOST_REQUIRE_EQUAL (cc.content.size(), 1);
+ BOOST_REQUIRE_EQUAL (cc.content.size(), 1U);
BOOST_CHECK_EQUAL (cc.content[0].path, "foo.mp4");
BOOST_CHECK_EQUAL (cc.fourk, true);
BOOST_CHECK (!cc.error);
cc = run ("dcpomatic2_create --j2k-bandwidth 120 foo.mp4");
- BOOST_REQUIRE_EQUAL (cc.content.size(), 1);
+ BOOST_REQUIRE_EQUAL (cc.content.size(), 1U);
BOOST_CHECK_EQUAL (cc.content[0].path, "foo.mp4");
BOOST_REQUIRE (cc.j2k_bandwidth);
BOOST_CHECK_EQUAL (*cc.j2k_bandwidth, 120000000);
while (!decoder->pass() && !stored) {}
BOOST_REQUIRE (stored);
- BOOST_REQUIRE_EQUAL (stored->subs.size(), 2);
+ BOOST_REQUIRE_EQUAL (stored->subs.size(), 2U);
BOOST_CHECK_EQUAL (stored->subs.front().text(), "Noch mal.");
BOOST_CHECK_EQUAL (stored->subs.back().text(), "Encore une fois.");
}
cxml::Document doc ("DCSubtitle");
doc.read_file (subtitle_file (film));
- BOOST_REQUIRE_EQUAL (doc.node_children("LoadFont").size(), 1);
+ BOOST_REQUIRE_EQUAL (doc.node_children("LoadFont").size(), 1U);
}
static
cxml::Document doc ("DCSubtitle");
doc.read_file (subtitle_file(film));
- BOOST_REQUIRE_EQUAL (doc.node_children("LoadFont").size(), 1);
+ BOOST_REQUIRE_EQUAL (doc.node_children("LoadFont").size(), 1U);
BOOST_CHECK (doc.node_children("LoadFont").front()->string_attribute("Id") != "");
check_font_tags (doc.node_children());
p.push_back (A);
p.push_back (B);
list<DCPTimePeriod> q = coalesce (p);
- BOOST_REQUIRE_EQUAL (q.size(), 2);
+ BOOST_REQUIRE_EQUAL (q.size(), 2U);
BOOST_CHECK (q.front() == DCPTimePeriod(DCPTime(14), DCPTime(29)));
BOOST_CHECK (q.back () == DCPTimePeriod(DCPTime(45), DCPTime(91)));
}
p.push_back (A);
p.push_back (B);
list<DCPTimePeriod> q = coalesce (p);
- BOOST_REQUIRE_EQUAL (q.size(), 1);
+ BOOST_REQUIRE_EQUAL (q.size(), 1U);
BOOST_CHECK (q.front() == DCPTimePeriod(DCPTime(14), DCPTime(91)));
}
p.push_back (A);
p.push_back (B);
list<DCPTimePeriod> q = coalesce (p);
- BOOST_REQUIRE_EQUAL (q.size(), 1);
+ BOOST_REQUIRE_EQUAL (q.size(), 1U);
BOOST_CHECK (q.front() == DCPTimePeriod(DCPTime(14), DCPTime(91)));
}
p.push_back (B);
p.push_back (C);
list<DCPTimePeriod> q = coalesce (p);
- BOOST_REQUIRE_EQUAL (q.size(), 1);
+ BOOST_REQUIRE_EQUAL (q.size(), 1U);
BOOST_CHECK (q.front() == DCPTimePeriod(DCPTime(14), DCPTime(106)));
}
p.push_back (B);
p.push_back (C);
list<DCPTimePeriod> q = coalesce (p);
- BOOST_REQUIRE_EQUAL (q.size(), 2);
+ BOOST_REQUIRE_EQUAL (q.size(), 2U);
BOOST_CHECK (q.front() == DCPTimePeriod(DCPTime(14), DCPTime(91)));
BOOST_CHECK (q.back() == DCPTimePeriod(DCPTime(100), DCPTime(106)));
}
dcp::DCP dcp (film->dir (film->dcp_name ()));
dcp.read ();
- BOOST_CHECK_EQUAL (dcp.cpls().size(), 1);
+ BOOST_CHECK_EQUAL (dcp.cpls().size(), 1U);
list<shared_ptr<dcp::Reel> > reels = dcp.cpls().front()->reels ();
list<shared_ptr<dcp::Reel> >::const_iterator i = reels.begin ();
contentB->set_position (film, DCPTime::from_frames (7, vfr));
Empty black (film, film->playlist(), bind(&has_video, _1), film->playlist()->length(film));
- BOOST_REQUIRE_EQUAL (black._periods.size(), 2);
+ BOOST_REQUIRE_EQUAL (black._periods.size(), 2U);
list<dcpomatic::DCPTimePeriod>::const_iterator i = black._periods.begin();
BOOST_CHECK (i->from == DCPTime::from_frames(0, vfr));
BOOST_CHECK (i->to == DCPTime::from_frames(2, vfr));
contentB->set_position (film, DCPTime::from_frames(7, vfr));
Empty black (film, film->playlist(), bind(&has_video, _1), film->playlist()->length(film));
- BOOST_REQUIRE_EQUAL (black._periods.size(), 1);
+ BOOST_REQUIRE_EQUAL (black._periods.size(), 1U);
BOOST_CHECK (black._periods.front().from == DCPTime::from_frames(3, vfr));
BOOST_CHECK (black._periods.front().to == DCPTime::from_frames(7, vfr));
shared_ptr<Playlist> playlist (new Playlist);
playlist->add (film, contentB);
Empty black (film, playlist, bind(&has_video, _1), playlist->length(film));
- BOOST_REQUIRE_EQUAL (black._periods.size(), 1);
+ BOOST_REQUIRE_EQUAL (black._periods.size(), 1U);
BOOST_CHECK (black._periods.front().from == DCPTime::from_frames(0, vfr));
BOOST_CHECK (black._periods.front().to == DCPTime::from_frames(7, vfr));
BOOST_REQUIRE (!wait_for_jobs());
film2->write_metadata ();
- BOOST_CHECK_EQUAL (imported->markers().size(), 3);
+ BOOST_CHECK_EQUAL (imported->markers().size(), 3U);
map<dcp::Marker, dcpomatic::ContentTime> markers = imported->markers();
BOOST_REQUIRE(markers.find(dcp::FFOC) != markers.end());
/* Load that film and check that the markers have been loaded */
shared_ptr<Film> film3(new Film(boost::filesystem::path("build/test/import_dcp_markers_test2")));
film3->read_metadata ();
- BOOST_REQUIRE (film3->content().size() == 1);
+ BOOST_REQUIRE_EQUAL (film3->content().size(), 1U);
shared_ptr<DCPContent> reloaded = dynamic_pointer_cast<DCPContent>(film3->content().front());
BOOST_REQUIRE (reloaded);
- BOOST_CHECK_EQUAL (reloaded->markers().size(), 3);
+ BOOST_CHECK_EQUAL (reloaded->markers().size(), 3U);
markers = reloaded->markers();
BOOST_REQUIRE(markers.find(dcp::FFOC) != markers.end());
/* Load that film and check that the metadata has been loaded */
shared_ptr<Film> film3(new Film(boost::filesystem::path("build/test/import_dcp_metadata_test2")));
film3->read_metadata ();
- BOOST_REQUIRE (film3->content().size() == 1);
+ BOOST_REQUIRE_EQUAL (film3->content().size(), 1U);
shared_ptr<DCPContent> reloaded = dynamic_pointer_cast<DCPContent>(film3->content().front());
BOOST_REQUIRE (reloaded);
film->set_audio_channels (1);
film->set_resolution (RESOLUTION_4K);
shared_ptr<Content> text = content_factory("test/data/subrip.srt").front();
- BOOST_REQUIRE_EQUAL (text->text.size(), 1);
+ BOOST_REQUIRE_EQUAL (text->text.size(), 1U);
text->text.front()->set_language ("fr");
text->text.front()->set_burn (true);
film->examine_and_add_content (text);
dcp::DCP ov_a_check (ov_a->dir(ov_a->dcp_name()));
ov_a_check.read ();
- BOOST_REQUIRE_EQUAL (ov_a_check.cpls().size(), 1);
- BOOST_REQUIRE_EQUAL (ov_a_check.cpls().front()->reels().size(), 1);
+ BOOST_REQUIRE_EQUAL (ov_a_check.cpls().size(), 1U);
+ BOOST_REQUIRE_EQUAL (ov_a_check.cpls().front()->reels().size(), 1U);
shared_ptr<dcp::Reel> ov_a_reel (ov_a_check.cpls().front()->reels().front());
dcp::DCP ov_b_check (ov_b->dir(ov_b->dcp_name()));
ov_b_check.read ();
- BOOST_REQUIRE_EQUAL (ov_b_check.cpls().size(), 1);
- BOOST_REQUIRE_EQUAL (ov_b_check.cpls().front()->reels().size(), 1);
+ BOOST_REQUIRE_EQUAL (ov_b_check.cpls().size(), 1U);
+ BOOST_REQUIRE_EQUAL (ov_b_check.cpls().front()->reels().size(), 1U);
shared_ptr<dcp::Reel> ov_b_reel (ov_b_check.cpls().front()->reels().front());
dcp::DCP vf_check (vf->dir(vf->dcp_name()));
vf_check.read ();
- BOOST_REQUIRE_EQUAL (vf_check.cpls().size(), 1);
- BOOST_REQUIRE_EQUAL (vf_check.cpls().front()->reels().size(), 1);
+ BOOST_REQUIRE_EQUAL (vf_check.cpls().size(), 1U);
+ BOOST_REQUIRE_EQUAL (vf_check.cpls().front()->reels().size(), 1U);
shared_ptr<dcp::Reel> vf_reel (vf_check.cpls().front()->reels().front());
BOOST_CHECK_EQUAL (vf_reel->main_picture()->asset_ref().id(), ov_b_reel->main_picture()->asset_ref().id());
shared_ptr<Player> player (new Player(film));
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_black._periods.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_black._periods.size(), 1U);
BOOST_CHECK (player->_black._periods.front() == DCPTimePeriod(DCPTime::from_frames(3 * 24, 24), DCPTime::from_frames(3 * 24 + 1, 24)));
- BOOST_REQUIRE_EQUAL (player->_silent._periods.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_silent._periods.size(), 1U);
BOOST_CHECK (player->_silent._periods.front() == DCPTimePeriod(DCPTime(289920), DCPTime::from_frames(3 * 24 + 1, 24)));
}
player->Text.connect (bind (&store, &out, _1, _2, _3, _4));
while (!player->pass ()) {}
- BOOST_CHECK_EQUAL (out.size(), 6);
+ BOOST_CHECK_EQUAL (out.size(), 6U);
}
/** Trigger a crash due to the assertion failure in Player::emit_audio */
/* Find main picture and sound asset IDs */
dcp::DCP dcp1 (film->dir(film->dcp_name()));
dcp1.read ();
- BOOST_REQUIRE_EQUAL (dcp1.cpls().size(), 1);
- BOOST_REQUIRE_EQUAL (dcp1.cpls().front()->reels().size(), 1);
+ BOOST_REQUIRE_EQUAL (dcp1.cpls().size(), 1U);
+ BOOST_REQUIRE_EQUAL (dcp1.cpls().front()->reels().size(), 1U);
BOOST_REQUIRE (dcp1.cpls().front()->reels().front()->main_picture());
BOOST_REQUIRE (dcp1.cpls().front()->reels().front()->main_sound());
string const picture_id = dcp1.cpls().front()->reels().front()->main_picture()->asset()->id();
/* Video ID should be the same, sound different */
dcp::DCP dcp2 (film->dir(film->dcp_name()));
dcp2.read ();
- BOOST_REQUIRE_EQUAL (dcp2.cpls().size(), 1);
- BOOST_REQUIRE_EQUAL (dcp2.cpls().front()->reels().size(), 1);
+ BOOST_REQUIRE_EQUAL (dcp2.cpls().size(), 1U);
+ BOOST_REQUIRE_EQUAL (dcp2.cpls().front()->reels().size(), 1U);
BOOST_REQUIRE (dcp2.cpls().front()->reels().front()->main_picture());
BOOST_REQUIRE (dcp2.cpls().front()->reels().front()->main_sound());
BOOST_CHECK_EQUAL (picture_id, dcp2.cpls().front()->reels().front()->main_picture()->asset()->id());
/* Video and sound IDs should be different */
dcp::DCP dcp3 (film->dir(film->dcp_name()));
dcp3.read ();
- BOOST_REQUIRE_EQUAL (dcp3.cpls().size(), 1);
- BOOST_REQUIRE_EQUAL (dcp3.cpls().front()->reels().size(), 1);
+ BOOST_REQUIRE_EQUAL (dcp3.cpls().size(), 1U);
+ BOOST_REQUIRE_EQUAL (dcp3.cpls().front()->reels().size(), 1U);
BOOST_REQUIRE (dcp3.cpls().front()->reels().front()->main_picture());
BOOST_REQUIRE (dcp3.cpls().front()->reels().front()->main_sound());
BOOST_CHECK (picture_id != dcp3.cpls().front()->reels().front()->main_picture()->asset()->id());
film->set_reel_type (REELTYPE_SINGLE);
list<DCPTimePeriod> r = film->reels ();
- BOOST_CHECK_EQUAL (r.size(), 1);
+ BOOST_CHECK_EQUAL (r.size(), 1U);
BOOST_CHECK_EQUAL (r.front().from.get(), 0);
BOOST_CHECK_EQUAL (r.front().to.get(), 288000 * 2);
film->set_reel_type (REELTYPE_BY_VIDEO_CONTENT);
r = film->reels ();
- BOOST_CHECK_EQUAL (r.size(), 2);
+ BOOST_CHECK_EQUAL (r.size(), 2U);
BOOST_CHECK_EQUAL (r.front().from.get(), 0);
BOOST_CHECK_EQUAL (r.front().to.get(), 288000);
BOOST_CHECK_EQUAL (r.back().from.get(), 288000);
/* This is just over 2.5s at 100Mbit/s; should correspond to 60 frames */
film->set_reel_length (31253154);
r = film->reels ();
- BOOST_CHECK_EQUAL (r.size(), 3);
+ BOOST_CHECK_EQUAL (r.size(), 3U);
list<DCPTimePeriod>::const_iterator i = r.begin ();
BOOST_CHECK_EQUAL (i->from.get(), 0);
BOOST_CHECK_EQUAL (i->to.get(), DCPTime::from_frames(60, 24).get());
}
film->set_reel_type (REELTYPE_BY_VIDEO_CONTENT);
- BOOST_CHECK_EQUAL (film->reels().size(), 3);
+ BOOST_CHECK_EQUAL (film->reels().size(), 3U);
BOOST_REQUIRE (!wait_for_jobs());
film->make_dcp ();
BOOST_REQUIRE (!wait_for_jobs ());
list<DCPTimePeriod> r = film2->reels ();
- BOOST_CHECK_EQUAL (r.size(), 3);
+ BOOST_CHECK_EQUAL (r.size(), 3U);
list<DCPTimePeriod>::const_iterator i = r.begin ();
BOOST_CHECK_EQUAL (i->from.get(), 0);
BOOST_CHECK_EQUAL (i->to.get(), 96000);
BOOST_REQUIRE (!wait_for_jobs());
list<DCPTimePeriod> reels = film->reels();
- BOOST_REQUIRE_EQUAL (reels.size(), 4);
+ BOOST_REQUIRE_EQUAL (reels.size(), 4U);
list<DCPTimePeriod>::const_iterator i = reels.begin ();
BOOST_CHECK_EQUAL (i->from.get(), 0);
BOOST_CHECK_EQUAL (i->to.get(), 96000);
BOOST_REQUIRE (!wait_for_jobs());
list<DCPTimePeriod> reels = film->reels();
- BOOST_REQUIRE_EQUAL (reels.size(), 4);
+ BOOST_REQUIRE_EQUAL (reels.size(), 4U);
list<DCPTimePeriod>::const_iterator i = reels.begin ();
BOOST_CHECK_EQUAL (i->from.get(), 0);
BOOST_CHECK_EQUAL (i->to.get(), 96000);
{
list<DCPTimePeriod> p = dcp->reels (film);
- BOOST_REQUIRE_EQUAL (p.size(), 4);
+ BOOST_REQUIRE_EQUAL (p.size(), 4U);
list<DCPTimePeriod>::const_iterator i = p.begin();
BOOST_CHECK (*i++ == DCPTimePeriod (DCPTime(4000 + 0), DCPTime(4000 + 96000)));
BOOST_CHECK (*i++ == DCPTimePeriod (DCPTime(4000 + 96000), DCPTime(4000 + 192000)));
{
dcp->set_trim_start (ContentTime::from_seconds (0.5));
list<DCPTimePeriod> p = dcp->reels (film);
- BOOST_REQUIRE_EQUAL (p.size(), 4);
+ BOOST_REQUIRE_EQUAL (p.size(), 4U);
list<DCPTimePeriod>::const_iterator i = p.begin();
BOOST_CHECK (*i++ == DCPTimePeriod (DCPTime(4000 + 0), DCPTime(4000 + 48000)));
BOOST_CHECK (*i++ == DCPTimePeriod (DCPTime(4000 + 48000), DCPTime(4000 + 144000)));
{
dcp->set_trim_end (ContentTime::from_seconds (0.5));
list<DCPTimePeriod> p = dcp->reels (film);
- BOOST_REQUIRE_EQUAL (p.size(), 4);
+ BOOST_REQUIRE_EQUAL (p.size(), 4U);
list<DCPTimePeriod>::const_iterator i = p.begin();
BOOST_CHECK (*i++ == DCPTimePeriod (DCPTime(4000 + 0), DCPTime(4000 + 48000)));
BOOST_CHECK (*i++ == DCPTimePeriod (DCPTime(4000 + 48000), DCPTime(4000 + 144000)));
{
dcp->set_trim_start (ContentTime::from_seconds (1.5));
list<DCPTimePeriod> p = dcp->reels (film);
- BOOST_REQUIRE_EQUAL (p.size(), 3);
+ BOOST_REQUIRE_EQUAL (p.size(), 3U);
list<DCPTimePeriod>::const_iterator i = p.begin();
BOOST_CHECK (*i++ == DCPTimePeriod (DCPTime(4000 + 0), DCPTime(4000 + 48000)));
BOOST_CHECK (*i++ == DCPTimePeriod (DCPTime(4000 + 48000), DCPTime(4000 + 144000)));
A->video->set_length (2 * 24);
film->set_reel_type (REELTYPE_BY_VIDEO_CONTENT);
- BOOST_REQUIRE_EQUAL (film->reels().size(), 2);
+ BOOST_REQUIRE_EQUAL (film->reels().size(), 2U);
BOOST_CHECK (film->reels().front() == DCPTimePeriod(DCPTime(0), DCPTime::from_frames(2 * 24, 24)));
BOOST_CHECK (film->reels().back() == DCPTimePeriod(DCPTime::from_frames(2 * 24, 24), DCPTime::from_frames(3 * 24 + 1, 24)));
BOOST_CHECK_EQUAL (A->end(film).get(), DCPTime::from_seconds(1 + 10).get());
list<DCPTimePeriod> r = film->reels ();
- BOOST_CHECK_EQUAL (r.size(), 2);
+ BOOST_CHECK_EQUAL (r.size(), 2U);
BOOST_CHECK_EQUAL (r.front().from.get(), 0);
BOOST_CHECK_EQUAL (r.front().to.get(), DCPTime::from_seconds(1).get());
BOOST_CHECK_EQUAL (r.back().from.get(), DCPTime::from_seconds(1).get());
B->set_position (film, DCPTime::from_seconds(14));
list<DCPTimePeriod> r = film->reels ();
- BOOST_REQUIRE_EQUAL (r.size(), 4);
+ BOOST_REQUIRE_EQUAL (r.size(), 4U);
list<DCPTimePeriod>::const_iterator i = r.begin ();
BOOST_CHECK_EQUAL (i->from.get(), 0);
dcp::DCP dcp ("build/test/subtitle_reel_number_test/" + film->dcp_name());
dcp.read ();
- BOOST_REQUIRE_EQUAL (dcp.cpls().size(), 1);
+ BOOST_REQUIRE_EQUAL (dcp.cpls().size(), 1U);
shared_ptr<dcp::CPL> cpl = dcp.cpls().front();
- BOOST_REQUIRE_EQUAL (cpl->reels().size(), 6);
+ BOOST_REQUIRE_EQUAL (cpl->reels().size(), 6U);
int n = 1;
BOOST_FOREACH (shared_ptr<dcp::Reel> i, cpl->reels()) {
dcp::DCP dcp ("build/test/subtitle_reel_test/" + film->dcp_name());
dcp.read ();
- BOOST_REQUIRE_EQUAL (dcp.cpls().size(), 1);
+ BOOST_REQUIRE_EQUAL (dcp.cpls().size(), 1U);
shared_ptr<dcp::CPL> cpl = dcp.cpls().front();
list<shared_ptr<dcp::Reel> > reels = cpl->reels ();
- BOOST_REQUIRE_EQUAL (reels.size(), 2);
+ BOOST_REQUIRE_EQUAL (reels.size(), 2U);
list<shared_ptr<dcp::Reel> >::const_iterator i = reels.begin ();
BOOST_REQUIRE ((*i)->main_subtitle());
BOOST_REQUIRE ((*i)->main_subtitle()->asset());
shared_ptr<dcp::InteropSubtitleAsset> B = boost::dynamic_pointer_cast<dcp::InteropSubtitleAsset>((*i)->main_subtitle()->asset());
BOOST_REQUIRE (B);
- BOOST_REQUIRE_EQUAL (A->subtitles().size(), 1);
- BOOST_REQUIRE_EQUAL (B->subtitles().size(), 1);
+ BOOST_REQUIRE_EQUAL (A->subtitles().size(), 1U);
+ BOOST_REQUIRE_EQUAL (B->subtitles().size(), 1U);
/* These times should be the same as they are should be offset from the start of the reel */
BOOST_CHECK (A->subtitles().front()->in() == B->subtitles().front()->in());
content->set_video_frame_rate (24);
film->set_video_frame_rate (24);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
shared_ptr<Piece> piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (0.5)), 12);
content->set_video_frame_rate (24);
film->set_video_frame_rate (24);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (0.50)), 0);
content->set_video_frame_rate (24);
film->set_video_frame_rate (24);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (0.50)), 0);
content->set_video_frame_rate (24);
film->set_video_frame_rate (25);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (0.6)), 15);
content->set_video_frame_rate (24);
film->set_video_frame_rate (25);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (0.60)), 0);
content->set_video_frame_rate (24);
film->set_video_frame_rate (25);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (0.60)), 0);
content->set_video_frame_rate (24);
film->set_video_frame_rate (48);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (0.5)), 12);
content->set_video_frame_rate (24);
film->set_video_frame_rate (48);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (0.50)), 0);
content->set_video_frame_rate (24);
film->set_video_frame_rate (48);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (0.50)), 0);
content->set_video_frame_rate (48);
film->set_video_frame_rate (24);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (0.5)), 24);
content->set_video_frame_rate (48);
film->set_video_frame_rate (24);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (0.50)), 0);
content->set_video_frame_rate (48);
film->set_video_frame_rate (24);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (0.50)), 0);
content->set_video_frame_rate (29.9978733);
film->set_video_frame_rate (30);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime (3200)), 1);
content->set_video_frame_rate (24);
film->set_video_frame_rate (24);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
shared_ptr<Piece> piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->content_video_to_dcp (piece, 0).get(), 0);
BOOST_CHECK_EQUAL (player->content_video_to_dcp (piece, 12).get(), DCPTime::from_seconds(0.5).get());
content->set_video_frame_rate (24);
film->set_video_frame_rate (24);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 0).get(), DCPTime::from_seconds(3.00).get());
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 36).get(), DCPTime::from_seconds(4.50).get());
content->set_video_frame_rate (24);
film->set_video_frame_rate (24);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 0).get(), DCPTime::from_seconds(1.50).get());
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 36).get(), DCPTime::from_seconds(3.00).get());
content->set_video_frame_rate (24);
film->set_video_frame_rate (25);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 0).get(), 0);
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 15).get(), DCPTime::from_seconds(0.6).get());
content->set_video_frame_rate (24);
film->set_video_frame_rate (25);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 0).get(), DCPTime::from_seconds(3.00).get());
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 40).get(), DCPTime::from_seconds(4.60).get());
content->set_video_frame_rate (24);
film->set_video_frame_rate (25);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 0).get(), 142080);
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 40).get(), 295680);
content->set_video_frame_rate (24);
film->set_video_frame_rate (48);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 0).get(), 0);
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 12).get(), DCPTime::from_seconds(0.5).get());
content->set_video_frame_rate (24);
film->set_video_frame_rate (48);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 0).get(), DCPTime::from_seconds(3.00).get());
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 36).get(), DCPTime::from_seconds(4.50).get());
content->set_video_frame_rate (24);
film->set_video_frame_rate (48);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 0).get(), DCPTime::from_seconds(1.50).get());
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 36).get(), DCPTime::from_seconds(3.00).get());
content->set_video_frame_rate (48);
film->set_video_frame_rate (24);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 0).get(), 0);
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 24).get(), DCPTime::from_seconds(0.5).get());
content->set_video_frame_rate (48);
film->set_video_frame_rate (24);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 0).get(), DCPTime::from_seconds(3.00).get());
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 72).get(), DCPTime::from_seconds(4.50).get());
content->set_video_frame_rate (48);
film->set_video_frame_rate (24);
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 0).get(), DCPTime::from_seconds(1.50).get());
BOOST_CHECK_EQUAL (player->content_video_to_dcp(piece, 72).get(), DCPTime::from_seconds(3.00).get());
film->set_video_frame_rate (24);
stream->_frame_rate = 48000;
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
shared_ptr<Piece> piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime::from_seconds (0.5)), 24000);
film->set_video_frame_rate (24);
stream->_frame_rate = 48000;
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime::from_seconds (0.50)), 0);
film->set_video_frame_rate (24);
stream->_frame_rate = 48000;
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime::from_seconds (0.50)), 0);
film->set_video_frame_rate (25);
stream->_frame_rate = 48000;
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime::from_seconds (0.6)), 28800);
film->set_video_frame_rate (25);
stream->_frame_rate = 48000;
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime::from_seconds (0.60)), 0);
film->set_video_frame_rate (25);
stream->_frame_rate = 48000;
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime::from_seconds (0.60)), 0);
film->set_video_frame_rate (48);
stream->_frame_rate = 48000;
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime::from_seconds (0.5)), 24000);
film->set_video_frame_rate (24);
stream->_frame_rate = 48000;
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime::from_seconds (0.50)), 0);
film->set_video_frame_rate (24);
stream->_frame_rate = 48000;
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime::from_seconds (0.50)), 0);
film->set_video_frame_rate (48);
stream->_frame_rate = 48000;
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime::from_seconds (0.5)), 24000);
film->set_video_frame_rate (24);
stream->_frame_rate = 48000;
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime::from_seconds (0.50)), 0);
film->set_video_frame_rate (24);
stream->_frame_rate = 48000;
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime::from_seconds (0.50)), 0);
film->set_video_frame_rate (24);
stream->_frame_rate = 44100;
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime::from_seconds (0.5)), 24000);
film->set_video_frame_rate (24);
stream->_frame_rate = 44100;
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime::from_seconds (0.50)), 0);
film->set_video_frame_rate (24);
stream->_frame_rate = 44100;
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 0);
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime::from_seconds (0.50)), 0);
film->set_video_frame_rate (24);
stream->_frame_rate = 48000;
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_pieces.size(), 1U);
piece = player->_pieces.front ();
BOOST_CHECK_EQUAL (player->dcp_to_resampled_audio (piece, DCPTime ()), 54143L * 48000);
}
dcp.read ();
list<shared_ptr<dcp::CPL> > cpls = dcp.cpls ();
- BOOST_REQUIRE_EQUAL (cpls.size(), 1);
+ BOOST_REQUIRE_EQUAL (cpls.size(), 1U);
list<shared_ptr<dcp::Reel> > reels = cpls.front()->reels ();
- BOOST_REQUIRE_EQUAL (reels.size(), 1);
+ BOOST_REQUIRE_EQUAL (reels.size(), 1U);
/* Check sound */
BOOST_AUTO_TEST_CASE (utf8_strlen_test)
{
- BOOST_CHECK_EQUAL (utf8_strlen("hello world"), 11);
- BOOST_CHECK_EQUAL (utf8_strlen("hëllo world"), 11);
- BOOST_CHECK_EQUAL (utf8_strlen("hëłlo wørld"), 11);
+ BOOST_CHECK_EQUAL (utf8_strlen("hello world"), 11U);
+ BOOST_CHECK_EQUAL (utf8_strlen("hëllo world"), 11U);
+ BOOST_CHECK_EQUAL (utf8_strlen("hëłlo wørld"), 11U);
}
#ifdef DCPOMATIC_VARIANT_SWAROOP
dcp::DCP ov_c (ov->dir (ov->dcp_name ()));
ov_c.read ();
- BOOST_REQUIRE_EQUAL (ov_c.cpls().size(), 1);
- BOOST_REQUIRE_EQUAL (ov_c.cpls().front()->reels().size(), 1);
+ BOOST_REQUIRE_EQUAL (ov_c.cpls().size(), 1U);
+ BOOST_REQUIRE_EQUAL (ov_c.cpls().front()->reels().size(), 1U);
BOOST_REQUIRE (ov_c.cpls().front()->reels().front()->main_picture());
string const pic_id = ov_c.cpls().front()->reels().front()->main_picture()->id();
BOOST_REQUIRE (ov_c.cpls().front()->reels().front()->main_sound());
dcp::DCP vf_c (vf->dir (vf->dcp_name ()));
vf_c.read ();
- BOOST_REQUIRE_EQUAL (vf_c.cpls().size(), 1);
- BOOST_REQUIRE_EQUAL (vf_c.cpls().front()->reels().size(), 1);
+ BOOST_REQUIRE_EQUAL (vf_c.cpls().size(), 1U);
+ BOOST_REQUIRE_EQUAL (vf_c.cpls().front()->reels().size(), 1U);
BOOST_REQUIRE (vf_c.cpls().front()->reels().front()->main_picture());
BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_picture()->id(), pic_id);
BOOST_REQUIRE (vf_c.cpls().front()->reels().front()->main_sound());
dcp::DCP vf_c (vf->dir (vf->dcp_name ()));
vf_c.read ();
- BOOST_REQUIRE_EQUAL (vf_c.cpls().size(), 1);
- BOOST_REQUIRE_EQUAL (vf_c.cpls().front()->reels().size(), 1);
+ BOOST_REQUIRE_EQUAL (vf_c.cpls().size(), 1U);
+ BOOST_REQUIRE_EQUAL (vf_c.cpls().front()->reels().size(), 1U);
BOOST_REQUIRE (vf_c.cpls().front()->reels().front()->main_picture());
BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_picture()->entry_point().get_value_or(0), 24);
BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_picture()->actual_duration(), 72);
dcp::DCP ov_c (ov->dir (ov->dcp_name ()));
ov_c.read ();
- BOOST_REQUIRE_EQUAL (ov_c.cpls().size(), 1);
- BOOST_REQUIRE_EQUAL (ov_c.cpls().front()->reels().size(), 1);
+ BOOST_REQUIRE_EQUAL (ov_c.cpls().size(), 1U);
+ BOOST_REQUIRE_EQUAL (ov_c.cpls().front()->reels().size(), 1U);
BOOST_REQUIRE (ov_c.cpls().front()->reels().front()->main_picture());
string const pic_id = ov_c.cpls().front()->reels().front()->main_picture()->id();
BOOST_REQUIRE (ov_c.cpls().front()->reels().front()->main_sound());
dcp::DCP vf_c (vf->dir (vf->dcp_name ()));
vf_c.read ();
- BOOST_REQUIRE_EQUAL (vf_c.cpls().size(), 1);
- BOOST_REQUIRE_EQUAL (vf_c.cpls().front()->reels().size(), 2);
+ BOOST_REQUIRE_EQUAL (vf_c.cpls().size(), 1U);
+ BOOST_REQUIRE_EQUAL (vf_c.cpls().front()->reels().size(), 2U);
BOOST_REQUIRE (vf_c.cpls().front()->reels().back()->main_picture());
BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().back()->main_picture()->id(), pic_id);
BOOST_REQUIRE (vf_c.cpls().front()->reels().back()->main_sound());
/* Check that the selected reel assets are right */
shared_ptr<Player> player (new Player(vf));
list<ReferencedReelAsset> a = player->get_reel_assets();
- BOOST_REQUIRE_EQUAL (a.size(), 4);
+ BOOST_REQUIRE_EQUAL (a.size(), 4U);
list<ReferencedReelAsset>::const_iterator i = a.begin();
BOOST_CHECK (i->period == DCPTimePeriod(DCPTime(0), DCPTime(960000)));
++i;