From 07f3a8fccdf9127b2eaf4a6f3425185dba73a23f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 1 Apr 2014 10:02:09 +0100 Subject: Basic support for separate 3D left/right sources. --- src/lib/video_decoder.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lib/video_decoder.cc') diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc index 3ae963a20..2a33a8c3a 100644 --- a/src/lib/video_decoder.cc +++ b/src/lib/video_decoder.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2012 Carl Hetherington + Copyright (C) 2012-2014 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -57,6 +57,12 @@ VideoDecoder::video (shared_ptr image, bool same, VideoContent::Fra Video (image->crop (Crop (0, 0, half, 0), true), EYES_RIGHT, same, frame); break; } + case VIDEO_FRAME_TYPE_3D_LEFT: + Video (image, EYES_LEFT, same, frame); + break; + case VIDEO_FRAME_TYPE_3D_RIGHT: + Video (image, EYES_RIGHT, same, frame); + break; } _video_position = frame + 1; -- cgit v1.2.3