X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwx%2Fsimple_video_view.h;h=7750af7da76109db3d47dbdef35083f80b723675;hb=d430b8650121bfdad3d22b903521a146ad46c487;hp=8527cdbe77424af52c6ec2a9f4c04b2a310ccf63;hpb=444e1d4e0062677220d32b78b97a4b730156b514;p=dcpomatic.git diff --git a/src/wx/simple_video_view.h b/src/wx/simple_video_view.h index 8527cdbe7..7750af7da 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,25 +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 (); + bool display_next_frame (bool non_blocking); private: + void set_image (boost::shared_ptr image) { + _image = image; + } + + void refresh_panel (); void paint (); void timer (); - bool get (bool lazy); - void display_player_video (); wxPanel* _panel; - boost::shared_ptr _image; + boost::shared_ptr _image; wxTimer _timer; + Position _inter_position; + dcp::Size _inter_size; };