White space: decoder.{cc,h}
authorCarl Hetherington <cth@carlh.net>
Fri, 25 Apr 2025 21:16:29 +0000 (23:16 +0200)
committerCarl Hetherington <cth@carlh.net>
Fri, 25 Apr 2025 21:16:29 +0000 (23:16 +0200)
src/lib/decoder.cc
src/lib/decoder.h

index 5d191512874916c74a82eed7ce049b9e2e33803d..7088a25d11eac20d1f51f4ac79286d56634fe360 100644 (file)
@@ -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 {};
        }
index 7097db88d1b3cf134d35a0dd2725496de8ae4820..0ce8f68f8993bee708741cdb7cf5e4591f484d80 100644 (file)
@@ -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;
 };