From da19eaac0dd80afed3dd282d61ea3298196a5090 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 13 Dec 2013 10:23:20 +0000 Subject: Start of changing frame numbers to time. --- src/lib/video_decoder.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/lib/video_decoder.cc') diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc index eaa4534e4..72caf72e9 100644 --- a/src/lib/video_decoder.cc +++ b/src/lib/video_decoder.cc @@ -28,27 +28,24 @@ using boost::shared_ptr; VideoDecoder::VideoDecoder (shared_ptr f, shared_ptr c) : Decoder (f) , _video_content (c) - , _video_position (0) { } void -VideoDecoder::video (shared_ptr image, bool same, VideoContent::Frame frame) +VideoDecoder::video (shared_ptr image, bool same, ContentTime time) { switch (_video_content->video_frame_type ()) { case VIDEO_FRAME_TYPE_2D: - Video (image, EYES_BOTH, same, frame); + Video (image, EYES_BOTH, same, time); break; case VIDEO_FRAME_TYPE_3D_LEFT_RIGHT: { int const half = image->size().width / 2; - Video (image->crop (Crop (0, half, 0, 0), true), EYES_LEFT, same, frame); - Video (image->crop (Crop (half, 0, 0, 0), true), EYES_RIGHT, same, frame); + Video (image->crop (Crop (0, half, 0, 0), true), EYES_LEFT, same, time); + Video (image->crop (Crop (half, 0, 0, 0), true), EYES_RIGHT, same, time); break; } } - - _video_position = frame + 1; } -- cgit v1.2.3