X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fsimple_video_view.h;h=7a48f8ef839344c452bfae50f77785a08d737e0f;hb=3d369d6ce80caf87520237f4e8009b7fd55aa91b;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..7a48f8ef8 100644 --- a/src/wx/simple_video_view.h +++ b/src/wx/simple_video_view.h @@ -18,31 +18,39 @@ */ + #include "video_view.h" +#include "lib/position.h" +#include +#include +LIBDCP_DISABLE_WARNINGS #include +LIBDCP_ENABLE_WARNINGS class FilmViewer; + 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; };