Add skcms_AdaptToXYZD50 to the API

This splits of the part inside skcms_PrimariesToXYZD50 which computes
the chromatic adaptation matrix into a new function

This is useful when creating an ICC profile, to convert values to D50
which ICC uses.

Change-Id: I2a453ee9f17f7173868bd8341ef793614dde01bb
Reviewed-by: Mike Klein <>
Commit-Queue: Mike Klein <>
3 files changed