X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fsimple_video_view.h;h=31756b5d85eceecbe62a693a5ed524adeb6edf5f;hb=c2090b5a9e24f816ee8661034700970bcd6a8194;hp=d271416528390ad39b04377614d53098f3791962;hpb=7c33cdd95a23ff784c0e0731a9d1444ce9bb8f09;p=dcpomatic.git diff --git a/src/wx/simple_video_view.h b/src/wx/simple_video_view.h index d27141652..31756b5d8 100644 --- a/src/wx/simple_video_view.h +++ b/src/wx/simple_video_view.h @@ -19,7 +19,12 @@ */ #include "video_view.h" +#include "lib/position.h" +#include "lib/warnings.h" +#include +DCPOMATIC_DISABLE_WARNINGS #include +DCPOMATIC_ENABLE_WARNINGS class FilmViewer; @@ -28,24 +33,26 @@ class SimpleVideoView : public VideoView public: SimpleVideoView (FilmViewer* viewer, wxWindow* parent); - void set_image (boost::shared_ptr image) { - _image = image; - } - wxWindow* get () const { return _panel; } void update (); - void start (); + NextFrameResult display_next_frame (bool non_blocking); private: + void set_image (std::shared_ptr image) { + _image = image; + } + + void refresh_panel (); void paint (); void timer (); - bool get (bool lazy); wxPanel* _panel; - boost::shared_ptr _image; + std::shared_ptr _image; wxTimer _timer; + Position _inter_position; + dcp::Size _inter_size; };