diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-04-16 21:39:24 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-04-16 21:39:24 +0200 |
| commit | b4639456621d7f37d0b5a5b41e04268e551a99bc (patch) | |
| tree | 69b667affb73dee5b5485d101c97134259895c6c /src/wx/film_viewer.h | |
| parent | d2b2fc9a35fca4f9fc811748a461b796ee3c8400 (diff) | |
White space: film_viewer.{cc,h}
Diffstat (limited to 'src/wx/film_viewer.h')
| -rw-r--r-- | src/wx/film_viewer.h | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/src/wx/film_viewer.h b/src/wx/film_viewer.h index c8aade6c0..2a6239d7d 100644 --- a/src/wx/film_viewer.h +++ b/src/wx/film_viewer.h @@ -58,22 +58,22 @@ class wxToggleButton; class FilmViewer : public Signaller { public: - FilmViewer (wxWindow *); - ~FilmViewer (); + FilmViewer(wxWindow *); + ~FilmViewer(); /** @return the window showing the film's video */ - wxWindow* panel () const { + wxWindow* panel() const { return _video_view->get(); } - std::shared_ptr<const VideoView> video_view () const { + std::shared_ptr<const VideoView> video_view() const { return _video_view; } - void show_closed_captions (); + void show_closed_captions(); - void set_film (std::shared_ptr<Film>); - std::shared_ptr<Film> film () const { + void set_film(std::shared_ptr<Film>); + std::shared_ptr<Film> film() const { return _film; } @@ -82,74 +82,74 @@ public: */ std::shared_ptr<DCPContent> dcp() const; - void seek (dcpomatic::DCPTime t, bool accurate); - void seek (std::shared_ptr<Content> content, dcpomatic::ContentTime p, bool accurate); - void seek_by (dcpomatic::DCPTime by, bool accurate); + void seek(dcpomatic::DCPTime t, bool accurate); + void seek(std::shared_ptr<Content> content, dcpomatic::ContentTime p, bool accurate); + void seek_by(dcpomatic::DCPTime by, bool accurate); /** @return our `playhead' position; this may not lie exactly on a frame boundary */ - dcpomatic::DCPTime position () const { + dcpomatic::DCPTime position() const { return _video_view->position(); } - boost::optional<dcpomatic::ContentTime> position_in_content (std::shared_ptr<const Content> content) const; - dcpomatic::DCPTime one_video_frame () const; + boost::optional<dcpomatic::ContentTime> position_in_content(std::shared_ptr<const Content> content) const; + dcpomatic::DCPTime one_video_frame() const; - void start (); - bool stop (); - void suspend (); - void resume (); + void start(); + bool stop(); + void suspend(); + void resume(); - bool playing () const { + bool playing() const { return _playing; } - void set_coalesce_player_changes (bool c); - void set_dcp_decode_reduction (boost::optional<int> reduction); - boost::optional<int> dcp_decode_reduction () const; - void set_outline_content (bool o); - void set_outline_subtitles (boost::optional<dcpomatic::Rect<double>>); - void set_eyes (Eyes e); - void set_pad_black (bool p); + void set_coalesce_player_changes(bool c); + void set_dcp_decode_reduction(boost::optional<int> reduction); + boost::optional<int> dcp_decode_reduction() const; + void set_outline_content(bool o); + void set_outline_subtitles(boost::optional<dcpomatic::Rect<double>>); + void set_eyes(Eyes e); + void set_pad_black(bool p); void set_optimisation(Optimisation o); - void set_crop_guess (dcpomatic::Rect<float> crop); - void unset_crop_guess (); + void set_crop_guess(dcpomatic::Rect<float> crop); + void unset_crop_guess(); - void slow_refresh (); + void slow_refresh(); - dcpomatic::DCPTime time () const; - boost::optional<dcpomatic::DCPTime> audio_time () const; + dcpomatic::DCPTime time() const; + boost::optional<dcpomatic::DCPTime> audio_time() const; - int dropped () const; - int errored () const; - int gets () const; + int dropped() const; + int errored() const; + int gets() const; - int audio_callback (void* out, unsigned int frames); + int audio_callback(void* out, unsigned int frames); - StateTimer const & state_timer () const { - return _video_view->state_timer (); + StateTimer const & state_timer() const { + return _video_view->state_timer(); } /* Some accessors and utility methods that VideoView classes need */ - bool outline_content () const { + bool outline_content() const { return _outline_content; } - boost::optional<dcpomatic::Rect<double>> outline_subtitles () const { + boost::optional<dcpomatic::Rect<double>> outline_subtitles() const { return _outline_subtitles; } - bool pad_black () const { + bool pad_black() const { return _pad_black; } - std::shared_ptr<Butler> butler () const { + std::shared_ptr<Butler> butler() const { return _butler; } - ClosedCaptionsDialog* closed_captions_dialog () const { + ClosedCaptionsDialog* closed_captions_dialog() const { return _closed_captions_dialog; } - void finished (); - void image_changed (std::shared_ptr<PlayerVideo> video); - boost::optional<dcpomatic::Rect<float>> crop_guess () const { + void finished(); + void image_changed(std::shared_ptr<PlayerVideo> video); + boost::optional<dcpomatic::Rect<float>> crop_guess() const { return _crop_guess; } - bool pending_idle_get () const { + bool pending_idle_get() const { return _idle_get; } @@ -170,24 +170,24 @@ public: private: - void video_view_sized (); - void calculate_sizes (); - void player_change (ChangeType type, int, bool); - void player_change (std::vector<int> properties); - void idle_handler (); - void request_idle_display_next_frame (); + void video_view_sized(); + void calculate_sizes(); + void player_change(ChangeType type, int, bool); + void player_change(std::vector<int> properties); + void idle_handler(); + void request_idle_display_next_frame(); void film_change(ChangeType, FilmProperty); void destroy_butler(); void create_butler(); void destroy_and_maybe_create_butler(); - void config_changed (Config::Property); - void film_length_change (); - void ui_finished (); - void start_audio_stream_if_open (); + void config_changed(Config::Property); + void film_length_change(); + void ui_finished(); + void start_audio_stream_if_open(); - dcpomatic::DCPTime uncorrected_time () const; + dcpomatic::DCPTime uncorrected_time() const; - bool quick_refresh (); + bool quick_refresh(); std::shared_ptr<Film> _film; boost::optional<Player> _player; |
