How do I transform data from one set of RGB primaries to another?