Remove canonicalize_identity from A2B and B2A parsing

This should be a post-parse optimization, not a part of parsing. Having
this be part of parsing is making testing our Rust-based parser more
complicated.

Also, while I'm complaining about this, if we're going to do this sort
of thing, we should be doing the full parameter fit (cause we often
encounter non-linear parametric curves that have been stuffed into 1D
LUTs in the r/g/bTRC tags).

Update test profile expectations to match.

Bug: 452666425
TAG=agy
CONV=c6043f3d-bcc5-4d8b-b1d3-253bc2e6c1c2
Change-Id: I7de3d80355e17d1d6b1c3357d484a3c7e3caec22
Reviewed-on: https://skia-review.googlesource.com/c/skcms/+/1344916
Reviewed-by: Florin Malita <fmalita@google.com>
Commit-Queue: Christopher Cameron <ccameron@google.com>
20 files changed
tree: b74ff114988c9163588b7ebd241c51a0b3432276
  1. bazel/
  2. fuzz/
  3. infra/
  4. ninja/
  5. profiles/
  6. src/
  7. toolchain/
  8. .bazelrc
  9. .bazelversion
  10. .gitignore
  11. BAZEL.md
  12. bench.c
  13. BUILD.bazel
  14. build.ninja
  15. codereview.settings
  16. iccdump.c
  17. LICENSE
  18. MODULE.bazel
  19. MODULE.bazel.lock
  20. msvs.ninja
  21. OWNERS
  22. README.chromium
  23. README.md
  24. skcms.cc
  25. skcms.gni
  26. skcms.h
  27. test_only.c
  28. test_only.h
  29. tests.c
  30. whitespace.txt
README.md

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