X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fdecoder.h;h=a672e8a10de0c090b8cf9fa520a007d46fe38a37;hp=316109ebb95e5eed3d12d3127c75354e3af33f7d;hb=4e2ff7851127cd85c3e7d78b42eb884d0cda0ac3;hpb=ca981c8cfa23111e92be329f1c2dfbe3a07b4247 diff --git a/src/lib/decoder.h b/src/lib/decoder.h index 316109ebb..a672e8a10 100644 --- a/src/lib/decoder.h +++ b/src/lib/decoder.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2020 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,40 +18,50 @@ */ + /** @file src/decoder.h * @brief Decoder class. */ + #ifndef DCPOMATIC_DECODER_H #define DCPOMATIC_DECODER_H -#include "types.h" -#include "film.h" + #include "dcpomatic_time.h" +#include "film.h" +#include "font_data.h" +#include "types.h" +#include "weak_film.h" #include -class Decoded; -class VideoDecoder; -class AudioDecoder; -class TextDecoder; + class AtmosDecoder; +class AudioDecoder; +class Decoded; class DecoderPart; +class TextDecoder; +class VideoDecoder; + /** @class Decoder. * @brief Parent class for decoders of content. */ -class Decoder : public boost::noncopyable +class Decoder : public WeakConstFilm { public: - Decoder (boost::weak_ptr film); + Decoder (std::weak_ptr film); virtual ~Decoder () {} - boost::shared_ptr video; - boost::shared_ptr audio; - std::list > text; - boost::shared_ptr atmos; + Decoder (Decoder const&) = delete; + Decoder& operator= (Decoder const&) = delete; + + std::shared_ptr video; + std::shared_ptr audio; + std::list> text; + std::shared_ptr atmos; - boost::shared_ptr only_text () const; + std::shared_ptr 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. @@ -61,11 +71,10 @@ public: virtual dcpomatic::ContentTime position () const; -protected: - boost::shared_ptr film () const; - -private: - boost::weak_ptr _film; + virtual std::vector fonts () const { + return {}; + } }; + #endif