Add openjpeg_version method.
authorCarl Hetherington <cth@carlh.net>
Fri, 22 Dec 2017 09:52:43 +0000 (09:52 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 22 Dec 2017 09:52:43 +0000 (09:52 +0000)
src/util.cc
src/util.h

index 6f09e8aae88c9af02c9cd36ab469ed215070cbea..ac2246c30f851c0abb99146180e43eb6f9eb6a77 100644 (file)
@@ -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 ();
+}
index 110017df00d3eb915fc056f25dbbd76c1593725b..d7877ac9795ea8ce30d9d25a64c2136cd0061c5c 100644 (file)
@@ -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();
 
 }