diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-12-24 00:18:03 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-12-24 00:18:03 +0000 |
| commit | e194f0003b60b2607da0822485c56cd8267e78dc (patch) | |
| tree | 85aa72e1c8131372ec813c3d5a3a7f0cbb53568e /src/lib/video_decoder.cc | |
| parent | 6d39d3df8e2fed1ec5e13d54ce6cd22c59b69eba (diff) | |
| parent | 3318969a7ad685fc2f624ac0af302ca1e454e62b (diff) | |
Merge 1.0.
Diffstat (limited to 'src/lib/video_decoder.cc')
| -rw-r--r-- | src/lib/video_decoder.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc index 3a8891111..1503af955 100644 --- a/src/lib/video_decoder.cc +++ b/src/lib/video_decoder.cc @@ -48,5 +48,12 @@ VideoDecoder::video (shared_ptr<const Image> image, bool same, ContentTime time) _pending.push_back (shared_ptr<DecodedVideo> (new DecodedVideo (image->crop (Crop (half, 0, 0, 0), true), EYES_RIGHT, same, time))); 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; + } } } |
