HDR gainmaps: Require Version 1.0
Enough time has passed since we started writing Version 1.0 into the
files that it's now safe to break any files that didn't have this.
Additional changes in the cherry-pick:
- Fix the incorrect return value in extract_gainmap.
- If SkJpegXmp::getGainmapInfoHDRGM specifies nullptr for its
SkGainmapInfo, then only perform the version check.
- Make SkJpegXmp::getGainmapInfoHDRGM's not-just-version-check path
fail if HdrCapacityMax or GainMapMax are absent.
- Add more XMP tests.
Bug: skia:14031
Change-Id: I74048a7f03c5cbdc3302574e5aa78a0ebd81e937
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/700196
Commit-Queue: ccameron chromium <ccameron@chromium.org>
Commit-Queue: Christopher Cameron <ccameron@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
(cherry picked from commit 1b8ff701e6f90d4ac78e5f16523b938731803b61)
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/710176
Reviewed-by: Kevin Lubick <kjlubick@google.com>
3 files changed