diff options
author | Hubert Figuière <hub@figuiere.net> | 2018-10-16 19:04:41 -0400 |
---|---|---|
committer | Hubert Figuière <hub@figuiere.net> | 2018-10-17 09:43:39 -0400 |
commit | 510b2db05385317bd8bf38074ed7331c4d2a7cf5 (patch) | |
tree | 52c23b1ac3f8496608fd47bf71430beb9ce49c0e /tools | |
parent | 482022dd5241b1afab72b78ae7f3cbd953d53ff3 (diff) |
API: Added or_rawfile_get_colour_matrix_origin() to determine where the origin
of the colours matrix
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ordiag.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/ordiag.cpp b/tools/ordiag.cpp index c9af947..02c9f0b 100644 --- a/tools/ordiag.cpp +++ b/tools/ordiag.cpp @@ -368,6 +368,22 @@ public: double matrix[9]; uint32_t size = 9; + + auto origin = or_rawfile_get_colour_matrix_origin(rf); + std::string os; + switch (origin) { + case OR_COLOUR_MATRIX_BUILTIN: + os = "Built-in"; + break; + case OR_COLOUR_MATRIX_PROVIDED: + os = "Provided"; + break; + default: + os = "Unknown"; + } + m_out << boost::format("\t\tColour Matrix Origin: %1%\n") + % os; + ExifLightsourceValue calIll; calIll = or_rawfile_get_calibration_illuminant1(rf); m_out << boost::format("\t\tCalibration Illuminant 1: %1%\n") |