using std::cout;
using std::runtime_error;
using std::map;
-using boost::shared_ptr;
-using boost::dynamic_pointer_cast;
+using std::shared_ptr;
+using std::dynamic_pointer_cast;
DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content, bool tolerant)
: DCP (content, tolerant)
, _kdm_valid (false)
, _three_d (false)
, _has_atmos (false)
+ , _atmos_length (0)
{
shared_ptr<dcp::CPL> cpl;
}
_text_count[TEXT_CLOSED_CAPTION]++;
+ _dcp_text_tracks.push_back (DCPTextTrack(j->annotation_text(), j->language().get_value_or(_("Unknown"))));
}
if (i->main_markers ()) {
if (i->atmos()) {
_has_atmos = true;
+ _atmos_length += i->atmos()->actual_duration();
+ if (_atmos_edit_rate != dcp::Fraction()) {
+ DCPOMATIC_ASSERT (i->atmos()->edit_rate() == _atmos_edit_rate);
+ }
+ _atmos_edit_rate = i->atmos()->edit_rate();
}
if (i->main_picture()) {
_standard = cpl->standard().get();
_three_d = !cpl->reels().empty() && cpl->reels().front()->main_picture() &&
dynamic_pointer_cast<dcp::StereoPictureAsset> (cpl->reels().front()->main_picture()->asset());
- _ratings = list_to_vector (cpl->ratings());
- _content_version = cpl->content_version_label_text ();
+ _ratings = cpl->ratings();
+ BOOST_FOREACH (dcp::ContentVersion i, cpl->content_versions()) {
+ _content_versions.push_back (i.label_text);
+ }
_cpl = cpl->id ();
}