diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-28 00:11:30 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-28 00:11:30 +0000 |
| commit | a246eb45b34ebc6bf277694b295f693706be8c6a (patch) | |
| tree | bb5d78210f036eaddd8ad66af1325bc3d6636fcb /asdcplib/src/AS_DCP.h | |
| parent | 103c20d48c22f0c604e402de41bce7336ef9b386 (diff) | |
Add support for hashing mono picture MXF writes on the way out.
Diffstat (limited to 'asdcplib/src/AS_DCP.h')
| -rwxr-xr-x | asdcplib/src/AS_DCP.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/asdcplib/src/AS_DCP.h b/asdcplib/src/AS_DCP.h index 3d679413..d5675586 100755 --- a/asdcplib/src/AS_DCP.h +++ b/asdcplib/src/AS_DCP.h @@ -87,6 +87,7 @@ This project depends upon the following libraries: #define _AS_DCP_H_ #include <KM_error.h> +#include <KM_platform.h> #include <stdio.h> #include <stdarg.h> #include <math.h> @@ -1172,12 +1173,16 @@ 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); // Closes the MXF file, writing the index and revised header. Result_t Finalize(); + + // Return the current file offset in the MXF file that we are writing + ui64_t Tell() const; }; // |
