summaryrefslogtreecommitdiff
path: root/src/lib/j2k_encoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-09-24 12:09:16 +0200
committerCarl Hetherington <cth@carlh.net>2023-11-29 21:19:56 +0100
commit224e334714c6caec9def038f7292f98ddd32ac7d (patch)
treeaaf434cf420b132f8cd78323d63c78e3890bfb1d /src/lib/j2k_encoder.h
parent36ad4aed6fe65a03f209efae56a6ebbc5da2c35e (diff)
Only build grok for Ubuntu 22.04.
Diffstat (limited to 'src/lib/j2k_encoder.h')
-rw-r--r--src/lib/j2k_encoder.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/j2k_encoder.h b/src/lib/j2k_encoder.h
index a6e190dcf..9d9d85894 100644
--- a/src/lib/j2k_encoder.h
+++ b/src/lib/j2k_encoder.h
@@ -28,11 +28,13 @@
*/
-#include "grok/context.h"
#include "cross.h"
#include "enum_indexed_vector.h"
#include "event_history.h"
#include "exception_store.h"
+#ifdef DCPOMATIC_GROK
+#include "grok/context.h"
+#endif
#include "j2k_encoder_thread.h"
#include "writer.h"
#include <boost/optional.hpp>
@@ -122,8 +124,10 @@ private:
boost::signals2::scoped_connection _server_found_connection;
+#ifdef DCPOMATIC_GROK
grk_plugin::DcpomaticContext _dcpomatic_context;
grk_plugin::GrokContext *_context;
+#endif
bool _ending = false;
};