summaryrefslogtreecommitdiff
path: root/src/helpers/TransferFunction.hpp
blob: ae5751589c3a6ac97933e5d05104c0724f153936 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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(bool useICC = false);
}