+2016-06-14 c.hetherington <cth@carlh.net>
+
+ * Select correct video frame type when importing DCPs (part of #806).
+
2016-06-13 Carl Hetherington <cth@carlh.net>
* Give better error messages when subtitles fail to load.
, _reference_video (false)
, _reference_audio (false)
, _reference_subtitle (false)
+ , _three_d (false)
{
video.reset (new VideoContent (this));
audio.reset (new AudioContent (this));
DCPOMATIC_ASSERT (false);
}
}
+ _three_d = node->optional_bool_child("ThreeD").get_value_or (false);
}
void
_encrypted = examiner->encrypted ();
_kdm_valid = examiner->kdm_valid ();
_standard = examiner->standard ();
+ _three_d = examiner->three_d ();
}
if (could_be_played != can_be_played ()) {
signal_changed (DCPContentProperty::CAN_BE_PLAYED);
}
+
+ video->set_frame_type (_three_d ? VIDEO_FRAME_TYPE_3D : VIDEO_FRAME_TYPE_2D);
}
string
DCPOMATIC_ASSERT (false);
}
}
+ node->add_child("ThreeD")->add_child_text (_three_d ? "1" : "0");
}
DCPTime
, _has_subtitles (false)
, _encrypted (false)
, _kdm_valid (false)
+ , _three_d (false)
{
dcp::DCP dcp (content->directory ());
dcp.read (false, 0, true);
}
_standard = dcp.standard ();
+ _three_d = !reels.empty() && reels.front()->main_picture() &&
+ dynamic_pointer_cast<dcp::StereoPictureAsset> (reels.front()->main_picture()->asset());
}
return _standard;
}
+ bool three_d () const {
+ return _three_d;
+ }
+
private:
boost::optional<double> _video_frame_rate;
boost::optional<dcp::Size> _video_size;
bool _encrypted;
bool _kdm_valid;
boost::optional<dcp::Standard> _standard;
+ bool _three_d;
};