From a68b877d96a9e9f366f27752e071bc0e895e9dc7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 1 Jun 2016 23:53:06 +0100 Subject: Add Reader classes to permit much more efficient DCP reading. --- src/sound_frame.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/sound_frame.h') diff --git a/src/sound_frame.h b/src/sound_frame.h index 4fdc39e5..742864a8 100644 --- a/src/sound_frame.h +++ b/src/sound_frame.h @@ -32,6 +32,7 @@ namespace ASDCP { namespace PCM { class FrameBuffer; + class MXFReader; } class AESDecContext; } @@ -44,13 +45,16 @@ namespace dcp { class SoundFrame : public boost::noncopyable { public: - SoundFrame (boost::filesystem::path path, int n, ASDCP::AESDecContext *); ~SoundFrame (); uint8_t const * data () const; int size () const; private: + friend class SoundAssetReader; + + SoundFrame (ASDCP::PCM::MXFReader* reader, int n, ASDCP::AESDecContext *); + /** a buffer to hold the frame */ ASDCP::PCM::FrameBuffer* _buffer; }; -- cgit v1.2.3