summaryrefslogtreecommitdiff
path: root/src/lib/dcp_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-01 23:58:47 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-01 23:58:47 +0100
commit368832f2ff6837d9029020b41fb97fb148c3be31 (patch)
tree7653ce59c8e5de15d746897efa7640f33a70a32f /src/lib/dcp_decoder.h
parent2da8a38e3cc9bebfe324a682d8e4da2e8856676a (diff)
Use new libdcp reader interface.
Diffstat (limited to 'src/lib/dcp_decoder.h')
-rw-r--r--src/lib/dcp_decoder.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/dcp_decoder.h b/src/lib/dcp_decoder.h
index b7141f916..7ad6fcbf7 100644
--- a/src/lib/dcp_decoder.h
+++ b/src/lib/dcp_decoder.h
@@ -26,6 +26,9 @@
namespace dcp {
class Reel;
+ class MonoPictureAssetReader;
+ class StereoPictureAssetReader;
+ class SoundAssetReader;
}
class DCPContent;
@@ -47,15 +50,23 @@ private:
bool pass (PassReason, bool accurate);
void seek (ContentTime t, bool accurate);
void next_reel ();
+ void get_readers ();
std::list<ContentTimePeriod> image_subtitles_during (ContentTimePeriod, bool starting) const;
std::list<ContentTimePeriod> text_subtitles_during (ContentTimePeriod, bool starting) const;
+ boost::shared_ptr<const DCPContent> _dcp_content;
/** Time of next thing to return from pass relative to the start of _reel */
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;
+ /** Reader for current mono picture asset, if applicable */
+ boost::shared_ptr<dcp::MonoPictureAssetReader> _mono_reader;
+ /** Reader for current stereo picture asset, if applicable */
+ boost::shared_ptr<dcp::StereoPictureAssetReader> _stereo_reader;
+ /** Reader for current sound asset, if applicable */
+ boost::shared_ptr<dcp::SoundAssetReader> _sound_reader;
};