- Piece (boost::shared_ptr<Content> c, boost::shared_ptr<Decoder> d, FrameRateChange f)
- : content (c)
- , decoder (d)
- , frc (f)
- {}
-
- boost::shared_ptr<Content> content;
- boost::shared_ptr<Decoder> decoder;
- FrameRateChange frc;
+ Piece (boost::shared_ptr<Content> c, boost::shared_ptr<Decoder> d, FrameRateChange f);
+
+ void update_pull_to (dcpomatic::DCPTime& pull_to) const;
+ void set_last_push_end (AudioStreamPtr stream, dcpomatic::DCPTime last_push_end);
+
+ dcpomatic::DCPTime position () const;
+ dcpomatic::DCPTime end (boost::shared_ptr<const Film> film) const;
+
+private:
+ std::vector<boost::shared_ptr<Content> > _content;
+ std::vector<boost::shared_ptr<Decoder> > _decoder;
+ FrameRateChange _frc;
+ bool _done;
+
+ std::map<AudioStreamPtr, dcpomatic::DCPTime> _stream_last_push_end;