Add skcms_GetInputChannelCount utility function

This gives a best guess at the number of expected input channels on
the A side of the profile, with -1 for failure. We can use this to
judge if an image's encoding (eg, grayscale or RGB) makes sense
with the accompanying profile.

Bug: 361116767
Change-Id: Ic571b43d53179d5ed278b9d1d23fff17de046361
Reviewed-on: https://skia-review.googlesource.com/c/skcms/+/892757
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
75 files changed