summaryrefslogtreecommitdiff
path: root/src/lib/video_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-04-01 10:02:09 +0100
committerCarl Hetherington <cth@carlh.net>2014-04-01 10:02:09 +0100
commit07f3a8fccdf9127b2eaf4a6f3425185dba73a23f (patch)
tree6c09a684a005597ae83b113d7fa038b3dfb87737 /src/lib/video_decoder.cc
parentf8cf68ca666e016d0e5d3834f7a006f93d803e73 (diff)
Basic support for separate 3D left/right sources.
Diffstat (limited to 'src/lib/video_decoder.cc')
-rw-r--r--src/lib/video_decoder.cc8
1 files changed, 7 insertions, 1 deletions
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 <cth@carlh.net>
+ Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
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<const Image> 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;