Various hacks.
[dcpomatic.git] / src / lib / video_content.h
index b2ec87e2b287f35cd40ec18504d4ca3f0a5e5c5a..8b0461e3fb3ab1349ca03d7ba789cef7b6853a0a 100644 (file)
@@ -31,18 +31,19 @@ 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<const cxml::Node>);
        VideoContent (VideoContent const &);
 
        void as_xml (xmlpp::Node *) const;
        virtual std::string information () const;
-       Time temporal_length () const;
 
        ContentVideoFrame video_length () const {
                boost::mutex::scoped_lock lm (_mutex);
@@ -59,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<VideoDecoder>);
 
@@ -67,6 +79,7 @@ protected:
 private:
        libdcp::Size _video_size;
        float _video_frame_rate;
+       Crop _crop;
 };
 
 #endif