summaryrefslogtreecommitdiff
path: root/src/lib/video_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-03-18 14:24:08 +0000
committerCarl Hetherington <cth@carlh.net>2014-03-18 14:24:08 +0000
commit04ef57589ebb7c0de3377172a03b24698fd2364a (patch)
treee6afb1b0d1d20e15804033929ddd6ab1b19d2d41 /src/lib/video_content.h
parent02e2271a16804a35698f513f536a9ab1893b8612 (diff)
Tentative support for 3D from alternate frames.
Also remove references to libpostproc. Requested-by: Jean-Jacques Mantello
Diffstat (limited to 'src/lib/video_content.h')
-rw-r--r--src/lib/video_content.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/video_content.h b/src/lib/video_content.h
index ea4676cec..f846b7ac9 100644
--- a/src/lib/video_content.h
+++ b/src/lib/video_content.h
@@ -96,6 +96,15 @@ public:
return _video_length;
}
+ VideoContent::Frame video_length_after_3d_combine () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ if (_video_frame_type == VIDEO_FRAME_TYPE_3D_ALTERNATE) {
+ return _video_length / 2;
+ }
+
+ return _video_length;
+ }
+
libdcp::Size video_size () const {
boost::mutex::scoped_lock lm (_mutex);
return _video_size;