summaryrefslogtreecommitdiff
path: root/src/lib/playlist.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-07-15 01:24:58 +0200
committerCarl Hetherington <cth@carlh.net>2025-07-15 01:24:58 +0200
commit6ee9e0555297bf30ed9709817f8a9e5abd734b90 (patch)
treea27e51cd672c42272799adba2a512c260dd8314e /src/lib/playlist.h
parentbea7bc43eb7a4bd517f1b4f7f893b220b763595e (diff)
White space: playlist.{cc,h}
Diffstat (limited to 'src/lib/playlist.h')
-rw-r--r--src/lib/playlist.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/lib/playlist.h b/src/lib/playlist.h
index 79c140145..c84323b44 100644
--- a/src/lib/playlist.h
+++ b/src/lib/playlist.h
@@ -46,39 +46,39 @@ class Playlist
public:
Playlist() = default;
- ~Playlist ();
+ ~Playlist();
- Playlist (Playlist const&) = delete;
- Playlist& operator= (Playlist const&) = delete;
+ Playlist(Playlist const&) = delete;
+ Playlist& operator=(Playlist const&) = delete;
void as_xml(xmlpp::Element*, bool with_content_paths, PathBehaviour path_behaviour, boost::optional<boost::filesystem::path> film_directory);
- void set_from_xml (std::shared_ptr<const Film> film, cxml::ConstNodePtr node, int version, std::list<std::string>& notes);
+ void set_from_xml(std::shared_ptr<const Film> film, cxml::ConstNodePtr node, int version, std::list<std::string>& notes);
- void add (std::shared_ptr<const Film> film, std::shared_ptr<Content>);
- void remove (std::shared_ptr<Content>);
- void remove (ContentList);
- void move_earlier (std::shared_ptr<const Film> film, std::shared_ptr<Content>);
- void move_later (std::shared_ptr<const Film> film, std::shared_ptr<Content>);
+ void add(std::shared_ptr<const Film> film, std::shared_ptr<Content>);
+ void remove(std::shared_ptr<Content>);
+ void remove(ContentList);
+ void move_earlier(std::shared_ptr<const Film> film, std::shared_ptr<Content>);
+ void move_later(std::shared_ptr<const Film> film, std::shared_ptr<Content>);
- ContentList content () const;
+ ContentList content() const;
- std::string video_identifier () const;
+ std::string video_identifier() const;
- dcpomatic::DCPTime length (std::shared_ptr<const Film> film) const;
- boost::optional<dcpomatic::DCPTime> start () const;
+ dcpomatic::DCPTime length(std::shared_ptr<const Film> film) const;
+ boost::optional<dcpomatic::DCPTime> start() const;
int64_t required_disk_space(std::shared_ptr<const Film> film, int64_t video_bit_rate, int audio_channels, int audio_frame_rate) const;
- int best_video_frame_rate () const;
- dcpomatic::DCPTime video_end (std::shared_ptr<const Film> film) const;
- dcpomatic::DCPTime text_end (std::shared_ptr<const Film> film) const;
- FrameRateChange active_frame_rate_change (dcpomatic::DCPTime, int dcp_frame_rate) const;
- std::string content_summary (std::shared_ptr<const Film> film, dcpomatic::DCPTimePeriod period) const;
- std::pair<double, double> speed_up_range (int dcp_video_frame_rate) const;
+ int best_video_frame_rate() const;
+ dcpomatic::DCPTime video_end(std::shared_ptr<const Film> film) const;
+ dcpomatic::DCPTime text_end(std::shared_ptr<const Film> film) const;
+ FrameRateChange active_frame_rate_change(dcpomatic::DCPTime, int dcp_frame_rate) const;
+ std::string content_summary(std::shared_ptr<const Film> film, dcpomatic::DCPTimePeriod period) const;
+ std::pair<double, double> speed_up_range(int dcp_video_frame_rate) const;
- void set_sequence (bool);
- void maybe_sequence (std::shared_ptr<const Film> film);
+ void set_sequence(bool);
+ void maybe_sequence(std::shared_ptr<const Film> film);
- void repeat (std::shared_ptr<const Film> film, ContentList, int);
+ void repeat(std::shared_ptr<const Film> film, ContentList, int);
/** Emitted when content has been added to or removed from the playlist; implies OrderChange */
mutable boost::signals2::signal<void (ChangeType)> Change;
@@ -89,9 +89,9 @@ public:
mutable boost::signals2::signal<void (ChangeType, std::weak_ptr<Content>, int, bool)> ContentChange;
private:
- void content_change (std::weak_ptr<const Film>, ChangeType, std::weak_ptr<Content>, int, bool);
- void disconnect ();
- void reconnect (std::shared_ptr<const Film> film);
+ void content_change(std::weak_ptr<const Film>, ChangeType, std::weak_ptr<Content>, int, bool);
+ void disconnect();
+ void reconnect(std::shared_ptr<const Film> film);
mutable boost::mutex _mutex;
/** List of content, kept sorted by ContentSorter() */