diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-04-25 23:16:29 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-04-25 23:16:29 +0200 |
| commit | 039ade24cfcdfacd9c68143832161a883a3ea2ef (patch) | |
| tree | 318b90f565104d5f639b068e7395b50f558acaf8 | |
| parent | 4803d2339a953f78b898f1c56c5c4f232f34ea8c (diff) | |
White space: decoder.{cc,h}
| -rw-r--r-- | src/lib/decoder.cc | 18 | ||||
| -rw-r--r-- | src/lib/decoder.h | 16 |
2 files changed, 17 insertions, 17 deletions
diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc index 5d1915128..7088a25d1 100644 --- a/src/lib/decoder.cc +++ b/src/lib/decoder.cc @@ -34,8 +34,8 @@ using std::weak_ptr; using namespace dcpomatic; -Decoder::Decoder (weak_ptr<const Film> film) - : WeakConstFilm (film) +Decoder::Decoder(weak_ptr<const Film> film) + : WeakConstFilm(film) { } @@ -43,7 +43,7 @@ Decoder::Decoder (weak_ptr<const Film> film) /** @return Earliest time of content that the next pass() will emit */ ContentTime -Decoder::position () const +Decoder::position() const { optional<ContentTime> pos; auto f = film(); @@ -76,24 +76,24 @@ Decoder::position () const void -Decoder::seek (ContentTime, bool) +Decoder::seek(ContentTime, bool) { if (video) { - video->seek (); + video->seek(); } if (audio) { - audio->seek (); + audio->seek(); } for (auto i: text) { - i->seek (); + i->seek(); } } shared_ptr<TextDecoder> -Decoder::only_text () const +Decoder::only_text() const { - DCPOMATIC_ASSERT (text.size() < 2); + DCPOMATIC_ASSERT(text.size() < 2); if (text.empty()) { return {}; } diff --git a/src/lib/decoder.h b/src/lib/decoder.h index 7097db88d..0ce8f68f8 100644 --- a/src/lib/decoder.h +++ b/src/lib/decoder.h @@ -47,26 +47,26 @@ class VideoDecoder; class Decoder : public WeakConstFilm { public: - Decoder (std::weak_ptr<const Film> film); - virtual ~Decoder () {} + Decoder(std::weak_ptr<const Film> film); + virtual ~Decoder() {} - Decoder (Decoder const&) = delete; - Decoder& operator= (Decoder const&) = delete; + Decoder(Decoder const&) = delete; + Decoder& operator=(Decoder const&) = delete; std::shared_ptr<VideoDecoder> video; std::shared_ptr<AudioDecoder> audio; std::list<std::shared_ptr<TextDecoder>> text; std::shared_ptr<AtmosDecoder> atmos; - std::shared_ptr<TextDecoder> only_text () const; + std::shared_ptr<TextDecoder> only_text() const; /** Do some decoding and perhaps emit video, audio or subtitle data. * @return true if this decoder will emit no more data unless a seek() happens. */ - virtual bool pass () = 0; - virtual void seek (dcpomatic::ContentTime time, bool accurate); + virtual bool pass() = 0; + virtual void seek(dcpomatic::ContentTime time, bool accurate); - virtual dcpomatic::ContentTime position () const; + virtual dcpomatic::ContentTime position() const; }; |
