X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fsimple_video_view.h;h=cbb162023c29e402bb0561b0570a62cc0b8a38b7;hb=8c39f950ec8f8b3cf4d258279ab499d7e71dafc8;hp=82c77a4efeb91ad2f9d5def42950299a877448b7;hpb=c76b1fd7fe41a7e371ae1fe1dad21c87a19839f1;p=dcpomatic.git diff --git a/src/wx/simple_video_view.h b/src/wx/simple_video_view.h index 82c77a4ef..cbb162023 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,21 +33,22 @@ class SimpleVideoView : public VideoView public: SimpleVideoView (FilmViewer* viewer, wxWindow* parent); - void set_image (boost::shared_ptr image) { - _image = image; - } - - wxWindow* get () const { + wxWindow* get () const override { return _panel; } - void update (); + void update () override; + void start () override; + NextFrameResult display_next_frame (bool non_blocking) override; private: + void refresh_panel (); void paint (); void timer (); wxPanel* _panel; - boost::shared_ptr _image; + std::shared_ptr _image; wxTimer _timer; + Position _inter_position; + dcp::Size _inter_size; };