summaryrefslogtreecommitdiff
path: root/src/lib/video_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-06-01 00:27:57 +0100
committerCarl Hetherington <cth@carlh.net>2019-06-01 00:27:57 +0100
commitb68fb4c103b5580509070c7733d3ae7deb46c3ce (patch)
tree32f0c602e1ff5666d6c7dde77ab0d8bcb56b87ab /src/lib/video_content.h
parentdfb23250338ceccbe0fc4e405db6e4df4875a225 (diff)
Basics of allowing video parts of FFmpegContent to be disabled (#1355 and others).
Diffstat (limited to 'src/lib/video_content.h')
-rw-r--r--src/lib/video_content.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/video_content.h b/src/lib/video_content.h
index f5fb6c9ac..6386754de 100644
--- a/src/lib/video_content.h
+++ b/src/lib/video_content.h
@@ -39,6 +39,7 @@ class Content;
class VideoContentProperty
{
public:
+ static int const USE;
static int const SIZE;
static int const FRAME_TYPE;
static int const CROP;
@@ -94,6 +95,7 @@ public:
void set_fade_out (Frame);
void set_range (VideoRange);
+ void set_use (bool);
VideoFrameType frame_type () const {
boost::mutex::scoped_lock lm (_mutex);
@@ -161,6 +163,11 @@ public:
return _range;
}
+ bool use () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _use;
+ }
+
dcp::Size size_after_3d_split () const;
dcp::Size size_after_crop () const;
@@ -191,6 +198,7 @@ private:
VideoContent (Content* parent, cxml::ConstNodePtr, int);
void setup_default_colour_conversion ();
+ bool _use;
Frame _length;
boost::optional<ColourConversion> _colour_conversion;
dcp::Size _size;