diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-01 23:53:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-01 23:53:06 +0100 |
| commit | a68b877d96a9e9f366f27752e071bc0e895e9dc7 (patch) | |
| tree | 11a32d1efd6abf182b03ce22f1f1fe84258bb7de /src/sound_frame.h | |
| parent | f9cba324c8160a70b108d9e5b60a4ccad6ee9be2 (diff) | |
Add Reader classes to permit much more efficient DCP reading.
Diffstat (limited to 'src/sound_frame.h')
| -rw-r--r-- | src/sound_frame.h | 6 |
1 files changed, 5 insertions, 1 deletions
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; }; |
