summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-07-06 23:09:08 +0200
committerCarl Hetherington <cth@carlh.net>2024-01-28 02:01:57 +0100
commitc80eca531e01860e6714f526b2efb07a58c2e26e (patch)
tree8b2ca4b071b6def5f2e9e85809b6bc25caa81586 /src/lib/config.h
parent3299d48531d631264dacd01faf1fa3c069b28e62 (diff)
Patch from Aaron Boxer adding initial support for GPU-powered J2K encoding via his tool "grok".
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h50
1 files changed, 49 insertions, 1 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index dce4aafef..527bf4de8 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -619,6 +619,28 @@ public:
return _allow_smpte_bv20;
}
+ std::string gpu_binary_location () const {
+ return _gpu_binary_location;
+ }
+
+ bool enable_gpu () const {
+ return _enable_gpu;
+ }
+
+ int selected_gpu () const {
+ return _selected_gpu;
+ }
+ std::string gpu_license_server () const {
+ return _gpu_license_server;
+ }
+
+ int gpu_license_port () const {
+ return _gpu_license_port;
+ }
+ std::string gpu_license () const {
+ return _gpu_license;
+ }
+
int isdcf_name_part_length() const {
return _isdcf_name_part_length;
}
@@ -1199,11 +1221,29 @@ public:
void set_allow_smpte_bv20(bool allow) {
maybe_set(_allow_smpte_bv20, allow, ALLOW_SMPTE_BV20);
}
-
+ void set_gpu_binary_location (std::string location) {
+ maybe_set (_gpu_binary_location, location);
+ }
+ void set_enable_gpu (bool enable) {
+ maybe_set (_enable_gpu, enable);
+ }
+ void set_selected_gpu (int selected) {
+ maybe_set (_selected_gpu, selected);
+ }
+ void set_gpu_license_server (std::string s) {
+ maybe_set (_gpu_license_server, s);
+ }
+ void set_gpu_license_port (int p) {
+ maybe_set (_gpu_license_port, p);
+ }
+ void set_gpu_license (std::string p) {
+ maybe_set (_gpu_license, p);
+ }
void set_isdcf_name_part_length(int length) {
maybe_set(_isdcf_name_part_length, length, ISDCF_NAME_PART_LENGTH);
}
+
void changed (Property p = OTHER);
boost::signals2::signal<void (Property)> Changed;
/** Emitted if read() failed on an existing Config file. There is nothing
@@ -1445,6 +1485,14 @@ private:
bool _allow_smpte_bv20;
int _isdcf_name_part_length;
+ /* GPU */
+ bool _enable_gpu;
+ std::string _gpu_binary_location;
+ int _selected_gpu;
+ std::string _gpu_license_server;
+ int _gpu_license_port;
+ std::string _gpu_license;
+
ExportConfig _export;
static int const _current_version;