Add subtitle X offset option.
[dcpomatic.git] / src / lib / video_decoder.cc
index eaa4534e44b64ab6c6e503b06bfae280e8dde08e..e7ddec5e6cd19df910966a66fcb9e969b5c5b6ee 100644 (file)
@@ -47,6 +47,13 @@ VideoDecoder::video (shared_ptr<const Image> image, bool same, VideoContent::Fra
                Video (image->crop (Crop (half, 0, 0, 0), true), EYES_RIGHT, same, frame);
                break;
        }
+       case VIDEO_FRAME_TYPE_3D_TOP_BOTTOM:
+       {
+               int const half = image->size().height / 2;
+               Video (image->crop (Crop (0, 0, 0, half), true), EYES_LEFT, same, frame);
+               Video (image->crop (Crop (0, 0, half, 0), true), EYES_RIGHT, same, frame);
+               break;
+       }
        }
        
        _video_position = frame + 1;