From 37e0d54cc9a1a6569e9fc5582cfc2c4d8deb109e Mon Sep 17 00:00:00 2001 From: Vitaly Prosyak Date: Wed, 22 Sep 2021 21:21:27 -0400 Subject: [PATCH] color-lcms: add matches parameters based on category Use category, intent and output and input profiles for comparison. Signed-off-by: Vitaly Prosyak --- libweston/color-lcms/color-transform.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libweston/color-lcms/color-transform.c b/libweston/color-lcms/color-transform.c index 713be189..7eb5d6ec 100644 --- a/libweston/color-lcms/color-transform.c +++ b/libweston/color-lcms/color-transform.c @@ -133,6 +133,14 @@ transform_matches_params(const struct cmlcms_color_transform *xform, if (xform->search_key.type != param->type) return false; + if (xform->search_key.category != param->category) + return false; + + if (xform->search_key.intent_output != param->intent_output || + xform->search_key.output_profile != param->output_profile || + xform->search_key.input_profile != param->input_profile) + return false; + return true; }