summaryrefslogtreecommitdiff
path: root/src/AS_DCP.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-03-16 21:50:24 +0100
committerCarl Hetherington <cth@carlh.net>2024-03-21 20:29:50 +0100
commit4898f9d60bc621cb464faa00fb50146495d76928 (patch)
tree8d756384f4bd9cc866aa278eac8dd594082304d7 /src/AS_DCP.h
parent8b59eda953e7fa37506e6cb6add7dcb7d5ae8dce (diff)
Support hashing while writing MXFs.
Diffstat (limited to 'src/AS_DCP.h')
-rwxr-xr-xsrc/AS_DCP.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/AS_DCP.h b/src/AS_DCP.h
index dac5cd1..fcf9253 100755
--- a/src/AS_DCP.h
+++ b/src/AS_DCP.h
@@ -1270,9 +1270,10 @@ namespace ASDCP {
// Writes a frame of essence to the MXF file. If the optional AESEncContext
// argument is present, the essence is encrypted prior to writing.
+ // A MD5 hash of the data that we write is written to hash if it is not 0
// Fails if the file is not open, is finalized, or an operating system
// error occurs.
- Result_t WriteFrame(const FrameBuffer&, AESEncContext* = 0, HMACContext* = 0);
+ Result_t WriteFrame(const FrameBuffer&, AESEncContext* = 0, HMACContext* = 0, std::string* hash = 0);
Result_t FakeWriteFrame(int size);
@@ -1391,7 +1392,7 @@ namespace ASDCP {
// RESULT_SPHASE will be returned if phase is reversed. The first frame
// written must be left eye.
Result_t WriteFrame(const FrameBuffer&, StereoscopicPhase_t phase,
- AESEncContext* = 0, HMACContext* = 0);
+ AESEncContext* = 0, HMACContext* = 0, std::string* hash = 0);
Result_t FakeWriteFrame(int size, StereoscopicPhase_t phase);