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:
parent
19913366e8
commit
37e0d54cc9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue