commit | caf2ca414f69d460c516e2370cf42bcf49178d95 | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Thu Nov 10 11:45:58 2016 -0800 |
committer | Romain Guy <romainguy@google.com> | Thu Nov 10 13:06:18 2016 -0800 |
tree | b0fdcb86a20d2b779bbc728a6ba8481884b3bc9e | |
parent | 5d4bae7f170640e0e280b3ca8a22b18e80801a8a [diff] |
Add ColorSpace class The ColorSpace class can be used to create an RGB color space from either primaries/whitepoint or an RGB->XYZ matrix. The primaries and whitepoint are in xyY space. A utility function is provided to compute xyY coordinates from XYZ coordinats. The class contains numerous functions to create common RGB color spaces (sRGB, DCI-P3, etc.). Test: colorspace_test Bug: 29940137 Change-Id: Ifba8701377d058f5877176dabf4183e904a4cde0