diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-04-12 16:27:50 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-18 11:50:29 +0100 |
| commit | 500a503a982e8e62884035e156e47ed61a20ef85 (patch) | |
| tree | b22c7b6cb267e47eb743d49b733b5c458cd0050c /src/lib/video_content.h | |
| parent | cb5164d75c51275f185425e23a2622d354086f12 (diff) | |
Basic detachment of VideoContent from Content.
Diffstat (limited to 'src/lib/video_content.h')
| -rw-r--r-- | src/lib/video_content.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/lib/video_content.h b/src/lib/video_content.h index 8e2081e3a..9577d2d85 100644 --- a/src/lib/video_content.h +++ b/src/lib/video_content.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2014 Carl Hetherington <cth@carlh.net> + Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,7 +20,6 @@ #ifndef DCPOMATIC_VIDEO_CONTENT_H #define DCPOMATIC_VIDEO_CONTENT_H -#include "content.h" #include "colour_conversion.h" #include "video_content_scale.h" @@ -40,19 +39,18 @@ public: static int const VIDEO_FADE_OUT; }; -class VideoContent : public virtual Content +class VideoContent { public: VideoContent (boost::shared_ptr<const Film>); - VideoContent (boost::shared_ptr<const Film>, boost::filesystem::path); VideoContent (boost::shared_ptr<const Film>, cxml::ConstNodePtr, int); VideoContent (boost::shared_ptr<const Film>, std::vector<boost::shared_ptr<Content> >); void as_xml (xmlpp::Node *) const; std::string technical_summary () const; - virtual std::string identifier () const; + std::string identifier () const; - virtual void set_default_colour_conversion (); + void set_default_colour_conversion (); Frame video_length () const { boost::mutex::scoped_lock lm (_mutex); @@ -171,16 +169,17 @@ public: std::string processing_description () const; -protected: +private: void take_from_video_examiner (boost::shared_ptr<VideoExaminer>); void add_properties (std::list<UserProperty> &) const; + boost::weak_ptr<const Film> _film; + boost::mutex _mutex; Frame _video_length; /** Video frame rate, or not set if this content should use the DCP's frame rate */ boost::optional<double> _video_frame_rate; boost::optional<ColourConversion> _colour_conversion; -private: friend struct ffmpeg_pts_offset_test; friend struct best_dcp_frame_rate_test_single; friend struct best_dcp_frame_rate_test_double; |
