diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-12-22 09:52:43 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-12-22 09:52:43 +0000 |
| commit | 182f32783cb475a76001393f18ddbf79bf60f921 (patch) | |
| tree | dcb2fe2a05d247a370a1b23bc0dedcc67e22370c | |
| parent | 7863ca30adf7ffdc62315cf73d03e43a65abe078 (diff) | |
Add openjpeg_version method.
| -rw-r--r-- | src/util.cc | 7 | ||||
| -rw-r--r-- | src/util.h | 1 |
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 (); +} @@ -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(); } |
