SkPngRustDecoder: Add HDR metadata support
To the rust_png FFI interface, add ColorSpacePrimaries,
MasteringDisplayColorVolume, and ContentLightLevelInfo structures.
Add a test that ensure that metadata specified to encode match metadata
retrieved after decode. Once this is landed, it will be used to create
test images.
To the reader interface, add try_get_mdcv_chunk and try_get_clli_chunk
methods.
Bug: 376550658
Change-Id: I49c1d9d6cfae1f8fa1b684520c82b1d1c480e903
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1055198
Reviewed-by: Christopher Cameron <ccameron@google.com>
Reviewed-by: Kaylee Lubick <kjlubick@google.com>
Commit-Queue: Christopher Cameron <ccameron@google.com>
4 files changed