skia /
skia /
e3d5a1762e1a996f08dc51f10e34f4495e012e26 skhdr::Agtm: Separate out an skhdr::AdaptiveGlobalToneMap structure
Separate out the parsed metadata (the ColorVolumeTransform metadata
group from SMPTE ST 2094-50) from being inside skhdr::AgtmImpl.
Remove several helper functions from AdaptiveGlobalToneMap, and also
from AgtmImpl, and put them in a separate AgtmHelpers namespace.
Add a TODO indicating that I screwed up writing the skhdr::Agtm
interface, and that it will be removed or, more likely, recycled as a
skhdr::FilterGenerator class that will cache results needed to generate
SkColorFilters for applying tone mapping (e.g, at different headrooms).
It would be created by calling skhdr::Metadata::makeFilterGenerator.
The one remaining change before moving this to the public header will be
to change AdaptiveGlobalToneMap to use std::vectors.
Bug: 468928417
Change-Id: I2e68d3a09174c6161067a494f679dffbf20d194f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1137916
Reviewed-by: Christopher Cameron <ccameron@google.com>
Commit-Queue: Christopher Cameron <ccameron@google.com>
Reviewed-by: Kaylee Lubick <kjlubick@google.com>
4 files changed