From eb1a65ba718c15a831d6c99a9bf1a51998aa4f9a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 23 Dec 2013 01:20:52 +0000 Subject: Add top/bottom option for 3D frames. --- src/lib/video_decoder.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/lib/video_decoder.cc') diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc index eaa4534e4..e7ddec5e6 100644 --- a/src/lib/video_decoder.cc +++ b/src/lib/video_decoder.cc @@ -47,6 +47,13 @@ VideoDecoder::video (shared_ptr 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; -- cgit v1.2.3