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/KM_fileio.h | |
| parent | 103c20d48c22f0c604e402de41bce7336ef9b386 (diff) | |
Add support for hashing mono picture MXF writes on the way out.
Diffstat (limited to 'asdcplib/src/KM_fileio.h')
| -rwxr-xr-x | asdcplib/src/KM_fileio.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/asdcplib/src/KM_fileio.h b/asdcplib/src/KM_fileio.h index b078e32b..cb00acc8 100755 --- a/asdcplib/src/KM_fileio.h +++ b/asdcplib/src/KM_fileio.h @@ -35,6 +35,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <KM_util.h> #include <string> #include <boost/filesystem.hpp> +#include <openssl/md5.h> #ifdef KM_WIN32 # include <io.h> @@ -298,6 +299,8 @@ namespace Kumu class h__iovec; mem_ptr<h__iovec> m_IOVec; KM_NO_COPY_CONSTRUCT(FileWriter); + bool m_Hashing; + MD5_CTX m_MD5Context; public: FileWriter(); @@ -317,6 +320,10 @@ namespace Kumu // the iovec list will be written to disk before the given buffer,as though // you had called Writev() first. Result_t Write(const byte_t*, ui32_t, ui32_t* = 0); // write buffer to disk + + void StartHashing(); + void MaybeHash(void const *, int); + std::string StopHashing(); }; Result_t CreateDirectoriesInPath(const std::string& Path); |
