diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-01 22:06:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-01 22:06:16 +0100 |
| commit | 7a0c2256cbf94d2434ba6e7485517df0a7f894af (patch) | |
| tree | 1f00da832f30fa325429a4a5cbb4594a7f706999 /src/lib/dcp_decoder.h | |
| parent | 97d25da42455d0ed93c2eebe023883767bb12d53 (diff) | |
Compute offset as we go rather than once every pass().
Diffstat (limited to 'src/lib/dcp_decoder.h')
| -rw-r--r-- | src/lib/dcp_decoder.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/dcp_decoder.h b/src/lib/dcp_decoder.h index 61fd91aba..b7141f916 100644 --- a/src/lib/dcp_decoder.h +++ b/src/lib/dcp_decoder.h @@ -46,6 +46,7 @@ private: bool pass (PassReason, bool accurate); void seek (ContentTime t, bool accurate); + void next_reel (); std::list<ContentTimePeriod> image_subtitles_during (ContentTimePeriod, bool starting) const; std::list<ContentTimePeriod> text_subtitles_during (ContentTimePeriod, bool starting) const; @@ -54,5 +55,7 @@ private: ContentTime _next; std::list<boost::shared_ptr<dcp::Reel> > _reels; std::list<boost::shared_ptr<dcp::Reel> >::iterator _reel; + /** Offset of _reel from the start of the content in frames */ + int64_t _offset; boost::shared_ptr<const DCPContent> _dcp_content; }; |
