X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fsimple_video_view.h;h=7a48f8ef839344c452bfae50f77785a08d737e0f;hb=25eb7aa723af004162fc7f95995df250c4e4571b;hp=686a1a1f3cc83c686569a617dafd605e677aac39;hpb=ec1df37a1940063dc0dbc45ad2dab638bdc92c0d;p=dcpomatic.git diff --git a/src/wx/simple_video_view.h b/src/wx/simple_video_view.h index 686a1a1f3..7a48f8ef8 100644 --- a/src/wx/simple_video_view.h +++ b/src/wx/simple_video_view.h @@ -18,29 +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; };