Don't say we're encoding at 0fps when we're waiting for the timing history to stablise.
[dcpomatic.git] / src / lib / j2k_encoder.h
index cc8a854eb1f852515bcf80adb4d7bbd7d6d467d9..b723ca88f7afe2211364f25b817360ec639d4872 100644 (file)
@@ -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<PlayerVideo> pv, DCPTime time);
+       void encode (boost::shared_ptr<PlayerVideo> pv, dcpomatic::DCPTime time);
 
        /** Called when a processing run has finished */
        void end ();
 
-       float current_encoding_rate () const;
+       boost::optional<float> current_encoding_rate () const;
        int video_frames_enqueued () const;
 
        void servers_list_changed ();
@@ -100,8 +100,8 @@ private:
        boost::shared_ptr<Writer> _writer;
        Waker _waker;
 
-       boost::shared_ptr<PlayerVideo> _last_player_video;
-       boost::optional<DCPTime> _last_player_video_time;
+       boost::shared_ptr<PlayerVideo> _last_player_video[EYES_COUNT];
+       boost::optional<dcpomatic::DCPTime> _last_player_video_time;
 
        boost::signals2::scoped_connection _server_found_connection;
 };