summaryrefslogtreecommitdiff
path: root/src/lib/video_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-22 01:25:03 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-22 01:25:03 +0100
commita45f6245e8cc785fab436c9282fa3d1baf3a8575 (patch)
treec6ae82be2319446c35ebad6666f68dbb109f8904 /src/lib/video_content.h
parent6c3ded5baac385d95ec2cf5e625c6c796c23e318 (diff)
parent3ffd0163026be24e5373e0674c3301ed37546e44 (diff)
Merge tag 'v2.16.78' into v2.17.xv2.17.12
Diffstat (limited to 'src/lib/video_content.h')
-rw-r--r--src/lib/video_content.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/video_content.h b/src/lib/video_content.h
index 25e43b0eb..d31c25f13 100644
--- a/src/lib/video_content.h
+++ b/src/lib/video_content.h
@@ -85,7 +85,7 @@ public:
return _length;
}
- dcp::Size size () const {
+ boost::optional<dcp::Size> size () const {
boost::mutex::scoped_lock lm (_mutex);
return _size;
}
@@ -204,9 +204,9 @@ public:
/* XXX: names for these? */
- dcp::Size size_after_3d_split () const;
- dcp::Size size_after_crop () const;
- dcp::Size scaled_size (dcp::Size container_size);
+ boost::optional<dcp::Size> size_after_3d_split() const;
+ boost::optional<dcp::Size> size_after_crop() const;
+ boost::optional<dcp::Size> scaled_size(dcp::Size container_size);
boost::optional<double> fade(std::shared_ptr<const Film> film, dcpomatic::ContentTime time) const;
@@ -237,7 +237,7 @@ private:
bool _use;
Frame _length;
boost::optional<ColourConversion> _colour_conversion;
- dcp::Size _size;
+ boost::optional<dcp::Size> _size;
VideoFrameType _frame_type;
Crop _crop;
/** ratio to scale cropped image to (or none to guess); i.e. if set, scale to _custom_ratio:1 */