diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-05-24 23:29:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-05-24 23:29:39 +0100 |
| commit | 92784c9c28c48859578cd6e75aa01d5657d0c341 (patch) | |
| tree | 595a34ecd2c59bf9d3dbcfa0c6f0a91b17ecfa5b /src/lib/video_content.h | |
| parent | 6c78f6d31a457ad34fb14b7c926fb418b4d6790d (diff) | |
Basic ability to set video range (JPEG/MPEG) at least for YUV content. May not work for RGB. See #1509.
Diffstat (limited to 'src/lib/video_content.h')
| -rw-r--r-- | src/lib/video_content.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/video_content.h b/src/lib/video_content.h index 3d07a0947..f5fb6c9ac 100644 --- a/src/lib/video_content.h +++ b/src/lib/video_content.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net> + Copyright (C) 2013-2019 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -46,6 +46,7 @@ public: static int const COLOUR_CONVERSION; static int const FADE_IN; static int const FADE_OUT; + static int const RANGE; }; class VideoContent : public ContentPart, public boost::enable_shared_from_this<VideoContent> @@ -92,6 +93,8 @@ public: void set_fade_in (Frame); void set_fade_out (Frame); + void set_range (VideoRange); + VideoFrameType frame_type () const { boost::mutex::scoped_lock lm (_mutex); return _frame_type; @@ -153,6 +156,11 @@ public: return _fade_out; } + VideoRange range () const { + boost::mutex::scoped_lock lm (_mutex); + return _range; + } + dcp::Size size_after_3d_split () const; dcp::Size size_after_crop () const; @@ -194,6 +202,7 @@ private: bool _yuv; Frame _fade_in; Frame _fade_out; + VideoRange _range; }; #endif |
