class Image;
class wxWindow;
class FilmViewer;
+class Player;
class PlayerVideo;
class VideoView : public ExceptionStore, public boost::noncopyable
virtual bool display_next_frame (bool) = 0;
void clear ();
- bool refresh_metadata (boost::shared_ptr<const Film> film, dcp::Size video_container_size, dcp::Size film_frame_size);
+ bool refresh_metadata (boost::shared_ptr<const Film> film, dcp::Size player_video_container_size);
/** Emitted from the GUI thread when our display changes in size */
boost::signals2::signal<void()> Sized;
return _dropped;
}
+ int errored () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _errored;
+ }
+
int gets () const {
boost::mutex::scoped_lock lm (_mutex);
return _gets;
protected:
bool get_next_frame (bool non_blocking);
- int time_until_next_frame () const;
+ boost::optional<int> time_until_next_frame () const;
dcpomatic::DCPTime one_video_frame () const;
int video_frame_rate () const {
FilmViewer* _viewer;
-#ifdef DCPOMATIC_VARIANT_SWAROOP
- bool _in_watermark;
- int _watermark_x;
- int _watermark_y;
-#endif
-
StateTimer _state_timer;
private:
bool _three_d;
int _dropped;
+ int _errored;
int _gets;
};