From 4eb77be6999a3758998bfe37b28d4bb1cd55d51e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 23 Jul 2013 11:14:44 +0100 Subject: Various 3D fixes. --- src/lib/encoder.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/lib/encoder.cc') diff --git a/src/lib/encoder.cc b/src/lib/encoder.cc index 8e61a0d60..7959fda6f 100644 --- a/src/lib/encoder.cc +++ b/src/lib/encoder.cc @@ -175,6 +175,8 @@ Encoder::process_video (shared_ptr image, Eyes eyes, bool same) { boost::mutex::scoped_lock lock (_mutex); + /* XXX: discard 3D here if required */ + /* Wait until the queue has gone down a bit */ while (_queue.size() >= _threads.size() * 2 && !_terminate) { TIMING ("decoder sleeps with queue of %1", _queue.size()); @@ -212,7 +214,9 @@ Encoder::process_video (shared_ptr image, Eyes eyes, bool same) _have_a_real_frame[eyes] = true; } - ++_video_frames_out; + if (eyes != EYES_LEFT) { + ++_video_frames_out; + } } void @@ -262,7 +266,7 @@ Encoder::encoder_thread (ServerDescription* server) TIMING ("encoder thread %1 wakes with queue of %2", boost::this_thread::get_id(), _queue.size()); shared_ptr vf = _queue.front (); - _film->log()->log (String::compose (N_("Encoder thread %1 pops frame %2 from queue"), boost::this_thread::get_id(), vf->frame()), Log::VERBOSE); + _film->log()->log (String::compose (N_("Encoder thread %1 pops frame %2 (%3) from queue"), boost::this_thread::get_id(), vf->frame(), vf->eyes ())); _queue.pop_front (); lock.unlock (); -- cgit v1.2.3