summaryrefslogtreecommitdiff
path: root/src/helpers/TransferFunction.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/TransferFunction.hpp')
-rw-r--r--src/helpers/TransferFunction.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/helpers/TransferFunction.hpp b/src/helpers/TransferFunction.hpp
new file mode 100644
index 00000000..cbf35f37
--- /dev/null
+++ b/src/helpers/TransferFunction.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+#include <cstdint>
+#include <string>
+
+namespace NTransferFunction {
+ enum eTF : uint8_t {
+ TF_DEFAULT = 0,
+ TF_AUTO = 1,
+ TF_SRGB = 2,
+ TF_GAMMA22 = 3,
+ TF_FORCED_GAMMA22 = 4,
+ };
+
+ eTF fromString(const std::string tfName);
+ std::string toString(eTF tf);
+
+ eTF fromConfig();
+}