X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fj2k_encoder.h;h=b4542c40a147cca4ccbc62b39f340a5f6a660afe;hb=8f12e84009d7c2685bb2eeb32665876463d4e6e5;hp=cc8a854eb1f852515bcf80adb4d7bbd7d6d467d9;hpb=d8ea1796f34ff894b148a0af78c0a547e0496ee1;p=dcpomatic.git diff --git a/src/lib/j2k_encoder.h b/src/lib/j2k_encoder.h index cc8a854eb..b4542c40a 100644 --- a/src/lib/j2k_encoder.h +++ b/src/lib/j2k_encoder.h @@ -63,12 +63,12 @@ public: void begin (); /** Called to pass a bit of video to be encoded as the next DCP frame */ - void encode (boost::shared_ptr pv, DCPTime time); + void encode (boost::shared_ptr pv, dcpomatic::DCPTime time); /** Called when a processing run has finished */ void end (); - float current_encoding_rate () const; + boost::optional current_encoding_rate () const; int video_frames_enqueued () const; void servers_list_changed (); @@ -89,7 +89,7 @@ private: /** Mutex for _threads */ mutable boost::mutex _threads_mutex; - std::list _threads; + std::list _threads; mutable boost::mutex _queue_mutex; std::list > _queue; /** condition to manage thread wakeups when we have nothing to do */ @@ -100,8 +100,8 @@ private: boost::shared_ptr _writer; Waker _waker; - boost::shared_ptr _last_player_video; - boost::optional _last_player_video_time; + boost::shared_ptr _last_player_video[EYES_COUNT]; + boost::optional _last_player_video_time; boost::signals2::scoped_connection _server_found_connection; };