summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-09-28 23:39:30 +0200
committerCarl Hetherington <cth@carlh.net>2025-09-30 00:19:51 +0200
commit19a0537345d9c39962f70420299a07293fe6a975 (patch)
treefbb80397f84647d5e251b9905b102a2d715969fe /src/lib/config.h
parentd78552513e17250cc9b6c5327e735ea05fa928d5 (diff)
Allow configuration of Grok or nvjpeg2k GPU encoding.
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index d8ff70db8..4deaf7eb6 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -665,7 +665,6 @@ public:
void as_xml(xmlpp::Element* node) const;
- bool enable = false;
boost::filesystem::path binary_location;
int selected = 0;
std::string licence_server;
@@ -677,6 +676,16 @@ public:
}
#endif
+ enum class GPUType {
+ NONE,
+ GROK,
+ NVJPEG2K
+ };
+
+ GPUType gpu_type() const {
+ return _gpu_type;
+ }
+
int isdcf_name_part_length() const {
return _isdcf_name_part_length;
}
@@ -1253,6 +1262,10 @@ public:
void set_grok(Grok const& grok);
#endif
+ void set_gpu_type(GPUType type) {
+ maybe_set(_gpu_type, type);
+ }
+
void set_isdcf_name_part_length(int length) {
maybe_set(_isdcf_name_part_length, length, ISDCF_NAME_PART_LENGTH);
}
@@ -1526,6 +1539,7 @@ private:
#ifdef DCPOMATIC_GROK
Grok _grok;
#endif
+ GPUType _gpu_type;
ExportConfig _export;