color-lcms: add matches parameters based on category

Use category, intent and output and input profiles
for comparison.

Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
This commit is contained in:
Vitaly Prosyak 2021-09-22 21:21:27 -04:00
parent 19913366e8
commit 37e0d54cc9
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}