X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_content.h;h=8b0461e3fb3ab1349ca03d7ba789cef7b6853a0a;hb=596441a4e8cf03a88113646ca6da2f90e721a38b;hp=75e507d4d799a7cfc24be6224bdaca26099c7eed;hpb=147cca5876dfbdf56e21289c3a36bec4b4850191;p=dcpomatic.git diff --git a/src/lib/video_content.h b/src/lib/video_content.h index 75e507d4d..8b0461e3f 100644 --- a/src/lib/video_content.h +++ b/src/lib/video_content.h @@ -31,11 +31,13 @@ public: static int const VIDEO_LENGTH; static int const VIDEO_SIZE; static int const VIDEO_FRAME_RATE; + static int const VIDEO_CROP; }; class VideoContent : public virtual Content { public: + VideoContent (Time); VideoContent (boost::filesystem::path); VideoContent (boost::shared_ptr); VideoContent (VideoContent const &); @@ -58,6 +60,17 @@ public: return _video_frame_rate; } + void set_crop (Crop); + void set_left_crop (int); + void set_right_crop (int); + void set_top_crop (int); + void set_bottom_crop (int); + + Crop crop () const { + boost::mutex::scoped_lock lm (_mutex); + return _crop; + } + protected: void take_from_video_decoder (boost::shared_ptr); @@ -66,6 +79,7 @@ protected: private: libdcp::Size _video_size; float _video_frame_rate; + Crop _crop; }; #endif