#define DCPOMATIC_DECODER_H
#include "types.h"
+#include "film.h"
#include "dcpomatic_time.h"
#include <boost/utility.hpp>
class Decoder : public boost::noncopyable
{
public:
+ Decoder (boost::weak_ptr<const Film> film);
virtual ~Decoder () {}
boost::shared_ptr<VideoDecoder> video;
boost::shared_ptr<AudioDecoder> audio;
- std::list<boost::shared_ptr<TextDecoder> > caption;
+ std::list<boost::shared_ptr<TextDecoder> > text;
- boost::shared_ptr<TextDecoder> only_caption () const;
+ boost::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 void seek (ContentTime time, bool accurate);
ContentTime position () const;
+
+protected:
+ boost::shared_ptr<const Film> film () const;
+
+private:
+ boost::weak_ptr<const Film> _film;
};
#endif