Primitive dropped frame count in display.
[dcpomatic.git] / src / wx / film_viewer.h
index 3f7a3be331a34c5f6626cb3add171f06c1fb45c2..419ee4c294b1be9db7d8d23e91c98961446cb20c 100644 (file)
@@ -60,6 +60,10 @@ public:
 
        void refresh ();
 
+       int dropped () const {
+               return _dropped;
+       }
+
        int audio_callback (void* out, unsigned int frames);
 
        boost::signals2::signal<void (boost::weak_ptr<PlayerVideo>)> ImageChanged;
@@ -94,6 +98,7 @@ private:
        void start ();
        bool stop ();
        Frame average_latency () const;
+       DCPTime one_video_frame () const;
 
        boost::shared_ptr<Film> _film;
        boost::shared_ptr<Player> _player;
@@ -136,10 +141,12 @@ private:
        bool _playing;
        boost::shared_ptr<Butler> _butler;
 
-        std::list<Frame> _latency_history;
-        /** Mutex to protect _latency_history */
-        mutable boost::mutex _latency_history_mutex;
-        int _latency_history_count;
+       std::list<Frame> _latency_history;
+       /** Mutex to protect _latency_history */
+       mutable boost::mutex _latency_history_mutex;
+       int _latency_history_count;
+
+       int _dropped;
 
        boost::signals2::scoped_connection _config_changed_connection;
 };