From 540e3599457efbacdd4b7c253a36b6a5e30b8bc9 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Fri, 8 Mar 2019 01:44:51 +0100 Subject: [PATCH] Inline DCPProfile::hsdApply() to speedup applying dcp profiles, closes #5206 --- rtengine/dcp.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtengine/dcp.cc b/rtengine/dcp.cc index c60e80587..1c99b682c 100644 --- a/rtengine/dcp.cc +++ b/rtengine/dcp.cc @@ -1265,7 +1265,7 @@ void DCPProfile::step2ApplyTile(float* rc, float* gc, float* bc, int width, int float cnewb = FCLIP(newb); float h, s, v; - Color::rgb2hsvdcp(cnewr, cnewg, cnewb, h, s, v); + Color::rgb2hsvtc(cnewr, cnewg, cnewb, h, s, v); hsdApply(look_info, look_table, h, s, v); s = CLIP01(s); @@ -1648,7 +1648,7 @@ std::vector DCPProfile::makeHueSatMap(const ColorTemp& wh return res; } -void DCPProfile::hsdApply(const HsdTableInfo& table_info, const std::vector& table_base, float& h, float& s, float& v) const +inline void DCPProfile::hsdApply(const HsdTableInfo& table_info, const std::vector& table_base, float& h, float& s, float& v) const { // Apply the HueSatMap. Ported from Adobes reference implementation. float hue_shift;