diff options
| author | cah <cah@ableton.com> | 2022-12-19 10:29:17 +0100 |
|---|---|---|
| committer | cah <cah@ableton.com> | 2022-12-19 10:29:17 +0100 |
| commit | 776f687d7cdf421d2d144b9f79364fefc1f784ba (patch) | |
| tree | f292554eb550d6a1d70cd8724929bd80246562ee | |
| parent | edcd528c723aff4cfcf941f5bd00b75cecd6e2b5 (diff) | |
Add FakeWriteFrame()carl-3
| -rwxr-xr-x | src/AS_DCP.h | 2 | ||||
| -rwxr-xr-x | src/AS_DCP_JP2K.cpp | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/AS_DCP.h b/src/AS_DCP.h index 78ecea3..2a27c20 100755 --- a/src/AS_DCP.h +++ b/src/AS_DCP.h @@ -1389,6 +1389,8 @@ namespace ASDCP { Result_t WriteFrame(const FrameBuffer&, StereoscopicPhase_t phase, AESEncContext* = 0, HMACContext* = 0); + Result_t FakeWriteFrame(int size, StereoscopicPhase_t phase); + // Closes the MXF file, writing the index and revised header. Returns // RESULT_SPHASE if WriteFrame was called an odd number of times. Result_t Finalize(); diff --git a/src/AS_DCP_JP2K.cpp b/src/AS_DCP_JP2K.cpp index 1eacf7f..97aa53e 100755 --- a/src/AS_DCP_JP2K.cpp +++ b/src/AS_DCP_JP2K.cpp @@ -1600,6 +1600,16 @@ ASDCP::JP2K::MXFSWriter::WriteFrame(const SFrameBuffer& FrameBuf, AESEncContext* return result; } +ASDCP::Result_t +ASDCP::JP2K::MXFSWriter::FakeWriteFrame(int size, StereoscopicPhase_t phase) +{ + if ( m_Writer.empty() ) + return RESULT_INIT; + + return m_Writer->FakeWriteFrame(size, phase); +} + + // Writes a frame of essence to the MXF file. If the optional AESEncContext // argument is present, the essence is encrypted prior to writing. // Fails if the file is not open, is finalized, or an operating system |
