summaryrefslogtreecommitdiff
path: root/libs/jpegrecoverymap/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Nick Deakin <deakin@google.com> 2022-11-16 20:57:42 -0500
committer Nick Deakin <deakin@google.com> 2022-11-17 10:17:28 -0500
commit594a4ca9a43dd0f91b2da6c91c73182c59f37cf0 (patch)
tree83911e1bff74b281654f0a0b9f134ddb37500e87 /libs/jpegrecoverymap/jpegencoderhelper.cpp
parent29bbbc408d35929203999ee431aeed48faaf0d12 (diff)
Several fixes to recovery map math.
* Fix incorrect conversion conversion from RGB to YUV using bt.2100 when the data is actually assumed to be srgb (although this will get improved further soon) in map application. * Fix incorrectly calculating luminance directly from luma in map generation; we need to convert from YUV to RGB first. This also involved updating the sampling functions to sample entire pixels. * Some cleanup to structure of recoverymapmath files. * Call all public lib functions in recovermap_test to force linking, and therefore verify that the lib actually builds properly. Test: builds (including the test, which verifies linking now) Bug: 252835416 No-Typo-Check: incorrectly interpretting code as a comment Change-Id: I13565145dc6efcdf642981a1e52420d662152737
Diffstat (limited to 'libs/jpegrecoverymap/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions