static int const COLOUR_CONVERSION;
static int const FADE_IN;
static int const FADE_OUT;
static int const RANGE;
static int const CUSTOM_RATIO;
static int const CUSTOM_SIZE;
static int const COLOUR_CONVERSION;
static int const FADE_IN;
static int const FADE_OUT;
static int const RANGE;
static int const CUSTOM_RATIO;
static int const CUSTOM_SIZE;
class VideoContent : public ContentPart, public std::enable_shared_from_this<VideoContent>
{
public:
explicit VideoContent (Content* parent);
class VideoContent : public ContentPart, public std::enable_shared_from_this<VideoContent>
{
public:
explicit VideoContent (Content* parent);
- VideoContent (Content* parent, std::vector<std::shared_ptr<Content> >);
+ VideoContent (Content* parent, cxml::ConstNodePtr node, int version, VideoRange video_range_hint);
+ VideoContent (Content* parent, std::vector<std::shared_ptr<Content>>);
- dcp::Size size_after_3d_split () const;
- dcp::Size size_after_crop () const;
- dcp::Size scaled_size (dcp::Size container_size);
+ boost::optional<dcp::Size> size_after_3d_split() const;
+ boost::optional<dcp::Size> size_after_crop() const;
+ boost::optional<dcp::Size> scaled_size(dcp::Size container_size);
void add_properties (std::list<UserProperty> &) const;
void modify_position (std::shared_ptr<const Film> film, dcpomatic::DCPTime& pos) const;
void modify_trim_start (dcpomatic::ContentTime& pos) const;
void add_properties (std::list<UserProperty> &) const;
void modify_position (std::shared_ptr<const Film> film, dcpomatic::DCPTime& pos) const;
void modify_trim_start (dcpomatic::ContentTime& pos) const;
- static std::shared_ptr<VideoContent> from_xml (Content* parent, cxml::ConstNodePtr, int);
+ static std::shared_ptr<VideoContent> from_xml (Content* parent, cxml::ConstNodePtr node, int version, VideoRange video_range_hint);
VideoFrameType _frame_type;
Crop _crop;
/** ratio to scale cropped image to (or none to guess); i.e. if set, scale to _custom_ratio:1 */
VideoFrameType _frame_type;
Crop _crop;
/** ratio to scale cropped image to (or none to guess); i.e. if set, scale to _custom_ratio:1 */