X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_content.h;h=4206efc2c487d047a744d6634271f810d6d447e2;hb=04533b9cf34ce8089113015715083ee9c5b2b001;hp=6b91997c9f4076c91ffdd9d536ee21106bc0e9d0;hpb=1dcfb3a26085ebb3703f40e2f51e43ce3d98be50;p=dcpomatic.git diff --git a/src/lib/video_content.h b/src/lib/video_content.h index 6b91997c9..4206efc2c 100644 --- a/src/lib/video_content.h +++ b/src/lib/video_content.h @@ -43,7 +43,7 @@ public: VideoContentScale (); VideoContentScale (Ratio const *); VideoContentScale (bool); - VideoContentScale (boost::shared_ptr); + VideoContentScale (cxml::NodePtr); dcp::Size size (boost::shared_ptr, dcp::Size, dcp::Size) const; std::string id () const; @@ -83,7 +83,7 @@ public: VideoContent (boost::shared_ptr); VideoContent (boost::shared_ptr, DCPTime, ContentTime); VideoContent (boost::shared_ptr, boost::filesystem::path); - VideoContent (boost::shared_ptr, boost::shared_ptr, int); + VideoContent (boost::shared_ptr, cxml::ConstNodePtr, int); VideoContent (boost::shared_ptr, std::vector >); void as_xml (xmlpp::Node *) const; @@ -171,6 +171,9 @@ public: ContentTime dcp_time_to_content_time (DCPTime) const; + void scale_and_crop_to_fit_width (); + void scale_and_crop_to_fit_height (); + protected: void take_from_video_examiner (boost::shared_ptr);