X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_content.h;h=9f6cc105ea42155fec19d9776ff016a368e96280;hb=0185ba27b0e9c52a173147c1380ec5f345109afc;hp=ce645bb41fd714c8c6ad5c0b1c734827bbbee9a6;hpb=70b72b53eab0f247eb4dc605a2d669d4adb4e469;p=dcpomatic.git diff --git a/src/lib/video_content.h b/src/lib/video_content.h index ce645bb41..9f6cc105e 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 @@ -60,7 +63,7 @@ class VideoContent : public ContentPart, public std::enable_shared_from_this>); void as_xml (xmlpp::Node *) const; @@ -89,6 +92,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); @@ -183,6 +187,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; @@ -205,13 +214,13 @@ 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; - 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: