#ifndef DCPOMATIC_PIECE_H
#define DCPOMATIC_PIECE_H
-#include "types.h"
+#include "audio_stream.h"
+#include "dcpomatic_time.h"
#include "frame_rate_change.h"
+#include "types.h"
class Content;
class Decoder;
public:
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;
};
#endif