X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_content.h;h=7214d35e40d2994b5d525c0a9120cb39a96d1905;hb=600e0c67c61b29427602918daebb38a4822f95cb;hp=de151e1451d9f9583168a65a19687a045cc5a309;hpb=c2a17a87868eba87072fc369102b2b3cd8905e5a;p=dcpomatic.git diff --git a/src/lib/video_content.h b/src/lib/video_content.h index de151e145..7214d35e4 100644 --- a/src/lib/video_content.h +++ b/src/lib/video_content.h @@ -60,7 +60,7 @@ class VideoContent : public ContentPart, public std::enable_shared_from_this>); void as_xml (xmlpp::Node *) const; @@ -89,6 +89,7 @@ public: void set_frame_type (VideoFrameType); + void set_crop (Crop crop); void set_left_crop (int); void set_right_crop (int); void set_top_crop (int); @@ -113,27 +114,29 @@ public: return _frame_type; } - Crop crop () const { + Crop actual_crop () const; + + Crop requested_crop () const { boost::mutex::scoped_lock lm (_mutex); return _crop; } - int left_crop () const { + int requested_left_crop () const { boost::mutex::scoped_lock lm (_mutex); return _crop.left; } - int right_crop () const { + int requested_right_crop () const { boost::mutex::scoped_lock lm (_mutex); return _crop.right; } - int top_crop () const { + int requested_top_crop () const { boost::mutex::scoped_lock lm (_mutex); return _crop.top; } - int bottom_crop () const { + int requested_bottom_crop () const { boost::mutex::scoped_lock lm (_mutex); return _crop.bottom; } @@ -181,6 +184,11 @@ public: return _range; } + PixelQuanta pixel_quanta () const { + boost::mutex::scoped_lock lm (_mutex); + return _pixel_quanta; + } + bool use () const { boost::mutex::scoped_lock lm (_mutex); return _use; @@ -209,7 +217,7 @@ public: void modify_position (std::shared_ptr film, dcpomatic::DCPTime& pos) const; void modify_trim_start (dcpomatic::ContentTime& pos) const; - static std::shared_ptr from_xml (Content* parent, cxml::ConstNodePtr, int); + static std::shared_ptr from_xml (Content* parent, cxml::ConstNodePtr node, int version, VideoRange video_range_hint); private: