Tentative support for 3D from alternate frames.
[dcpomatic.git] / src / lib / video_content.h
index ea4676cecbe1607fe4a86e47a71c278e763e86b2..f846b7ac97a095e4db0eb95d5fb0a33d17f341f2 100644 (file)
@@ -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;