X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_content.h;h=7ecc2813a067cf70f83509f5f1fe6aa23bf755ce;hb=HEAD;hp=7214d35e40d2994b5d525c0a9120cb39a96d1905;hpb=d5c059a2ff9bab5c2973db6bc4860591679dd42b;p=dcpomatic.git diff --git a/src/lib/video_content.h b/src/lib/video_content.h index 7214d35e4..495d000e1 100644 --- a/src/lib/video_content.h +++ b/src/lib/video_content.h @@ -25,10 +25,13 @@ #include "colour_conversion.h" #include "content_part.h" +#include "crop.h" #include "dcpomatic_time.h" #include "pixel_quanta.h" -#include "types.h" #include "user_property.h" +#include "video_frame_type.h" +#include "video_range.h" +#include "types.h" #include #include @@ -82,7 +85,7 @@ public: return _length; } - dcp::Size size () const { + boost::optional size () const { boost::mutex::scoped_lock lm (_mutex); return _size; } @@ -201,9 +204,9 @@ public: /* XXX: names for these? */ - dcp::Size size_after_3d_split () const; - dcp::Size size_after_crop () const; - dcp::Size scaled_size (dcp::Size container_size); + boost::optional size_after_3d_split() const; + boost::optional size_after_crop() const; + boost::optional scaled_size(dcp::Size container_size); boost::optional fade (std::shared_ptr film, Frame) const; @@ -211,12 +214,14 @@ public: void set_length (Frame); - void take_from_examiner (std::shared_ptr); + void take_from_examiner(std::shared_ptr film, std::shared_ptr); void add_properties (std::list &) const; void modify_position (std::shared_ptr film, dcpomatic::DCPTime& pos) const; void modify_trim_start (dcpomatic::ContentTime& pos) const; + void rotate_size(); + static std::shared_ptr from_xml (Content* parent, cxml::ConstNodePtr node, int version, VideoRange video_range_hint); private: @@ -234,7 +239,7 @@ private: bool _use; Frame _length; boost::optional _colour_conversion; - dcp::Size _size; + boost::optional _size; VideoFrameType _frame_type; Crop _crop; /** ratio to scale cropped image to (or none to guess); i.e. if set, scale to _custom_ratio:1 */