skcms_Transform: Respect PQ and HLG indicated in CICP If an image indicates that it is PQ or HLG via its CICP tags, this is ignored by skcms_Transform. As a result, lots of code has been stuffing the PQ-ish and HLG-ish skcms_TransferFunctions into the skcms_ICCProfile structure, which is not ideal. Change skcms_Transform to detect PQ and HLG CICP values, and to prefer them over A2B and B2A transforms. The specific HLG transform being used is not the usual 1,000 nit peak reference transform, but rather is the SDR version. This will be updated in follow-on patches. Bug: skia:420956739 Change-Id: I7ecba5fbbd31232d2c139eafdb565b6dccfe816c Reviewed-on: https://skia-review.googlesource.com/c/skcms/+/1045656 Reviewed-by: Kaylee Lubick <kjlubick@google.com> Reviewed-by: Christopher Cameron <ccameron@google.com> Commit-Queue: Christopher Cameron <ccameron@google.com>
To build with ninja, simply run ninja from the root directory. This will produce a library in /out.
There are also Bazel rules, outlined in BAZEL.md