Color Management: Log added displays, views and color spaces
Ref #144911 Pull Request: https://projects.blender.org/blender/blender/pulls/146487
This commit is contained in:
@@ -12,11 +12,14 @@
|
||||
|
||||
# include "BLI_math_color.h"
|
||||
|
||||
# include "CLG_log.h"
|
||||
|
||||
# include "../description.hh"
|
||||
# include "error_handling.hh"
|
||||
# include "libocio_cpu_processor.hh"
|
||||
# include "libocio_processor.hh"
|
||||
|
||||
static CLG_LogRef LOG = {"color_management"};
|
||||
|
||||
namespace blender::ocio {
|
||||
|
||||
static bool compare_floats(float a, float b, float abs_diff, int ulp_diff)
|
||||
@@ -193,6 +196,11 @@ LibOCIOColorSpace::LibOCIOColorSpace(const int index,
|
||||
interop_id_ = "data";
|
||||
}
|
||||
}
|
||||
|
||||
CLOG_TRACE(&LOG,
|
||||
"Add colorspace: %s (interop ID: %s)",
|
||||
name().c_str(),
|
||||
interop_id_.is_empty() ? "<none>" : interop_id_.c_str());
|
||||
}
|
||||
|
||||
bool LibOCIOColorSpace::is_scene_linear() const
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
|
||||
# include "OCIO_config.hh"
|
||||
|
||||
# include "CLG_log.h"
|
||||
|
||||
# include "../opencolorio.hh"
|
||||
|
||||
# include "error_handling.hh"
|
||||
@@ -17,6 +19,8 @@
|
||||
# include "libocio_cpu_processor.hh"
|
||||
# include "libocio_display_processor.hh"
|
||||
|
||||
static CLG_LogRef LOG = {"color_management"};
|
||||
|
||||
namespace blender::ocio {
|
||||
|
||||
static OCIO_NAMESPACE::ConstColorSpaceRcPtr get_display_view_colorspace(
|
||||
@@ -44,6 +48,8 @@ LibOCIODisplay::LibOCIODisplay(const int index, const LibOCIOConfig &config) : c
|
||||
|
||||
name_ = ocio_config->getDisplay(index);
|
||||
|
||||
CLOG_TRACE(&LOG, "Add display: %s", name_.c_str());
|
||||
|
||||
/* Initialize views. */
|
||||
const int num_views = ocio_config->getNumViews(name_.c_str());
|
||||
if (num_views < 0) {
|
||||
@@ -163,6 +169,12 @@ LibOCIODisplay::LibOCIODisplay(const int index, const LibOCIOConfig &config) : c
|
||||
}
|
||||
}
|
||||
|
||||
CLOG_TRACE(&LOG,
|
||||
" Add view: %s (colorspace: %s, %s)",
|
||||
view_name,
|
||||
display_colorspace ? display_colorspace->name().c_str() : "<none>",
|
||||
view_is_hdr ? "HDR" : "SDR");
|
||||
|
||||
views_.append_as(view_index,
|
||||
view_name,
|
||||
view_description,
|
||||
|
||||
Reference in New Issue
Block a user