summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-12-22 09:52:43 +0000
committerCarl Hetherington <cth@carlh.net>2017-12-22 09:52:43 +0000
commit182f32783cb475a76001393f18ddbf79bf60f921 (patch)
treedcb2fe2a05d247a370a1b23bc0dedcc67e22370c /src
parent7863ca30adf7ffdc62315cf73d03e43a65abe078 (diff)
Add openjpeg_version method.
Diffstat (limited to 'src')
-rw-r--r--src/util.cc7
-rw-r--r--src/util.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc
index 6f09e8aa..ac2246c3 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -42,6 +42,7 @@
#include "openjpeg_image.h"
#include "dcp_assert.h"
#include "compose.hpp"
+#include <openjpeg.h>
#include <asdcp/KM_util.h>
#include <asdcp/KM_fileio.h>
#include <asdcp/AS_DCP.h>
@@ -399,3 +400,9 @@ dcp::remove_urn_uuid (string raw)
DCP_ASSERT (raw.substr(0, 9) == "urn:uuid:");
return raw.substr (9);
}
+
+string
+dcp::openjpeg_version ()
+{
+ return opj_version ();
+}
diff --git a/src/util.h b/src/util.h
index 110017df..d7877ac9 100644
--- a/src/util.h
+++ b/src/util.h
@@ -74,6 +74,7 @@ extern FILE * fopen_boost (boost::filesystem::path, std::string);
extern std::string file_to_string (boost::filesystem::path, uintmax_t max_length = 65536);
extern std::string private_key_fingerprint (std::string key);
extern xmlpp::Node* find_child (xmlpp::Node const * node, std::string name);
+extern std::string openjpeg_version();
}