From c71fbd854dfdedaae011f4b8b1fdb81f8054b309 Mon Sep 17 00:00:00 2001 From: UjinT34 <41110182+UjinT34@users.noreply.github.com> Date: Thu, 26 Feb 2026 15:01:59 +0300 Subject: renderer: better sdr eotf settings (#12812) --- src/helpers/TransferFunction.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/helpers/TransferFunction.hpp (limited to 'src/helpers/TransferFunction.hpp') 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 +#include + +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(); +} -- cgit v1.2.3